aboutsummaryrefslogtreecommitdiff
path: root/TCPState.py
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2022-08-07 15:58:52 +0200
committerlns <matzeton@googlemail.com>2022-08-07 15:58:52 +0200
commit3dde54a04e4b599eb23d215479a208f341342261 (patch)
tree6720c6df8afa3b77cfc5953f959334f017abcbb2 /TCPState.py
parent13de32fa34acf2e494af8c9e15aa0b8bb6be0a4a (diff)
Support splitting of midstream TCP flows.
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'TCPState.py')
-rw-r--r--TCPState.py5
1 files changed, 2 insertions, 3 deletions
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