From 57097b3371c079f0c47e854156a37d9ca3701371 Mon Sep 17 00:00:00 2001 From: dowright Date: Wed, 25 Aug 2021 11:13:16 -0700 Subject: [PATCH] work on new packet --- new_packet.pyx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/new_packet.pyx b/new_packet.pyx index 1b75ff6..3b300ad 100644 --- a/new_packet.pyx +++ b/new_packet.pyx @@ -229,7 +229,7 @@ cdef class CPacket: self.get_inint(), self.get_outint(), mac_addr, - self.get_timestamp() + self.get_timestamp(), ) return hw_info @@ -254,7 +254,7 @@ cdef class CPacket: self.ip_header.protocol, ntohs(self.ip_header.check), ntohl(self.ip_header.saddr), - ntohl(self.ip_header.daddr) + ntohl(self.ip_header.daddr), ) return ip_header @@ -277,7 +277,7 @@ cdef class CPacket: self.tcp_header.th_flags, ntohs(self.tcp_header.th_win), ntohs(self.tcp_header.th_sum), - ntohs(self.tcp_header.th_urp) + ntohs(self.tcp_header.th_urp), ) elif (self.ip_header.protocol == IPPROTO_UDP): @@ -286,13 +286,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: