File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,11 @@ def process_features(self, dataset):
149149 "bytes" ,
150150 "flow_source" ,
151151 "interface" ,
152+ "aid" ,
153+ "state_hist" ,
154+ "dport_name" ,
155+ "interpreted_state" ,
156+ "timestamp_human" ,
152157 ]
153158 for field in to_drop :
154159 try :
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ class BaseFlow:
2424
2525@dataclass (kw_only = True , slots = True )
2626class Conn (BaseFlow ):
27+ # TODO if you're going to add fields to this class remember to drop
28+ # them if they're not needed in flow ML detection or they'll cause errs
29+ # drop them in the list called to_drop
2730 starttime : str
2831 uid : str
2932 saddr : str
@@ -62,6 +65,9 @@ class Conn(BaseFlow):
6265
6366 # will be filled by the AIDManager() later
6467 aid : str = field (default = "" )
68+ # filled later by timeline.py
69+ dport_name : str = field (default = "" )
70+ timestamp_human : str = field (default = "" )
6571
6672 interpreted_state : str = field (default = "" )
6773
You can’t perform that action at this time.
0 commit comments