Skip to content

Commit 5bf4831

Browse files
authored
Merge pull request #106 from amm3/master
Account for condition where ECE flag is set on SYN-ACK packet.
2 parents 5850adf + 709d087 commit 5bf4831

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/dshell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ def TCP(self, addr, tcp, ts, **kwargs):
743743
conn = self.track(addr, ts=ts, state='init', **kwargs)
744744
if conn:
745745
conn.nextoffset['cs'] = tcp.seq + 1
746-
elif tcp.flags == (dpkt.tcp.TH_SYN | dpkt.tcp.TH_ACK):
746+
elif (tcp.flags == dpkt.tcp.TH_SYN | dpkt.tcp.TH_ACK
747+
or tcp.flags == dpkt.tcp.TH_SYN | dpkt.tcp.TH_ACK | dpkt.tcp.TH_ECE):
747748
# SYN ACK
748749
if conn and tcp.ack == conn.nextoffset['cs']:
749750
conn.nextoffset['sc'] = tcp.seq + 1

0 commit comments

Comments
 (0)