diff --git a/networks/host-scanner-via-udp.py b/networks/host-scanner-via-udp.py old mode 100644 new mode 100755 index d19c8d1..4e45b7b --- a/networks/host-scanner-via-udp.py +++ b/networks/host-scanner-via-udp.py @@ -78,8 +78,8 @@ class IP(ctypes.Structure): ('ttl', ctypes.c_ubyte), ('protocol_num', ctypes.c_ubyte), ('sum', ctypes.c_ushort), - ('src', ctypes.c_ulong), - ('dst', ctypes.c_ulong) + ('src', ctypes.c_uint), + ('dst', ctypes.c_uint) ] def __new__(self, socketBuffer = None): @@ -109,8 +109,17 @@ class IP(ctypes.Structure): } # Human readable IP addresses. - self.src_address = socket.inet_ntoa(struct.pack('