From c03bdbcc185588d41a0e3947f061b50122a36cbc Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 30 Apr 2026 22:01:59 +0000 Subject: [PATCH] Use unsigned lengths to match libpcap --- nsock/src/nsock_pcap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsock/src/nsock_pcap.h b/nsock/src/nsock_pcap.h index 7f2b3c5d5..26fd49f04 100644 --- a/nsock/src/nsock_pcap.h +++ b/nsock/src/nsock_pcap.h @@ -140,8 +140,8 @@ typedef struct{ typedef struct{ struct timeval ts; - int caplen; - int len; + u32 caplen; + u32 len; const unsigned char *packet; /* caplen bytes */ } nsock_pcap;