work on new packet

This commit is contained in:
dowright 2021-08-24 12:46:46 -07:00 committed by DOWRIGHT
parent 1956702cd1
commit 250a12cd37
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 PyTuple_Type
ctypedef object PyTupleObject
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 object ip_header = <PyTuple_Type>self.ip_header
cdef object ip_header = <PyTupleObject>self.ip_header
return ip_header