Skip to content

Commit

Permalink
Make INET a proper option.
Browse files Browse the repository at this point in the history
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>.
  • Loading branch information
eivindeklund committed Jan 8, 1998
1 parent 89d224d commit 1d5e9e2
Show file tree
Hide file tree
Showing 69 changed files with 316 additions and 99 deletions.
3 changes: 2 additions & 1 deletion sys/conf/options
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $Id: options,v 1.41 1997/12/16 17:39:55 eivind Exp $
# $Id: options,v 1.42 1997/12/16 23:59:37 eivind Exp $

# Format:
# Option name filename
Expand Down Expand Up @@ -101,6 +101,7 @@ OPEN_MAX opt_defunct.h
ARP_PROXYALL opt_defunct.h
GATEWAY opt_defunct.h
MROUTING opt_mrouting.h
INET opt_inet.h
IPDIVERT
IPFIREWALL opt_ipfw.h
IPFIREWALL_VERBOSE opt_ipfw.h
Expand Down
8 changes: 7 additions & 1 deletion sys/dev/ar/if_ar.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ar.c,v 1.15 1997/05/19 22:02:47 joerg Exp $
* $Id: if_ar.c,v 1.16 1997/09/02 01:18:04 bde Exp $
*/

/*
Expand Down Expand Up @@ -73,6 +73,12 @@

#include "ioconf.h"

#include "sppp.h"
#if NSPPP <= 0
#error device 'ar' require sppp.
#endif


#ifdef TRACE
#define TRC(x) x
#else
Expand Down
8 changes: 7 additions & 1 deletion sys/dev/ar/if_ar_isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ar.c,v 1.15 1997/05/19 22:02:47 joerg Exp $
* $Id: if_ar.c,v 1.16 1997/09/02 01:18:04 bde Exp $
*/

/*
Expand Down Expand Up @@ -73,6 +73,12 @@

#include "ioconf.h"

#include "sppp.h"
#if NSPPP <= 0
#error device 'ar' require sppp.
#endif


#ifdef TRACE
#define TRC(x) x
#else
Expand Down
7 changes: 5 additions & 2 deletions sys/dev/de/if_de.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* $NetBSD: if_de.c,v 1.56 1997/10/20 14:32:46 matt Exp $ */
/* $Id: if_de.c,v 1.75 1997/11/22 06:45:57 bde Exp $ */
/* $Id: if_de.c,v 1.76 1997/12/15 20:31:25 eivind Exp $ */

/*-
* Copyright (c) 1994-1997 Matt Thomas ([email protected])
Expand Down Expand Up @@ -39,6 +39,7 @@
*/
#define TULIP_HDR_DATA

#include "opt_inet.h"
#include "opt_ipx.h"

#include <sys/param.h>
Expand Down Expand Up @@ -82,6 +83,7 @@

#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#endif

#ifdef IPX
Expand All @@ -99,7 +101,8 @@
#if defined(__FreeBSD__)
#include <vm/pmap.h>
#include <pci.h>
#include <netinet/if_ether.h>
#include <net/ethernet.h>
#include <net/if_arp.h>
#if NPCI > 0
#include <pci/pcivar.h>
#include <pci/dc21040reg.h>
Expand Down
6 changes: 4 additions & 2 deletions sys/dev/ed/if_ed.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ed.c,v 1.128 1997/11/07 08:52:33 phk Exp $
* $Id: if_ed.c,v 1.129 1997/11/20 15:48:27 nate Exp $
*/

/*
Expand All @@ -39,6 +39,7 @@

#include "ed.h"
#include "bpfilter.h"
#include "opt_inet.h"

#include <sys/param.h>
#include <sys/systm.h>
Expand All @@ -49,13 +50,14 @@
#include <sys/socket.h>
#include <sys/syslog.h>

#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
#include <net/if_mib.h>

#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#endif

#ifdef NS
Expand Down
1 change: 1 addition & 0 deletions sys/dev/en/midway.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@

#ifdef __FreeBSD__
#include "en.h"
#include "opt_inet.h"
#endif

#if NEN > 0 || !defined(__FreeBSD__)
Expand Down
8 changes: 7 additions & 1 deletion sys/dev/ep/if_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/

/*
* $Id: if_ep.c,v 1.68 1997/11/27 12:59:46 kato Exp $
* $Id: if_ep.c,v 1.69 1997/12/15 20:30:43 eivind Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
Expand All @@ -60,6 +60,7 @@
#if NEP > 0

#include "bpfilter.h"
#include "opt_inet.h"
#include "opt_ipx.h"

#include <sys/param.h>
Expand All @@ -78,6 +79,11 @@

#include <net/if.h>

#if defined(__FreeBSD__)
#include <net/ethernet.h>
#include <net/if_arp.h>
#endif

#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
Expand Down
5 changes: 4 additions & 1 deletion sys/dev/ex/if_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ex.c,v 1.8 1997/11/07 08:52:38 phk Exp $
* $Id: if_ex.c,v 1.9 1997/12/15 20:30:45 eivind Exp $
*/

