('src', c_uint32),
'dst', c_uint32
self.src_address = socket.inet_ntoa(struct.pack('@I', self.src))
self.dst_address = socket.inet_ntoa(struct.pack('@I', self.dst))
Книга Python Sniffing from Black Hat Python