From 292855d14ad31e958a45afb6cb263d8f8e824616 Mon Sep 17 00:00:00 2001 From: dowright Date: Tue, 24 Aug 2021 22:44:38 -0700 Subject: [PATCH] work on new packet --- new_packet.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/new_packet.pyx b/new_packet.pyx index c786630..cef8ce9 100644 --- a/new_packet.pyx +++ b/new_packet.pyx @@ -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: