diff options
author | guy <guy> | 2007-09-12 19:36:18 +0000 |
---|---|---|
committer | guy <guy> | 2007-09-12 19:36:18 +0000 |
commit | 7e5e89df697ea7451ce6e24702c773bbc0175ce5 (patch) | |
tree | 4a921e506f927f8a12db8598baadb76a5eb523e5 /config.h.in | |
parent | 3344dbf2545aecfe5cbca1d4aa73468bb862f808 (diff) | |
download | tcpdump-7e5e89df697ea7451ce6e24702c773bbc0175ce5.tar.gz |
From Max Laier: check whether the system has <net/pfvar.h> and:
if it does, use that for the pf definitions;
if it doesn't, don't compile in pf support;
as both OpenBSD and FreeBSD have changed the pf definitions and header
format without changing the DLT value, so you can't reliably read
pflog-format libpcap files on a machine running an OS version other than
the one on which the file was generated.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/config.h.in b/config.h.in index dbda5050..86ffe06e 100644 --- a/config.h.in +++ b/config.h.in @@ -181,6 +181,9 @@ /* Define to 1 if you have the <netinet/if_ether.h> header file. */ #undef HAVE_NETINET_IF_ETHER_H +/* Define to 1 if you have the <net/pfvar.h> header file. */ +#undef HAVE_NET_PFVAR_H + /* Define to 1 if you have the <openssl/evp.h> header file. */ #undef HAVE_OPENSSL_EVP_H @@ -298,19 +301,19 @@ /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE -/* The size of a `char', as computed by sizeof. */ +/* The size of `char', as computed by sizeof. */ #undef SIZEOF_CHAR -/* The size of a `int', as computed by sizeof. */ +/* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT -/* The size of a `long', as computed by sizeof. */ +/* The size of `long', as computed by sizeof. */ #undef SIZEOF_LONG -/* The size of a `long long', as computed by sizeof. */ +/* The size of `long long', as computed by sizeof. */ #undef SIZEOF_LONG_LONG -/* The size of a `short', as computed by sizeof. */ +/* The size of `short', as computed by sizeof. */ #undef SIZEOF_SHORT /* Define to 1 if you have the ANSI C header files. */ |