work on new packet
This commit is contained in:
parent
ba4ba98ac5
commit
292855d14a
@ -183,7 +183,7 @@ cdef class CPacket:
|
||||
self.tcp_header.th_flags,
|
||||
ntohs(self.tcp_header.th_win),
|
||||
ntohs(self.tcp_header.th_sum),
|
||||
self.tcp_header.th_urp
|
||||
ntohs(self.tcp_header.th_urp)
|
||||
)
|
||||
|
||||
elif (self.ip_header.protocol == IPPROTO_UDP):
|
||||
@ -192,13 +192,13 @@ cdef class CPacket:
|
||||
ntohs(self.udp_header.uh_sport),
|
||||
ntohs(self.udp_header.uh_dport),
|
||||
ntohs(self.udp_header.uh_ulen),
|
||||
ntohs(self.udp_header.uh_sum),
|
||||
ntohs(self.udp_header.uh_sum)
|
||||
)
|
||||
|
||||
elif (self.ip_header.protocol == IPPROTO_ICMP):
|
||||
|
||||
proto_header = (
|
||||
self.icmp_header.type,
|
||||
self.icmp_header.type
|
||||
)
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user