Skip to content
Browse files

Fix name typos in tcp/packet.py: s/TCPPacket/Packet

  • Loading branch information...
1 parent 86c1385 commit 32a42658da67f93ced78bc86b34bb9e473e08249 Andrew Fleenor committed Jul 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tcp/packet.py
View
6 tcp/packet.py
@@ -5,7 +5,7 @@ class Packet(object):
'''
Represents a TCP packet. Copied from pyper, with additions. contains
socket, timestamp, and data
-
+
Members:
ts = dpkt timestamp
buf = original data from which eth was constructed
@@ -46,12 +46,12 @@ def __cmp__(self, other):
def __eq__(self, other):
return not self.__ne__(other)
def __ne__(self, other):
- if isinstance(other, TCPPacket):
+ if isinstance(other, Packet):
return cmp(self, other) != 0
else:
return True
def __repr__(self):
- return 'TCPPacket(%s, %s, seq=%x , ack=%x, data="%s")' % (
+ return 'Packet(%s, %s, seq=%x , ack=%x, data="%s")' % (
friendly_socket(self.socket),
friendly_tcp_flags(self.tcp.flags),
self.tcp.seq,

0 comments on commit 32a4265

Please sign in to comment.
Something went wrong with that request. Please try again.