From: Jason Ish Date: Fri, 4 Apr 2025 04:35:59 +0000 (-0600) Subject: pcap-log: define PCAP_NETMASK_UNKNOWN if not set X-Git-Tag: suricata-8.0.0-beta1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12968%2Fhead;p=thirdparty%2Fsuricata.git pcap-log: define PCAP_NETMASK_UNKNOWN if not set This is defined in by newer versions of libpcap, but older versions are still in use. --- diff --git a/src/log-pcap.c b/src/log-pcap.c index f426c27029..d8cc305634 100644 --- a/src/log-pcap.c +++ b/src/log-pcap.c @@ -86,6 +86,11 @@ typedef enum LogModeConditionalType_ { #define PCAP_BUFFER_TIMEOUT 1000000 // microseconds #define PCAP_PKTHDR_SIZE 16 +/* Defined since libpcap 1.1.0. */ +#ifndef PCAP_NETMASK_UNKNOWN +#define PCAP_NETMASK_UNKNOWN 0xffffffff +#endif + SC_ATOMIC_DECLARE(uint32_t, thread_cnt); typedef struct PcapFileName_ {