(self)
| 9 | class DshellPlugin(dshell.core.PacketPlugin): |
| 10 | |
| 11 | def __init__(self): |
| 12 | super().__init__( |
| 13 | name='ip', |
| 14 | description='IPv4/IPv6 plugin', |
| 15 | bpf='ip or ip6', |
| 16 | author='twp', |
| 17 | output=AlertOutput(label=__name__), |
| 18 | ) |
| 19 | |
| 20 | def packet_handler(self, packet): |
| 21 | self.write(**packet.info(), dir_arrow='->') |
nothing calls this directly
no test coverage detected