diff options
author | glebius <glebius@FreeBSD.org> | 2013-10-15 10:19:24 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-10-15 10:19:24 +0000 |
commit | 1c87562bdb8818f73d1face0bb6c8f2d02fb4ce4 (patch) | |
tree | 1532e1c4b17329547e57e8b1a2f1be2c9432e684 /contrib/ipfilter/ipf.h | |
parent | 870799d07ae4a7419826ef3a32e06efdd0b376e9 (diff) | |
download | FreeBSD-src-1c87562bdb8818f73d1face0bb6c8f2d02fb4ce4.zip FreeBSD-src-1c87562bdb8818f73d1face0bb6c8f2d02fb4ce4.tar.gz |
Hide 'struct ifaddr' definition from userland. Two tools left that use it,
namely ipftest(1) and ifmcstat(1). These sniff structure definition using
_WANT_IFADDR define.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'contrib/ipfilter/ipf.h')
-rw-r--r-- | contrib/ipfilter/ipf.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/ipfilter/ipf.h b/contrib/ipfilter/ipf.h index 280f98d..d4bd524 100644 --- a/contrib/ipfilter/ipf.h +++ b/contrib/ipfilter/ipf.h @@ -42,9 +42,10 @@ struct file; #include <sys/time.h> #include <sys/socket.h> #include <net/if.h> -#if __FreeBSD_version >= 300000 -# include <net/if_var.h> -#endif + +#define _WANT_IFADDR +#include <net/if_var.h> + #include <netinet/in.h> #include <netinet/in_systm.h> #include <netinet/ip.h> |