(self, packet)
| 18 | ) |
| 19 | |
| 20 | def packet_handler(self, packet): |
| 21 | self.write(**packet.info(), dir_arrow='->') |
| 22 | # If verbose flag set, outputs packet contents in hex and ascii alongside packet info |
| 23 | self.logger.info("\n" + dshell.util.hex_plus_ascii(packet.rawpkt)) |
| 24 | return packet |