('src', c_ulong),
'dst', c_ulong
self.src_address = socket.inet_ntoa(struct.pack('<L', self.src))
self.dst_address = socket.inet_ntoa(struct.pack('<L', self.dst))
Python Sniffing from Black Hat Python book