work on new packet

This commit is contained in:
dowright 2021-08-24 18:25:47 -07:00 committed by DOWRIGHT
parent d21071045d
commit cb0a699d78

View File

@ -188,16 +188,16 @@ cdef class CPacket:
elif (ip_header.protocol == IPPROTO_UDP):
proto_header = (
ntohs(proto_header.uh_sport),
ntohs(proto_header.uh_dport),
ntohs(proto_header.uh_ulen),
ntohs(proto_header.uh_sum),
ntohs(self.udp_header.uh_sport),
ntohs(self.udp_header.uh_dport),
ntohs(self.udp_header.uh_ulen),
ntohs(self.udp_header.uh_sum),
)
elif (ip_header.protocol == IPPROTO_ICMP):
proto_header = (
self.ip_header.type,
self.icmp_header.type,
)
return proto_header