Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add Packet.is_tcp_ack() implementation

  • Loading branch information...
commit ff7ffc98855545c001fa79e892f20f9ab996f1a6 1 parent 1ca82ee
@dound authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 ProtocolHelper.py
View
4 ProtocolHelper.py
@@ -173,6 +173,10 @@ def is_tcp_rst(self):
"""Returns True if the RST flag is set."""
return (self.tcp_control_bits & 0x04) == 0x04
+ def is_tcp_ack(self):
+ """Returns True if the ACK flag is set."""
+ return (self.tcp_control_bits & 0x10) == 0x10
+
@staticmethod
def cksum_ip_hdr(ip_hdr):
"""Returns the provided IP header with the checksum set."""
Please sign in to comment.
Something went wrong with that request. Please try again.