-/* $OpenBSD: if_acx_cardbus.c,v 1.19 2010/09/06 19:20:21 deraadt Exp $ */
+/* $OpenBSD: if_acx_cardbus.c,v 1.20 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
#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_var.h>
#include <net80211/ieee80211_amrr.h>
-/* $OpenBSD: if_ath_cardbus.c,v 1.17 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_ath_cardbus.c,v 1.18 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_ath_cardbus.c,v 1.4 2004/08/02 19:14:28 mycroft Exp $ */
/*
#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_var.h>
#include <net80211/ieee80211_rssadapt.h>
-/* $OpenBSD: if_atw_cardbus.c,v 1.21 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_atw_cardbus.c,v 1.22 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_atw_cardbus.c,v 1.9 2004/07/23 07:07:55 dyoung Exp $ */
/*-
#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_radiotap.h>
#include <net80211/ieee80211_var.h>
-/* $OpenBSD: if_rtw_cardbus.c,v 1.23 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_rtw_cardbus.c,v 1.24 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_rtw_cardbus.c,v 1.4 2004/12/20 21:05:34 dyoung Exp $ */
/*-
#include <net/if.h>
#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_radiotap.h>
#include <net80211/ieee80211_var.h>
-/* $OpenBSD: if_le_dec.c,v 1.5 2013/09/24 20:10:54 miod Exp $ */
+/* $OpenBSD: if_le_dec.c,v 1.6 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_le_dec.c,v 1.12 2001/11/13 12:49:45 lukem Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/ic/lancereg.h>
#include <dev/ic/lancevar.h>
-/* $OpenBSD: acx.c,v 1.108 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: acx.c,v 1.109 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_amrr.h>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: acx100.c,v 1.24 2014/09/25 04:19:45 jsg Exp $ */
+/* $OpenBSD: acx100.c,v 1.25 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
#include <net/if_arp.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_amrr.h>
-/* $OpenBSD: acx111.c,v 1.21 2014/11/18 23:55:01 krw Exp $ */
+/* $OpenBSD: acx111.c,v 1.22 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
#include <net/if_arp.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_amrr.h>
-/* $OpenBSD: aic6915.c,v 1.13 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: aic6915.c,v 1.14 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: aic6915.c,v 1.15 2005/12/24 20:27:29 perry Exp $ */
/*-
#include <net/if.h>
#include <net/if_dl.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sf_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: am7990.c,v 1.48 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: am7990.c,v 1.49 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: am7990.c,v 1.74 2012/02/02 19:43:02 tls Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
-/* $OpenBSD: am79900.c,v 1.2 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: am79900.c,v 1.3 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: am79900.c,v 1.23 2012/02/02 19:43:02 tls Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
-/* $OpenBSD: an.c,v 1.62 2014/09/14 14:17:24 jsg Exp $ */
+/* $OpenBSD: an.c,v 1.63 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: an.c,v 1.34 2005/06/20 02:49:18 atatat Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_media.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_radiotap.h>
#include <net80211/ieee80211_var.h>
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
error = an_init(ifp);
arp_ifinit(&sc->sc_ic.ic_ac, ifa);
break;
-#endif
default:
error = an_init(ifp);
break;
-/* $OpenBSD: ath.c,v 1.102 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: ath.c,v 1.103 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_rssadapt.h>
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET) {
arp_ifinit(&ic->ic_ac, ifa);
}
-#endif /* INET */
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: athn.c,v 1.84 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: athn.c,v 1.85 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: atw.c,v 1.84 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: atw.c,v 1.85 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_radiotap.h>
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET) {
arp_ifinit(&ic->ic_ac, ifa);
}
-#endif /* INET */
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: bwi.c,v 1.112 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: bwi.c,v 1.113 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: dc.c,v 1.135 2014/11/18 22:53:56 brad Exp $ */
+/* $OpenBSD: dc.c,v 1.136 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
dc_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: dp8390.c,v 1.47 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: dp8390.c,v 1.48 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: dp8390.c,v 1.13 1998/07/05 06:49:11 jonathan Exp $ */
/*
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
dp8390_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: elink3.c,v 1.80 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: elink3.c,v 1.81 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */
/*
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
epinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
epinit(sc);
break;
-/* $OpenBSD: fxp.c,v 1.117 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: fxp.c,v 1.118 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
#include <net/if_media.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/ip.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
fxp_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: gem.c,v 1.107 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: gem.c,v 1.108 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
gem_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: hme.c,v 1.69 2014/11/27 14:53:42 brad Exp $ */
+/* $OpenBSD: hme.c,v 1.70 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
/*-
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
hme_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: i82596.c,v 1.39 2014/07/22 13:12:12 mpi Exp $ */
+/* $OpenBSD: i82596.c,v 1.40 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: i82586.c,v 1.18 1998/08/15 04:42:42 mycroft Exp $ */
/*-
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
ifp->if_flags |= IFF_UP;
switch(ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
i82596_init(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
i82596_init(sc);
break;
-/* $OpenBSD: if_wi.c,v 1.158 2014/11/18 02:37:30 tedu Exp $ */
+/* $OpenBSD: if_wi.c,v 1.159 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_media.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_ioctl.h>
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
wi_init(sc);
arp_ifinit(&sc->sc_ic.ic_ac, ifa);
break;
-#endif /* INET */
default:
wi_init(sc);
break;
-/* $OpenBSD: lance.c,v 1.4 2014/07/22 13:12:12 mpi Exp $ */
+/* $OpenBSD: lance.c,v 1.5 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: lance.c,v 1.46 2012/02/02 19:43:03 tls Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
lance_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: lemac.c,v 1.17 2014/07/22 13:12:12 mpi Exp $ */
+/* $OpenBSD: lemac.c,v 1.18 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: lemac.c,v 1.20 2001/06/13 10:46:02 wiz Exp $ */
/*-
#include <net/route.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
ifp->if_flags |= IFF_UP;
lemac_init(sc);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
default:
break;
-/* $OpenBSD: malo.c,v 1.103 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: malo.c,v 1.104 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: mtd8xx.c,v 1.23 2014/12/08 10:58:45 brad Exp $ */
+/* $OpenBSD: mtd8xx.c,v 1.24 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
ifp->if_flags |= IFF_UP;
mtd_init(ifp);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
}
break;
-/* $OpenBSD: pgt.c,v 1.76 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: pgt.c,v 1.77 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_radiotap.h>
case SIOCSIFADDR:
ifa = (struct ifaddr *)req;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ic.ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: re.c,v 1.164 2014/12/19 04:53:58 brad Exp $ */
+/* $OpenBSD: re.c,v 1.165 2014/12/22 02:28:51 tedu Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NVLAN > 0
#include <net/if_types.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
re_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rt2560.c,v 1.68 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: rt2560.c,v 1.69 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2005, 2006
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rt2661.c,v 1.77 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: rt2661.c,v 1.78 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2006
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rt2860.c,v 1.77 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: rt2860.c,v 1.78 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rtl80x9.c,v 1.8 2008/06/26 05:42:16 ray Exp $ */
+/* $OpenBSD: rtl80x9.c,v 1.9 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: rtl80x9.c,v 1.1 1998/10/31 00:44:33 thorpej Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
-/* $OpenBSD: rtl81x9.c,v 1.85 2014/12/08 10:58:45 brad Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.86 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1997, 1998
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
rl_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: rtw.c,v 1.88 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: rtw.c,v 1.89 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */
/*-
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_radiotap.h>
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET) {
arp_ifinit(&ic->ic_ac, ifa);
}
-#endif /* INET */
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: smc83c170.c,v 1.17 2014/07/22 13:12:12 mpi Exp $ */
+/* $OpenBSD: smc83c170.c,v 1.18 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: smc83c170.c,v 1.59 2005/02/27 00:27:02 perry Exp $ */
/*-
#include <net/if.h>
#include <net/if_dl.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
epic_init(ifp);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
epic_init(ifp);
break;
-/* $OpenBSD: smc91cxx.c,v 1.36 2014/09/23 02:53:59 dlg Exp $ */
+/* $OpenBSD: smc91cxx.c,v 1.37 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */
/*-
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
break;
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
smc91cxx_init(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
smc91cxx_init(sc);
break;
-/* $OpenBSD: ti.c,v 1.11 2014/12/06 23:20:17 krw Exp $ */
+/* $OpenBSD: ti.c,v 1.12 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
ti_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: xl.c,v 1.120 2014/12/19 07:23:57 deraadt Exp $ */
+/* $OpenBSD: xl.c,v 1.121 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_types.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
xl_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ef_isapnp.c,v 1.26 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_ef_isapnp.c,v 1.27 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
efinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
efinit(sc);
break;
-/* $OpenBSD: if_eg.c,v 1.35 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_eg.c,v 1.36 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_eg.c,v 1.26 1996/05/12 23:52:27 mycroft Exp $ */
/*
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
eginit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
eginit(sc);
break;
-/* $OpenBSD: if_el.c,v 1.23 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_el.c,v 1.24 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_el.c,v 1.39 1996/05/12 23:52:32 mycroft Exp $ */
/*
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
elinit(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
default:
elinit(sc);
break;
-/* $OpenBSD: if_ex.c,v 1.36 2010/07/02 02:29:45 tedu Exp $ */
+/* $OpenBSD: if_ex.c,v 1.37 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 1997, Donald A. Schmidt
* Copyright (c) 1996, Javier MartÃn Rueda (jmrueda@diatel.upm.es)
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
ex_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
DODEBUG(Start_End, printf("SIOCSIFFLAGS"););
-/* $OpenBSD: if_ie.c,v 1.39 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_ie.c,v 1.40 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_ie.c,v 1.51 1996/05/12 23:52:48 mycroft 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.19 2013/09/24 20:11:00 miod Exp $ */
+/* $OpenBSD: if_le.c,v 1.20 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_le_isa.c,v 1.2 1996/05/12 23:52:56 mycroft Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/cpu.h>
#include <machine/intr.h>
-/* $OpenBSD: if_le_isa.c,v 1.21 2013/09/24 20:11:01 miod Exp $ */
+/* $OpenBSD: if_le_isa.c,v 1.22 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_le_isa.c,v 1.2 1996/05/12 23:52:56 mycroft Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/cpu.h>
#include <machine/intr.h>
-/* $OpenBSD: if_le_isapnp.c,v 1.13 2013/09/24 20:11:01 miod Exp $ */
+/* $OpenBSD: if_le_isapnp.c,v 1.14 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_le_isa.c,v 1.2 1996/05/12 23:52:56 mycroft Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/cpu.h>
#include <machine/intr.h>
-/* $OpenBSD: if_age.c,v 1.24 2014/11/18 02:37:30 tedu Exp $ */
+/* $OpenBSD: if_age.c,v 1.25 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_types.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
age_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_alc.c,v 1.29 2014/11/27 14:52:04 brad Exp $ */
+/* $OpenBSD: if_alc.c,v 1.30 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_types.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
alc_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ale.c,v 1.34 2014/11/27 14:52:04 brad Exp $ */
+/* $OpenBSD: if_ale.c,v 1.35 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
#include <net/if_llc.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_types.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
ale_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ath_pci.c,v 1.23 2013/11/21 16:16:08 mpi Exp $ */
+/* $OpenBSD: if_ath_pci.c,v 1.24 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_ath_pci.c,v 1.7 2004/06/30 05:58:17 mycroft Exp $ */
/*-
#include <net/if_dl.h>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_rssadapt.h>
-/* $OpenBSD: if_atw_pci.c,v 1.16 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_atw_pci.c,v 1.17 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_atw_pci.c,v 1.7 2004/07/23 07:07:55 dyoung Exp $ */
/*-
#include <net/if.h>
#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_radiotap.h>
#include <net80211/ieee80211_var.h>
-/* $OpenBSD: if_bce.c,v 1.39 2014/12/08 16:21:38 brad Exp $ */
+/* $OpenBSD: if_bce.c,v 1.40 2014/12/22 02:28:51 tedu Exp $ */
/* $NetBSD: if_bce.c,v 1.3 2003/09/29 01:53:02 mrg Exp $ */
/*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
bce_init(ifp);
arp_ifinit(&sc->bce_ac, ifa);
break;
-#endif /* INET */
default:
bce_init(ifp);
break;
-/* $OpenBSD: if_bge.c,v 1.361 2014/09/02 10:14:55 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.362 2014/12/22 02:28:51 tedu Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NVLAN > 0
#include <net/if_types.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
bge_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_bnx.c,v 1.107 2014/07/18 07:11:04 dlg Exp $ */
+/* $OpenBSD: if_bnx.c,v 1.108 2014/12/22 02:28:51 tedu Exp $ */
/*-
* Copyright (c) 2006 Broadcom Corporation
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
bnx_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cas.c,v 1.36 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_cas.c,v 1.37 2014/12/22 02:28:52 tedu Exp $ */
/*
*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
cas_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_dc_pci.c,v 1.70 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_dc_pci.c,v 1.71 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-/* $OpenBSD: if_de.c,v 1.116 2014/09/08 06:24:13 jsg Exp $ */
+/* $OpenBSD: if_de.c,v 1.117 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_de.c,v 1.58 1998/01/12 09:39:58 thorpej Exp $ */
/*-
ifp->if_flags |= IFF_UP;
tulip_init(sc);
switch(ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET: {
arp_ifinit(&sc->tulip_ac, ifa);
break;
}
-#endif /* INET */
default: {
break;
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.289 2014/11/19 23:47:22 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.290 2014/12/22 02:28:52 tedu Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
ifp->if_flags |= IFF_UP;
em_init(sc);
}
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->interface_data, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
*******************************************************************************/
-/* $OpenBSD: if_em_hw.c,v 1.81 2014/11/05 15:30:17 claudio Exp $ */
+/* $OpenBSD: if_em_hw.c,v 1.82 2014/12/22 02:28:52 tedu Exp $ */
/*
* if_em_hw.c Shared functions for accessing and configuring the MAC
*/
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <uvm/uvm_extern.h>
-/* $OpenBSD: if_ep_pci.c,v 1.30 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_ep_pci.c,v 1.31 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_ep_pci.c,v 1.13 1996/10/21 22:56:38 thorpej Exp $ */
/*
#include <net/if_types.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
-/* $OpenBSD: if_epic_pci.c,v 1.13 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_epic_pci.c,v 1.14 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_epic_pci.c,v 1.28 2005/02/27 00:27:32 perry Exp $ */
/*-
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-/* $OpenBSD: if_et.c,v 1.24 2014/08/30 09:52:13 brad Exp $ */
+/* $OpenBSD: if_et.c,v 1.25 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
et_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_fxp_pci.c,v 1.62 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_fxp_pci.c,v 1.63 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1995, David Greenman
#include <net/if_media.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
-#endif
#include <sys/ioctl.h>
#include <sys/errno.h>
-/* $OpenBSD: if_gem_pci.c,v 1.35 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_gem_pci.c,v 1.36 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_gem_pci.c,v 1.1 2001/09/16 00:11:42 eeh Exp $ */
/*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
#include <machine/intr.h>
-/* $OpenBSD: if_hme_pci.c,v 1.18 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_hme_pci.c,v 1.19 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_hme_pci.c,v 1.3 2000/12/28 22:59:13 sommerfeld Exp $ */
/*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
-/* $OpenBSD: if_ipw.c,v 1.104 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_ipw.c,v 1.105 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2004-2008
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_iwi.c,v 1.120 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.121 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2004-2008
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_iwn.c,v 1.136 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.137 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_ix.c,v 1.112 2014/12/13 21:05:33 doug Exp $ */
+/* $OpenBSD: if_ix.c,v 1.113 2014/12/22 02:28:52 tedu Exp $ */
/******************************************************************************
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
ixgbe_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
***************************************************************************/
-/* $OpenBSD: if_ixgb.c,v 1.62 2014/07/13 23:10:23 deraadt Exp $ */
+/* $OpenBSD: if_ixgb.c,v 1.63 2014/12/22 02:28:52 tedu Exp $ */
#include <dev/pci/if_ixgb.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
ixgb_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->interface_data, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_jme.c,v 1.36 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_jme.c,v 1.37 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_types.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
jme_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_lge.c,v 1.63 2014/08/20 01:00:15 dlg Exp $ */
+/* $OpenBSD: if_lge.c,v 1.64 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
lge_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_lii.c,v 1.33 2014/08/30 09:52:13 brad Exp $ */
+/* $OpenBSD: if_lii.c,v 1.34 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 The NetBSD Foundation.
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
switch(cmd) {
case SIOCSIFADDR:
SET(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:
-/* $OpenBSD: if_msk.c,v 1.111 2014/11/24 23:28:50 brad Exp $ */
+/* $OpenBSD: if_msk.c,v 1.112 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
msk_init(sc_if);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc_if->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_mtd_pci.c,v 1.10 2005/08/09 04:10:12 mickey Exp $ */
+/* $OpenBSD: if_mtd_pci.c,v 1.11 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru>
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
-/* $OpenBSD: if_myx.c,v 1.71 2014/10/28 00:36:06 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.72 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
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:
-/* $OpenBSD: if_ne_pci.c,v 1.19 2014/11/24 02:03:37 brad Exp $ */
+/* $OpenBSD: if_ne_pci.c,v 1.20 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_ne_pci.c,v 1.8 1998/07/05 00:51:24 jonathan Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
#include <machine/intr.h>
-/* $OpenBSD: if_nep.c,v 1.1 2014/02/15 15:19:46 kettenis Exp $ */
+/* $OpenBSD: if_nep.c,v 1.2 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2014 Mark Kettenis
*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
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:
-/* $OpenBSD: if_nfe.c,v 1.107 2014/08/20 23:56:57 dlg Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.108 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2006, 2007 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NVLAN > 0
#include <net/if_types.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
nfe_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_nge.c,v 1.80 2014/08/20 00:59:56 dlg Exp $ */
+/* $OpenBSD: if_nge.c,v 1.81 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NVLAN > 0
#include <net/if_types.h>
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
nge_init(sc);
arp_ifinit(&sc->arpcom, ifa);
break;
-#endif /* INET */
default:
nge_init(sc);
break;
-/* $OpenBSD: if_nxe.c,v 1.66 2014/07/13 23:10:23 deraadt Exp $ */
+/* $OpenBSD: if_nxe.c,v 1.67 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#ifdef NXE_DEBUG
int nxedebug = 0;
switch (cmd) {
case SIOCSIFADDR:
SET(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:
-/* $OpenBSD: if_oce.c,v 1.80 2014/12/13 21:05:33 doug Exp $ */
+/* $OpenBSD: if_oce.c,v 1.81 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#ifdef INET6
#include <netinet/ip6.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
oce_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) {
oce_tso(struct oce_softc *sc, struct mbuf **mpp)
{
struct mbuf *m;
-#ifdef INET
struct ip *ip;
-#endif
#ifdef INET6
struct ip6_hdr *ip6;
#endif
}
switch (etype) {
-#ifdef INET
case ETHERTYPE_IP:
ip = (struct ip *)(m->m_data + ehdrlen);
if (ip->ip_p != IPPROTO_TCP)
total_len = ehdrlen + (ip->ip_hl << 2) + (th->th_off << 2);
break;
-#endif
#ifdef INET6
case ETHERTYPE_IPV6:
ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen);
-/* $OpenBSD: if_pcn.c,v 1.32 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.33 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
#include <net/if.h>
#include <net/if_dl.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
pcn_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_re_pci.c,v 1.43 2014/10/24 23:30:05 brad Exp $ */
+/* $OpenBSD: if_re_pci.c,v 1.44 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org>
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
-/* $OpenBSD: if_rl_pci.c,v 1.29 2014/11/24 02:03:37 brad Exp $ */
+/* $OpenBSD: if_rl_pci.c,v 1.30 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-/* $OpenBSD: if_rtw_pci.c,v 1.18 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_rtw_pci.c,v 1.19 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_rtw_pci.c,v 1.1 2004/09/26 02:33:36 dyoung Exp $ */
/*-
#include <net/if.h>
#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_radiotap.h>
#include <net80211/ieee80211_var.h>
-/* $OpenBSD: if_se.c,v 1.9 2013/12/28 03:34:54 deraadt Exp $ */
+/* $OpenBSD: if_se.c,v 1.10 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2009, 2010 Christopher Zimmermann <madroach@zakweb.de>
{
struct se_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
-#ifdef INET
struct ifaddr *ifa = (struct ifaddr *)data;
-#endif
int s, rc = 0;
s = splnet();
if ((ifp->if_flags & IFF_RUNNING) == 0)
rc = se_init(ifp);
if (rc == 0) {
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
}
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_sf_pci.c,v 1.11 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_sf_pci.c,v 1.12 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_sf_pci.c,v 1.10 2006/06/17 23:34:27 christos Exp $ */
/*-
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
-/* $OpenBSD: if_sis.c,v 1.120 2014/12/17 03:50:53 brad Exp $ */
+/* $OpenBSD: if_sis.c,v 1.121 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sis_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_sk.c,v 1.172 2014/08/20 03:29:35 dlg Exp $ */
+/* $OpenBSD: if_sk.c,v 1.173 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sk_init(sc_if);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc_if->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ste.c,v 1.56 2014/12/08 10:58:45 brad Exp $ */
+/* $OpenBSD: if_ste.c,v 1.57 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
ste_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_stge.c,v 1.57 2014/12/08 16:21:38 brad Exp $ */
+/* $OpenBSD: if_stge.c,v 1.58 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */
/*-
#include <net/if.h>
#include <net/if_dl.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
if (!(ifp->if_flags & IFF_RUNNING))
stge_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_tht.c,v 1.128 2014/07/13 23:10:23 deraadt Exp $ */
+/* $OpenBSD: if_tht.c,v 1.129 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#ifdef THT_DEBUG
#define THT_D_FIFO (1<<0)
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:
-/* $OpenBSD: if_ti_pci.c,v 1.3 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_ti_pci.c,v 1.4 2014/12/22 02:28:52 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 <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
-/* $OpenBSD: if_tl.c,v 1.60 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_tl.c,v 1.61 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998
#include <net/if.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_dl.h>
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
tl_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_txp.c,v 1.112 2014/12/06 23:20:17 krw Exp $ */
+/* $OpenBSD: if_txp.c,v 1.113 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2001
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
txp_init(sc);
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif /* INET */
default:
txp_init(sc);
break;
-/* $OpenBSD: if_vge.c,v 1.58 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_vge.c,v 1.59 2014/12/22 02:28:52 tedu Exp $ */
/* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */
/*
* Copyright (c) 2004
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NVLAN > 0
#include <net/if_types.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
vge_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_vic.c,v 1.82 2014/12/01 01:59:45 brad Exp $ */
+/* $OpenBSD: if_vic.c,v 1.83 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
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_vio.c,v 1.21 2014/12/13 21:05:33 doug Exp $ */
+/* $OpenBSD: if_vio.c,v 1.22 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
#include <net/if_media.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBPFILTER > 0
#include <net/bpf.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
vio_init(ifp);
-#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_vmx.c,v 1.21 2014/12/19 02:32:57 brad Exp $ */
+/* $OpenBSD: if_vmx.c,v 1.22 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2013 Tsubai Masanari
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
error = vmxnet3_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_vr.c,v 1.136 2014/11/27 03:49:07 brad Exp $ */
+/* $OpenBSD: if_vr.c,v 1.137 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998
#include <net/if.h>
#include <sys/device.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif /* INET */
#include <net/if_dl.h>
#include <net/if_media.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
vr_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_vte.c,v 1.10 2014/11/18 02:37:30 tedu Exp $ */
+/* $OpenBSD: if_vte.c,v 1.11 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_types.h>
#include <net/if_vlan_var.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
vte_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_wb.c,v 1.57 2014/12/03 09:10:17 brad Exp $ */
+/* $OpenBSD: if_wb.c,v 1.58 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998
#include <net/if_dl.h>
#include <net/if_types.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net/if_media.h>
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
wb_init(sc);
arp_ifinit(&sc->arpcom, ifa);
break;
-#endif /* INET */
default:
wb_init(sc);
}
-/* $OpenBSD: if_wi_pci.c,v 1.50 2013/12/06 21:03:04 deraadt Exp $ */
+/* $OpenBSD: if_wi_pci.c,v 1.51 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2001-2003 Todd C. Miller <Todd.Miller@courtesan.com>
#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_var.h>
#include <net80211/ieee80211_ioctl.h>
-/* $OpenBSD: if_wpi.c,v 1.121 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.122 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2006-2008
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_xge.c,v 1.58 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: if_xge.c,v 1.59 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NVLAN > 0
#include <net/if_types.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
xge_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_xl_pci.c,v 1.42 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: if_xl_pci.c,v 1.43 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#include <net/if_types.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
*******************************************************************************/
-/* $OpenBSD: ixgb_ee.c,v 1.4 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ixgb_ee.c,v 1.5 2014/12/22 02:28:52 tedu Exp $ */
#include <sys/param.h>
#include <sys/systm.h>
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <uvm/uvm_extern.h>
*******************************************************************************/
-/* $OpenBSD: ixgb_hw.c,v 1.5 2014/07/22 13:12:11 mpi Exp $ */
+/* $OpenBSD: ixgb_hw.c,v 1.6 2014/12/22 02:28:52 tedu Exp $ */
/* ixgb_hw.c
* Shared functions for accessing and configuring the adapter
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <uvm/uvm_extern.h>
-/* $OpenBSD: if_cnw.c,v 1.25 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_cnw.c,v 1.26 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
break;
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&sc->sc_arpcom, ifa);
break;
-#endif
}
break;
-/* $OpenBSD: if_malo.c,v 1.80 2014/09/14 14:17:25 jsg Exp $ */
+/* $OpenBSD: if_malo.c,v 1.81 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_wi_pcmcia.c,v 1.72 2013/12/06 21:03:04 deraadt Exp $ */
+/* $OpenBSD: if_wi_pcmcia.c,v 1.73 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_wi_pcmcia.c,v 1.14 2001/11/26 04:34:56 ichiro Exp $ */
/*
#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_var.h>
#include <net80211/ieee80211_ioctl.h>
-/* $OpenBSD: if_xe.c,v 1.45 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: if_xe.c,v 1.46 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist, Brandon Creighton, Job de Haas
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
xe_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif /* INET */
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: be.c,v 1.27 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: be.c,v 1.28 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */
/*-
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: if_le.c,v 1.15 2013/09/24 20:11:02 miod Exp $ */
+/* $OpenBSD: if_le.c,v 1.16 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_le.c,v 1.17 2001/05/30 11:46:35 mrg Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
#include <machine/intr.h>
-/* $OpenBSD: if_le_lebuffer.c,v 1.11 2013/09/24 20:11:03 miod Exp $ */
+/* $OpenBSD: if_le_lebuffer.c,v 1.12 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_le_lebuffer.c,v 1.10 2002/03/11 16:00:56 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/bus.h>
#include <machine/intr.h>
-/* $OpenBSD: if_le_ledma.c,v 1.17 2013/09/24 20:11:04 miod Exp $ */
+/* $OpenBSD: if_le_ledma.c,v 1.18 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_le_ledma.c,v 1.14 2001/05/30 11:46:35 mrg Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <machine/bus.h>
#include <machine/intr.h>
-/* $OpenBSD: qe.c,v 1.26 2014/08/11 12:45:45 mpi Exp $ */
+/* $OpenBSD: qe.c,v 1.27 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: qe.c,v 1.16 2001/03/30 17:30:18 christos Exp $ */
/*-
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: if_le_ioasic.c,v 1.16 2013/09/24 20:11:05 miod Exp $ */
+/* $OpenBSD: if_le_ioasic.c,v 1.17 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_le_ioasic.c,v 1.18 2001/11/13 06:26:10 lukem Exp $ */
/*
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/ic/lancereg.h>
#include <dev/ic/lancevar.h>
-/* $OpenBSD: if_le_tc.c,v 1.11 2013/09/24 20:11:05 miod Exp $ */
+/* $OpenBSD: if_le_tc.c,v 1.12 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_le_tc.c,v 1.12 2001/11/13 06:26:10 lukem Exp $ */
/*
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/ic/lancereg.h>
#include <dev/ic/lancevar.h>
-/* $OpenBSD: if_athn_usb.c,v 1.24 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_athn_usb.c,v 1.25 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_atu.c,v 1.109 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_atu.c,v 1.110 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2003, 2004
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
atu_init(ifp);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&sc->sc_ic.ic_ac, ifa);
break;
-#endif /* INET */
}
break;
-/* $OpenBSD: if_aue.c,v 1.94 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_aue.c,v 1.95 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_aue.c,v 1.82 2003/03/05 17:37:36 shiba Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
aue_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_axe.c,v 1.127 2014/11/24 02:03:37 brad Exp $ */
+/* $OpenBSD: if_axe.c,v 1.128 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
axe_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_axen.c,v 1.8 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_axen.c,v 1.9 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2013 Yojiro UO <yuo@openbsd.org>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
axen_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cdce.c,v 1.61 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_cdce.c,v 1.62 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
cdce_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->cdce_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cdcef.c,v 1.34 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_cdcef.c,v 1.35 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 Dale Rahn <drahn@openbsd.org>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
cdcef_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cue.c,v 1.66 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_cue.c,v 1.67 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_cue.c,v 1.40 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
cue_init(sc);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&sc->arpcom, ifa);
break;
-#endif /* INET */
}
break;
-/* $OpenBSD: if_kue.c,v 1.74 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_kue.c,v 1.75 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
kue_init(sc);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
arp_ifinit(&sc->arpcom, ifa);
break;
-#endif /* INET */
}
break;
-/* $OpenBSD: if_mos.c,v 1.26 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_mos.c,v 1.27 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2008 Johann Christian Rode <jcrode@gmx.net>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
mos_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_otus.c,v 1.43 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_otus.c,v 1.44 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_ral.c,v 1.129 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_ral.c,v 1.130 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2005, 2006
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_rsu.c,v 1.23 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_rsu.c,v 1.24 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_rum.c,v 1.107 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_rum.c,v 1.108 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_run.c,v 1.105 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_run.c,v 1.106 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_smsc.c,v 1.13 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_smsc.c,v 1.14 2014/12/22 02:28:52 tedu Exp $ */
/* $FreeBSD: src/sys/dev/usb/net/if_smsc.c,v 1.1 2012/08/15 04:03:55 gonzo Exp $ */
/*-
* Copyright (c) 2012
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
smsc_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_uath.c,v 1.64 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_uath.c,v 1.65 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2006
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_udav.c,v 1.67 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_udav.c,v 1.68 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */
/* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */
/*
if (!(ifp->if_flags & IFF_RUNNING))
udav_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ugl.c,v 1.7 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_ugl.c,v 1.8 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 2013 SASANO Takayoshi <uaa@uaa.org.uk>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
ugl_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_upgt.c,v 1.65 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.66 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_upl.c,v 1.58 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_upl.c,v 1.59 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
upl_init(sc);
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
break;
-#endif /* INET */
}
break;
-/* $OpenBSD: if_url.c,v 1.70 2014/07/13 15:52:49 mpi Exp $ */
+/* $OpenBSD: if_url.c,v 1.71 2014/12/22 02:28:52 tedu Exp $ */
/* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */
/*
* Copyright (c) 2001, 2002
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
url_init(ifp);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_ac, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_urndis.c,v 1.50 2014/11/30 21:45:04 kettenis Exp $ */
+/* $OpenBSD: if_urndis.c,v 1.51 2014/12/22 02:28:52 tedu Exp $ */
/*
* Copyright (c) 2010 Jonathan Armani <armani@openbsd.org>
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
urndis_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_urtw.c,v 1.49 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_urtw.c,v 1.50 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_urtwn.c,v 1.39 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_urtwn.c,v 1.40 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_zyd.c,v 1.105 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.106 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {