-/* $OpenBSD: in_cksum_arm.S,v 1.3 2011/11/08 17:06:51 deraadt Exp $ */
+/* $OpenBSD: in_cksum_arm.S,v 1.4 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: in_cksum_arm.S,v 1.3 2003/11/26 10:31:53 rearnsha Exp $ */
/*
eor r0, r0, r1
ldmfd sp!, {r4-r11,pc}
-#ifdef INET
/*
* int in4_cksum(struct mbuf *m, u_int8_t nxt, int off, int len)
*
.Lin4_cksum_whoops_str:
.asciz "in4_cksum: out of mbufs\n"
.align 5
-#endif /* INET */
/*
* The main in*_cksum() workhorse...
-/* $OpenBSD: imxenet.c,v 1.7 2014/08/21 14:24:08 mpi Exp $ */
+/* $OpenBSD: imxenet.c,v 1.8 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
*
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
imxenet_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cpsw.c,v 1.23 2014/08/18 17:56:45 miod Exp $ */
+/* $OpenBSD: if_cpsw.c,v 1.24 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_cpsw.c,v 1.3 2013/04/17 14:36:34 bouyer Exp $ */
/*
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: sxie.c,v 1.6 2014/08/21 14:24:08 mpi Exp $ */
+/* $OpenBSD: sxie.c,v 1.7 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2013 Artturi Alm
ifp->if_flags |= IFF_UP;
sxie_init(sc);
}
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_le_syscon.c,v 1.16 2014/11/16 12:30:56 deraadt Exp $ */
+/* $OpenBSD: if_le_syscon.c,v 1.17 2014/12/22 02:26:53 tedu Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
#include <net/if.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-/* $OpenBSD: if_le_vme.c,v 1.4 2013/09/24 20:14:34 miod Exp $ */
+/* $OpenBSD: if_le_vme.c,v 1.5 2014/12/22 02:26:53 tedu Exp $ */
/*-
* Copyright (c) 1982, 1992, 1993
#include <net/if.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-# $OpenBSD: genassym.cf,v 1.35 2014/07/22 10:35:34 mpi Exp $
+# $OpenBSD: genassym.cf,v 1.36 2014/12/22 02:26:53 tedu Exp $
#
# Copyright (c) 1982, 1990 The Regents of the University of California.
# All rights reserved.
include <sys/resourcevar.h>
include <sys/device.h>
include <sys/user.h>
-ifdef INET
include <sys/mbuf.h>
include <sys/socketvar.h>
include <netinet/in.h>
include <netinet/ip.h>
include <netinet/ip_var.h>
-endif
include <uvm/uvm_extern.h>
struct sigcontext
# mbuf fields
-ifdef INET
struct mbuf
member m_next
member m_data
member m_len
-endif
# Linux frame offsets
ifdef COMPAT_LINUX
-/* $OpenBSD: if_le.c,v 1.7 2014/09/27 06:23:30 aoyama Exp $ */
+/* $OpenBSD: if_le.c,v 1.8 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_le.c,v 1.33 1996/11/20 18:56:52 gwr Exp $ */
/*-
#include <net/if.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-/* $OpenBSD: if_bm.c,v 1.28 2013/10/23 10:31:19 mpi Exp $ */
+/* $OpenBSD: if_bm.c,v 1.29 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
bmac_init(sc);
arp_ifinit(&sc->arpcom, ifa);
break;
-#endif
default:
bmac_init(sc);
break;
-/* $OpenBSD: if_mc.c,v 1.17 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: if_mc.c,v 1.18 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_mc.c,v 1.9.16.1 2006/06/21 14:53:13 yamt Exp $ */
/*-
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
mc_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_wi_obio.c,v 1.17 2011/07/03 15:47:16 matthew Exp $ */
+/* $OpenBSD: if_wi_obio.c,v 1.18 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ioctl.h>
-/* $OpenBSD: if_cnmac.c,v 1.20 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.21 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
octeon_eth_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_iec.c,v 1.11 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: if_iec.c,v 1.12 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
iec_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_mec.c,v 1.27 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: if_mec.c,v 1.28 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */
/*
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
mec_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_sq.c,v 1.11 2014/08/27 02:10:24 brad Exp $ */
+/* $OpenBSD: if_sq.c,v 1.12 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_sq.c,v 1.42 2011/07/01 18:53:47 dyoung Exp $ */
/*
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sq_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFMEDIA:
-/* $OpenBSD: if_tsec.c,v 1.33 2014/11/30 01:24:15 brad Exp $ */
+/* $OpenBSD: if_tsec.c,v 1.34 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
extern void myetheraddr(u_char *);
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: be.c,v 1.47 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: be.c,v 1.48 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
beinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
default:
beinit(sc);
break;
-/* $OpenBSD: hme.c,v 1.66 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: hme.c,v 1.67 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
hmeinit(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ie.c,v 1.48 2014/11/16 12:30:58 deraadt Exp $ */
+/* $OpenBSD: if_ie.c,v 1.49 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
ifp->if_flags |= IFF_UP;
switch(ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
ieinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
ieinit(sc);
break;
-/* $OpenBSD: if_le.c,v 1.35 2014/07/28 18:31:39 miod Exp $ */
+/* $OpenBSD: if_le.c,v 1.36 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/autoconf.h>
#include <machine/cpu.h>
-/* $OpenBSD: qe.c,v 1.36 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: qe.c,v 1.37 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
qeinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
default:
qeinit(sc);
break;
-/* $OpenBSD: vnet.c,v 1.35 2014/09/15 08:16:21 kettenis Exp $ */
+/* $OpenBSD: vnet.c,v 1.36 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis
*
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_de.c,v 1.25 2014/08/21 14:24:08 mpi Exp $ */
+/* $OpenBSD: if_de.c,v 1.26 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_de.c,v 1.27 1997/04/19 15:02:29 ragge Exp $ */
/*
#include <net/if.h>
#include <net/if_dl.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/cpu.h>
#include <machine/mtpr.h>
deinit(ds);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&ds->ds_ac, ifa);
break;
-#endif
}
break;
-/* $OpenBSD: if_le.c,v 1.18 2013/09/24 20:10:51 miod Exp $ */
+/* $OpenBSD: if_le.c,v 1.19 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_le.c,v 1.14 1999/08/14 18:40:23 ragge Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
-#endif
#include <netinet/if_ether.h>
#include <machine/cpu.h>
-/* $OpenBSD: if_qe.c,v 1.28 2014/08/06 15:40:40 jsg Exp $ */
+/* $OpenBSD: if_qe.c,v 1.29 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_qe.c,v 1.51 2002/06/08 12:28:37 ragge Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch(ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
qeinit(sc);
arp_ifinit(&sc->sc_ac, ifa);
break;
-#endif
}
break;
-/* $OpenBSD: sgec.c,v 1.24 2014/08/14 17:49:50 miod Exp $ */
+/* $OpenBSD: sgec.c,v 1.25 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch(ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
zeinit(sc);
arp_ifinit(&sc->sc_ac, ifa);
break;
-#endif
}
break;
-/* $OpenBSD: if_le_fwio.c,v 1.3 2013/09/24 20:10:52 miod Exp $ */
+/* $OpenBSD: if_le_fwio.c,v 1.4 2014/12/22 02:26:54 tedu Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
-#endif
#include <netinet/if_ether.h>
#include <vax/mbus/mbusreg.h>
-/* $OpenBSD: machdep.c,v 1.146 2014/12/10 15:29:53 mikeb Exp $ */
+/* $OpenBSD: machdep.c,v 1.147 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
#include <net/if.h>
#include <uvm/uvm.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/ip_var.h>
-#endif
#include "ppp.h" /* For NPPP */
#include "bridge.h" /* For NBRIDGE */
#if NPPP > 0
-/* $OpenBSD: if_le_vsbus.c,v 1.14 2013/09/24 20:10:53 miod Exp $ */
+/* $OpenBSD: if_le_vsbus.c,v 1.15 2014/12/22 02:26:54 tedu Exp $ */
/* $NetBSD: if_le_vsbus.c,v 1.10 2000/06/29 07:14:18 mrg Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
-#endif
#include <netinet/if_ether.h>
#include <machine/cpu.h>