From 3dde54a04e4b599eb23d215479a208f341342261 Mon Sep 17 00:00:00 2001 From: lns Date: Sun, 7 Aug 2022 15:58:52 +0200 Subject: Support splitting of midstream TCP flows. Signed-off-by: lns --- TCPState.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'TCPState.py') diff --git a/TCPState.py b/TCPState.py index 2c936d9..9a36eab 100644 --- a/TCPState.py +++ b/TCPState.py @@ -67,9 +67,8 @@ class TCPStateMachine: def init(self, pkt): if not 'TCP' in pkt: raise Exception("Not a TCP Packet") - if not is_syn_pkt(pkt): - raise Exception("Not valid SYN") - + + self.syn_seen = is_syn_pkt(pkt) self.flows = set((create_forward_flow(pkt), create_reverse_flow(pkt))) self.server = pkt['IP'].dst self.client = pkt['IP'].src -- cgit v1.2.3