Files
airstream/pyshark_poc/models.py
2025-08-03 20:20:55 -04:00

13 lines
340 B
Python

from dataclasses import dataclass
from typing import Optional
@dataclass(frozen=True)
class FlowKey:
"""Flow identifier for network traffic analysis."""
src_ip: str
src_port: int
dst_ip: str
dst_port: int
protocol: str
extended_type: Optional[str] = None # For extended frame types like IENA, Chapter 10, etc.