Stop including if_var.h from userland.

Sponsored by:	Nginx, Inc.
This commit is contained in:
glebius 2015-04-06 09:42:23 +00:00
parent 0d3620e498
commit 78d51c7b15
49 changed files with 0 additions and 80 deletions

View File

@ -8,9 +8,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_types.h> #include <net/if_types.h>
#ifndef __osf__ #ifndef __osf__

View File

@ -21,9 +21,6 @@ static const char rcsid[] = "@(#)$Id$";
# include <net/route.h> # include <net/route.h>
# include <netinet/if_ether.h> # include <netinet/if_ether.h>
# include <netinet/ip_var.h> # include <netinet/ip_var.h>
# if __FreeBSD_version >= 300000
# include <net/if_var.h>
# endif
#endif #endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -22,9 +22,6 @@ static const char rcsid[] = "@(#)$Id$";
#ifndef linux #ifndef linux
# include <netinet/ip_var.h> # include <netinet/ip_var.h>
# include <netinet/if_ether.h> # include <netinet/if_ether.h>
# if __FreeBSD_version >= 300000
# include <net/if_var.h>
# endif
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <netdb.h> #include <netdb.h>

View File

@ -29,9 +29,6 @@
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#include <netinet/ip.h> #include <netinet/ip.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#if defined(linux) || defined(__osf__) || defined(__sgi) || defined(__hpux) #if defined(linux) || defined(__osf__) || defined(__sgi) || defined(__hpux)
# include <stdlib.h> # include <stdlib.h>
#endif #endif

View File

@ -33,9 +33,6 @@
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#include <sys/time.h> #include <sys/time.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#include <netinet/ip.h> #include <netinet/ip.h>
#include <netdb.h> #include <netdb.h>
#include <arpa/nameser.h> #include <arpa/nameser.h>

View File

@ -37,9 +37,6 @@
#include <netinet/ip.h> #include <netinet/ip.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#include <netdb.h> #include <netdb.h>
#include <arpa/nameser.h> #include <arpa/nameser.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -35,9 +35,6 @@
#include <sys/time.h> #include <sys/time.h>
#include <syslog.h> #include <syslog.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#include <netdb.h> #include <netdb.h>
#include <arpa/nameser.h> #include <arpa/nameser.h>
#include <resolv.h> #include <resolv.h>

View File

@ -15,9 +15,6 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -16,9 +16,6 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <net/if.h> #include <net/if.h>
#if __FreeBSD_version >= 300000
# include <net/if_var.h>
#endif
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -64,7 +64,6 @@ __FBSDID("$FreeBSD$");
#include <ifaddrs.h> #include <ifaddrs.h>
#include <sys/queue.h> #include <sys/queue.h>
#ifdef INET6 #ifdef INET6
#include <net/if_var.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <netinet6/in6_var.h> #include <netinet6/in6_var.h>

View File

@ -94,7 +94,6 @@ __FBSDID("$FreeBSD$");
#include <netinet/in.h> #include <netinet/in.h>
#ifdef INET6 #ifdef INET6
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <netinet6/in6_var.h> /* XXX */ #include <netinet6/in6_var.h> /* XXX */

View File

@ -46,7 +46,6 @@ static const char rcsid[] =
#include <ifaddrs.h> #include <ifaddrs.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if_var.h> /* for struct ifaddr */
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>

View File

@ -48,7 +48,6 @@ static const char rcsid[] =
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if_var.h> /* for struct ifaddr */
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>

View File

@ -46,7 +46,6 @@ static const char rcsid[] =
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if_var.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>

View File

@ -36,7 +36,6 @@
#include <unistd.h> #include <unistd.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <netinet/ip_carp.h> #include <netinet/ip_carp.h>

View File

@ -51,7 +51,6 @@ static const char rcsid[] =
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/route.h> #include <net/route.h>

View File

@ -40,7 +40,6 @@
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_vlan_var.h> #include <net/if_vlan_var.h>
#include <net/route.h> #include <net/route.h>

View File

@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$");
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_vxlan.h> #include <net/if_vxlan.h>
#include <net/route.h> #include <net/route.h>
#include <netinet/in.h> #include <netinet/in.h>

View File

@ -38,7 +38,6 @@
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_media.h> #include <net/if_media.h>
#include <net/if_var.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$");
#include <arpa/inet.h> #include <arpa/inet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <sys/endian.h> #include <sys/endian.h>

View File

@ -38,7 +38,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_media.h> #include <net/if_media.h>
#include <net/if_var.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -38,7 +38,6 @@
#include <sys/socketvar.h> #include <sys/socketvar.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <bluetooth.h> #include <bluetooth.h>
#include <err.h> #include <err.h>

View File

