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.
pull/12968/head
Jason Ish 3 months ago committed by Victor Julien
parent cddd3a261f
commit 0b551641b4

@ -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_ {

Loading…
Cancel
Save