This commit is contained in:
Mia von Steinkirch 2020-03-02 18:23:52 -08:00
parent dac26e1abb
commit 90049c80af
15 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import ctypes
class ICMP(ctypes.Structure):
_fields_ = [
('type', ctypes.c_ubyte),
('code', ctypes.c_ubyte),
('checksum', ctypes.c_ushort),
('unused', ctypes.c_ushort),
('next_hop_mtu',ctypes.c_ushort)
]
def __new__(self, socket_buffer):
return self.from_buffer_copy(socket_buffer)
def __init__(self, socket_buffer):
pass