@ -54,7 +54,6 @@ BEGIN {
print "#include <bsm/audit.h>" print "#include <bsm/audit.h>"
print "#include <net/ethernet.h>" print "#include <net/ethernet.h>"
print "#include <net/if.h>" print "#include <net/if.h>"
print "#include <net/if_var.h>"
print "#ifdef PF" print "#ifdef PF"
print "#include <net/pfvar.h>" print "#include <net/pfvar.h>"
print "#include <net/if_pfsync.h>" print "#include <net/if_pfsync.h>"

View File

@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$");
#include <sys/user.h> #include <sys/user.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/bpf.h> #include <net/bpf.h>
#include <net/bpfdesc.h> #include <net/bpfdesc.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -45,7 +45,6 @@ __FBSDID("$FreeBSD$");
#include <sys/time.h> #include <sys/time.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/ethernet.h> #include <net/ethernet.h>

View File

@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$");
#include <net/route.h> #include <net/route.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/ip6.h> #include <netinet/ip6.h>
#include <netinet/icmp6.h> #include <netinet/icmp6.h>

View File

@ -668,9 +668,6 @@
/* Define to 1 if you have the <net/if.h> header file. */ /* Define to 1 if you have the <net/if.h> header file. */
#define HAVE_NET_IF_H 1 #define HAVE_NET_IF_H 1
/* Define to 1 if you have the <net/if_var.h> header file. */
#define HAVE_NET_IF_VAR_H 1
/* Define to 1 if you have the <net/route.h> header file. */ /* Define to 1 if you have the <net/route.h> header file. */
#define HAVE_NET_ROUTE_H 1 #define HAVE_NET_ROUTE_H 1

View File

@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$");
#include <arpa/inet.h> #include <arpa/inet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/ethernet.h> #include <net/ethernet.h>
#include <dev/an/if_aironet_ieee.h> #include <dev/an/if_aironet_ieee.h>

View File

@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");
#include <sys/tree.h> #include <sys/tree.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/route.h> #include <net/route.h>

View File

@ -39,7 +39,6 @@
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet6/in6_var.h> #include <netinet6/in6_var.h>

View File

@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
#include <signal.h> #include <signal.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/ip6.h> #include <netinet/ip6.h>

View File

@ -83,7 +83,6 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/route.h> #include <net/route.h>

View File

@ -613,9 +613,6 @@
/* Define to 1 if you have the <net/if.h> header file. */ /* Define to 1 if you have the <net/if.h> header file. */
#define HAVE_NET_IF_H 1 #define HAVE_NET_IF_H 1
/* Define to 1 if you have the <net/if_var.h> header file. */
#define HAVE_NET_IF_VAR_H 1
/* Define to 1 if you have the <net/route.h> header file. */ /* Define to 1 if you have the <net/route.h> header file. */
#define HAVE_NET_ROUTE_H 1 #define HAVE_NET_ROUTE_H 1

View File

@ -31,9 +31,6 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#ifdef __FreeBSD__
#include <net/if_var.h>
#endif
#include <net/route.h> #include <net/route.h>
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>

View File

@ -46,9 +46,6 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <net/if.h> #include <net/if.h>
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
#include <net/if_var.h>
#endif /* __FreeBSD__ >= 3 */
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -63,7 +63,6 @@ static const char _rcsid[] = "$KAME: route6d.c,v 1.104 2003/10/31 00:30:20 itoju
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/route.h> #include <net/route.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>

View File

@ -40,10 +40,6 @@
#include <string.h> #include <string.h>
#include <net/if.h> #include <net/if.h>
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
#include <net/if_var.h>
#endif /* __FreeBSD__ >= 3 */
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <netinet/icmp6.h> #include <netinet/icmp6.h>

View File

@ -39,9 +39,6 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <net/if.h> #include <net/if.h>
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
#include <net/if_var.h>
#endif /* __FreeBSD__ >= 3 */
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>

View File

@ -36,7 +36,6 @@
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/if_var.h>
#include <net/ethernet.h> #include <net/ethernet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/ip6.h> #include <netinet/ip6.h>

View File

@ -36,7 +36,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/route.h> #include <net/route.h>
#include <net/if_dl.h> #include <net/if_dl.h>

View File

@ -38,7 +38,6 @@
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/if_var.h>
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/route.h> #include <net/route.h>
#include <netinet/in.h> #include <netinet/in.h>

View File

@ -37,7 +37,6 @@
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_var.h>
#include <net/route.h> #include <net/route.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>

View File

@ -51,7 +51,6 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <net/if_var.h>
#include <netinet/in_var.h> #include <netinet/in_var.h>
#include <netinet6/nd6.h> #include <netinet6/nd6.h>

View File

@ -38,7 +38,6 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_types.h> #include <net/if_types.h>
#include <net/route.h> #include <net/route.h>
#include <net/if_dl.h> #include <net/if_dl.h>

View File

@ -40,7 +40,6 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <netinet/in.h> #include <netinet/in.h>

View File

@ -38,7 +38,6 @@
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/icmp6.h> #include <netinet/icmp6.h>

View File

@ -37,7 +37,6 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_var.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/route.h> #include <net/route.h>
#include <netinet/in.h> #include <netinet/in.h>

View File

@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$");
#include <sys/fcntl.h> #include <sys/fcntl.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/if_var.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>