work on new packet
This commit is contained in:
parent
d21071045d
commit
cb0a699d78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user