/*
Expand All @@ -38,6 +38,7 @@
#include "ex.h"
#if NEX > 0
#include "bpfilter.h"
#include "opt_inet.h"
#include "opt_ipx.h"

#include <sys/param.h>
Expand All @@ -47,7 +48,9 @@
#include <sys/mbuf.h>
#include <sys/socket.h>

#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>

#ifdef INET
#include <netinet/in.h>
Expand Down
5 changes: 4 additions & 1 deletion sys/dev/fe/if_fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

/*
* $Id: if_fe.c,v 1.35 1997/11/20 15:48:35 nate Exp $
* $Id: if_fe.c,v 1.36 1997/12/15 20:30:47 eivind Exp $
*
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
* To be used with FreeBSD 2.x
Expand Down Expand Up @@ -72,6 +72,7 @@

#include "fe.h"
#include "bpfilter.h"
#include "opt_inet.h"
#include "opt_ipx.h"

#include <sys/param.h>
Expand All @@ -85,7 +86,9 @@
#include <sys/socket.h>
#include <sys/syslog.h>

#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>

#ifdef INET
Expand Down
7 changes: 5 additions & 2 deletions sys/dev/fxp/if_fxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_fxp.c,v 1.45 1997/10/23 01:45:15 davidg Exp $
* $Id: if_fxp.c,v 1.46 1997/10/28 15:59:21 bde Exp $
*/

/*
* Intel EtherExpress Pro/100B PCI Fast Ethernet driver
*/

#include "bpfilter.h"
#include "opt_inet.h"

#include <sys/param.h>
#include <sys/systm.h>
Expand All @@ -49,6 +50,7 @@

#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#endif

#ifdef NS
Expand Down Expand Up @@ -94,7 +96,8 @@

#include <sys/sockio.h>

#include <netinet/if_ether.h>
#include <net/ethernet.h>
#include <net/if_arp.h>

#include <vm/vm.h> /* for vtophys */
#include <vm/pmap.h> /* for vtophys */
Expand Down
5 changes: 4 additions & 1 deletion sys/dev/ie/if_ie.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ie.c,v 1.47 1997/10/15 10:09:24 joerg Exp $
* $Id: if_ie.c,v 1.48 1997/12/15 20:30:49 eivind Exp $
*/

/*
Expand Down Expand Up @@ -108,6 +108,7 @@ iomem and and with 0xffff.

#include "ie.h"
#if NIE > 0
#include "opt_inet.h"
#include "opt_ipx.h"

#include <sys/param.h>
Expand All @@ -120,7 +121,9 @@ iomem and and with 0xffff.
#include <sys/sockio.h>
#include <sys/syslog.h>

#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_types.h>
#include <net/if_dl.h>

Expand Down
5 changes: 4 additions & 1 deletion sys/dev/lnc/if_lnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
#if NLNC > 0

#include "bpfilter.h"
#include "opt_inet.h"

/* Some defines that should really be in generic locations */
#define FCS_LEN 4
Expand All @@ -79,7 +80,9 @@
#include <sys/socket.h>
#include <sys/syslog.h>

#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_types.h>
#ifdef INET
#include <netinet/in.h>
Expand All @@ -96,7 +99,7 @@
#include <i386/isa/if_lnc.h>

struct lnc_softc {
struct arpcom arpcom; /* see ../../netinet/if_ether.h */
struct arpcom arpcom; /* see ../../net/if_arp.h */
struct nic_info nic; /* NIC specific info */
int nrdre;
struct host_ring_entry *recv_ring; /* start of alloc'd mem */
Expand Down
6 changes: 4 additions & 2 deletions sys/dev/pdq/if_fea.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_fea.c,v 1.6 1997/09/14 11:28:30 peter Exp $
* $Id: if_fea.c,v 1.7 1997/09/21 21:35:24 gibbs Exp $
*/

/*
Expand All @@ -30,6 +30,7 @@
* This module support the DEFEA EISA FDDI Controller.
*/

#include "opt_inet.h"

#include <sys/param.h>
#include <sys/kernel.h>
Expand All @@ -38,11 +39,12 @@
#include <sys/device.h>
#endif

#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

#if defined(__FreeBSD__)
Expand Down
5 changes: 4 additions & 1 deletion sys/dev/pdq/if_fpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_fpa.c,v 1.3 1997/03/24 11:24:51 bde Exp $
* $Id: if_fpa.c,v 1.4 1997/08/02 14:33:10 bde Exp $
*
*/

Expand All @@ -31,6 +31,7 @@
* This module supports the DEC DEFPA PCI FDDI Controller
*/

#include "opt_inet.h"

#include <sys/param.h>
#include <sys/kernel.h>
Expand All @@ -48,6 +49,8 @@

#if defined(__FreeBSD__)
#include "fpa.h"
#include <net/ethernet.h>
#include <net/if_arp.h>
#include <pci/pcivar.h>
#include <dev/pdq/pdqvar.h>
#include <dev/pdq/pdqreg.h>
Expand Down
8 changes: 6 additions & 2 deletions sys/dev/pdq/pdq_ifsubr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: pdq_ifsubr.c,v 1.4 1997/03/24 11:32:26 bde Exp $
* $Id: pdq_ifsubr.c,v 1.5 1997/06/14 13:56:07 bde Exp $
*
*/

Expand All @@ -33,6 +33,8 @@
*/


#include "opt_inet.h"

#include <sys/param.h>
#include <sys/socket.h>
#include <sys/sockio.h>
Expand All @@ -48,11 +50,13 @@
#include <net/bpf.h>
#endif

#if defined(__FreeBSD__)
#include <net/ethernet.h>
#include <net/if_arp.h>
#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#endif
#if defined(__FreeBSD__)
#include <netinet/if_fddi.h>
#else
#include <net/if_fddi.h>
Expand Down
Loading

0 comments on commit 1d5e9e2

Please sign in to comment.