Remove 'Packet.packet_id' attribute, replacing with 'id'
This commit is contained in:
1 parent
c6afe25429
commit
84df884ca4
3 files changed
+44
-37
No files matched your search
@@ -85,11 +85,12 @@ def main():
|
||||
def print_incoming(packet):
|
||||
if type(packet) is Packet:
|
||||
# This is a direct instance of the base Packet type, meaning
|
||||
# that it is a packet of unknown type, so we do not print it.
|
||||
# that it is a packet of unknown type, so we do not print it
|
||||
# unless explicitly requested by the user.
|
||||
if options.dump_unknown:
|
||||
print('--> ??? %s' % packet, file=sys.stderr)
|
||||
return
|
||||
print('--> %s' % packet, file=sys.stderr)
|
||||
print('--> [unknown packet] %s' % packet, file=sys.stderr)
|
||||
else:
|
||||
print('--> %s' % packet, file=sys.stderr)
|
||||
|
||||
def print_outgoing(packet):
|
||||
print('<-- %s' % packet, file=sys.stderr)
|
||||
|
||||
Reference in new issue
Block a user