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: