Skip to content

Commit

Permalink
fixing previuos broken patch - commited too early...
Browse files Browse the repository at this point in the history
  • Loading branch information
default committed Aug 17, 2018
1 parent e2cb9ea commit 38d4852
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pathspider/chains/dscp.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ def _dscp_extract(self, rec, ip, rev):
rec['dscp_mark_syn_rev' if rev else 'dscp_mark_syn_fwd'] = dscp
return True
if ip.version == 4:
ip.pkt_len == ip.hdr_len + (ip.tcp.doff) * 4: # No payload
return True
if ip.pkt_len == ip.hdr_len + (ip.tcp.doff) * 4: # No payload
return True
elif ip.version == 6:
ip.payload_len == (ip.tcp.doff) * 4: # No payload
return True
if ip.payload_len == (ip.tcp.doff) * 4: # No payload
return True

# If not TCP or TCP non-SYN
data_key = 'dscp_mark_data_rev' if rev else 'dscp_mark_data_fwd'
Expand Down

0 comments on commit 38d4852

Please sign in to comment.