(self, hdr, data)
| 57 | self.pcap.loop(0, self.packetHandler) |
| 58 | |
| 59 | def packetHandler(self, hdr, data): |
| 60 | # Use the ImpactDecoder to turn the rawpacket into a hierarchy |
| 61 | # of ImpactPacket instances. |
| 62 | # Display the packet in human-readable form. |
| 63 | print(self.decoder.decode(data)) |
| 64 | |
| 65 | |
| 66 | def getInterface(): |