summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-01-08 23:42:31 +0000
committereivind <eivind@FreeBSD.org>1998-01-08 23:42:31 +0000
commitbcae2312afcaa3b4fd34daac5baa64dbb82f57c5 (patch)
treefea007e0b2375970df63c0905adfbd464aaa0f74 /sys/dev/vx
parentc40850d5f4e14c6f1d76a0a345e6ba081a4ebd21 (diff)
downloadFreeBSD-src-bcae2312afcaa3b4fd34daac5baa64dbb82f57c5.zip
FreeBSD-src-bcae2312afcaa3b4fd34daac5baa64dbb82f57c5.tar.gz
Make INET a proper option.
This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx.c7
-rw-r--r--sys/dev/vx/if_vx_eisa.c5
-rw-r--r--sys/dev/vx/if_vx_pci.c4
3 files changed, 11 insertions, 5 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index 420e6c1..47367ac 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -61,6 +61,7 @@
#endif
#include "bpfilter.h"
+#include "opt_inet.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -71,10 +72,8 @@
#include <net/if.h>
-#ifdef INET
-#include <netinet/in.h>
-#include <netinet/if_ether.h>
-#endif
+#include <net/ethernet.h>
+#include <net/if_arp.h>
#ifdef NS
#include <netns/ns.h>
diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c
index 924cf81..8002b16 100644
--- a/sys/dev/vx/if_vx_eisa.c
+++ b/sys/dev/vx/if_vx_eisa.c
@@ -34,16 +34,19 @@
#include "vx.h"
#if NVX > 0
+#include "opt_inet.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/socket.h>
+#include <net/ethernet.h>
#include <net/if.h>
+#include <net/if_arp.h>
#ifdef INET
#include <netinet/in.h>
-#include <netinet/if_ether.h>
#endif
#ifdef NS
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index b667b89..bce0de9 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -33,19 +33,23 @@
#include "vx.h"
#if NVX > 0
+#include "opt_inet.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/socket.h>
+#include <net/ethernet.h>
#include <net/if.h>
+#include <net/if_arp.h>
#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#endif
+
#ifdef NS
#include <netns/ns.h>
#include <netns/ns_if.h>
OpenPOWER on IntegriCloud