Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scapy/arch/bpf/supersocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@
_NANOTIME = FREEBSD # Kinda disappointing availability TBH

if _NANOTIME:
# https://github.com/freebsd/freebsd-src/blob/aea4240ef5834fb4a47f80c659c80f902cb4bb06/sys/net/bpf.h#L206-L209
class bpf_timeval(ctypes.Structure):
# actually a bpf_timespec
_fields_ = [("tv_sec", ctypes.c_ulong),
("tv_nsec", ctypes.c_ulong)]
_fields_ = [("tv_sec", ctypes.c_int64),
("tv_nsec", ctypes.c_uint64)]
elif NETBSD:
class bpf_timeval(ctypes.Structure):
_fields_ = [("tv_sec", ctypes.c_ulong),
Expand Down
Loading