work on new packet

This commit is contained in:
dowright 2021-08-24 13:13:14 -07:00 committed by DOWRIGHT
parent b2c28ae7e6
commit f4c9d8438e
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ cdef extern from "Python.h":
object PyBytes_FromStringAndSize(char *s, Py_ssize_t len)
object PyString_FromStringAndSize(char *s, Py_ssize_t len)
ctypedef object PyTupleObject
ctypedef object PyTuple_Type
cdef extern from "sys/time.h":
ctypedef long time_t

View File

@ -146,7 +146,7 @@ cdef class CPacket:
def get_ip_header(self):
'''return layer3 of packet data as a tuple converted directly from C struct.'''
cdef PyTupleObject ip_header
cdef PyTuple_Type ip_header
ip_header = (
self.ip_header.tos,