From bcae2312afcaa3b4fd34daac5baa64dbb82f57c5 Mon Sep 17 00:00:00 2001 From: eivind Date: Thu, 8 Jan 1998 23:42:31 +0000 Subject: 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 to . --- sys/dev/wl/if_wl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev/wl') diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 2073ef9..7ed1d4c 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.8 1997/08/25 22:34:25 bde Exp $ */ +/* $Id: if_wl.c,v 1.9 1997/09/21 21:41:13 gibbs Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -191,6 +191,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "wl.h" #include "opt_wavelan.h" #include "bpfilter.h" +#include "opt_inet.h" #include #include @@ -203,7 +204,9 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include +#include #include +#include #include #ifdef INET @@ -2581,6 +2584,7 @@ void wl_cache_store (int unit, int base, struct ether_header *eh, * keep multicast only. */ +#ifdef INET /* reject if not IP packet */ if ( wl_cache_iponly && (ntohs(eh->ether_type) != 0x800)) { @@ -2676,6 +2680,7 @@ void wl_cache_store (int unit, int base, struct ether_header *eh, signal - silence; else sc->w_sigcache[w_insertcache].snr = 0; +#endif /* INET */ } #endif /* WLCACHE */ -- cgit v1.1