-/* $OpenBSD: acx.c,v 1.112 2015/09/06 04:10:34 deraadt Exp $ */
+/* $OpenBSD: acx.c,v 1.113 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
{
struct acx_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
uint8_t chan;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: aic6915.c,v 1.17 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: aic6915.c,v 1.18 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: aic6915.c,v 1.15 2005/12/24 20:27:29 perry Exp $ */
/*-
sf_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct sf_softc *sc = (struct sf_softc *)ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sf_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: an.c,v 1.65 2015/06/21 21:22:27 krw Exp $ */
+/* $OpenBSD: an.c,v 1.66 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: an.c,v 1.34 2005/06/20 02:49:18 atatat Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
an_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct an_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
if ((sc->sc_dev.dv_flags & DVF_ACTIVE) == 0)
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- error = an_init(ifp);
- arp_ifinit(&sc->sc_ic.ic_ac, ifa);
- break;
- default:
- error = an_init(ifp);
- break;
- }
+ error = an_init(ifp);
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: ath.c,v 1.105 2015/03/14 03:38:47 jsg Exp $ */
+/* $OpenBSD: ath.c,v 1.106 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
struct ath_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int error = 0, s;
s = splnet();
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET) {
- arp_ifinit(&ic->ic_ac, ifa);
- }
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: athn.c,v 1.86 2015/03/14 03:38:47 jsg Exp $ */
+/* $OpenBSD: athn.c,v 1.87 2015/10/25 12:48:46 mpi Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
{
struct athn_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: atw.c,v 1.88 2015/09/06 04:10:58 deraadt Exp $ */
+/* $OpenBSD: atw.c,v 1.89 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
atw_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct atw_softc *sc = ifp->if_softc;
- struct ieee80211com *ic = &sc->sc_ic;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
/* XXX monkey see, monkey do. comes from wi_ioctl. */
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET) {
- arp_ifinit(&ic->ic_ac, ifa);
- }
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: bwi.c,v 1.117 2015/08/29 20:55:34 deraadt Exp $ */
+/* $OpenBSD: bwi.c,v 1.118 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
{
struct bwi_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
uint8_t chan;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: dc.c,v 1.144 2015/09/12 09:56:36 miod Exp $ */
+/* $OpenBSD: dc.c,v 1.145 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
{
struct dc_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
s = splnet();
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
dc_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: dp8390.c,v 1.55 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: dp8390.c,v 1.56 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: dp8390.c,v 1.13 1998/07/05 06:49:11 jonathan Exp $ */
/*
dp8390_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct dp8390_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
dp8390_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: elink3.c,v 1.87 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: elink3.c,v 1.88 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */
/*
epioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct ep_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
epinit(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: fxp.c,v 1.122 2015/08/29 20:55:34 deraadt Exp $ */
+/* $OpenBSD: fxp.c,v 1.123 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
{
struct fxp_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
s = splnet();
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
fxp_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: gem.c,v 1.113 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: gem.c,v 1.114 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
gem_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct gem_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
gem_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: hme.c,v 1.74 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: hme.c,v 1.75 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
/*-
hme_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct hme_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
hme_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: i82596.c,v 1.44 2015/09/18 09:54:08 miod Exp $ */
+/* $OpenBSD: i82596.c,v 1.45 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: i82586.c,v 1.18 1998/08/15 04:42:42 mycroft Exp $ */
/*-
caddr_t data;
{
struct ie_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
switch(cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-
- switch(ifa->ifa_addr->sa_family) {
- case AF_INET:
- i82596_init(sc);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- i82596_init(sc);
- break;
- }
+ i82596_init(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_wi.c,v 1.163 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: if_wi.c,v 1.164 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
struct wi_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
struct proc *p = curproc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct wi_scan_res *res;
struct wi_scan_p2_hdr *p2;
struct wi_req *wreq = NULL;
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- wi_init(sc);
- arp_ifinit(&sc->sc_ic.ic_ac, ifa);
- break;
- default:
- wi_init(sc);
- break;
- }
+ wi_init(sc);
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: lance.c,v 1.8 2015/07/08 07:21:50 mpi Exp $ */
+/* $OpenBSD: lance.c,v 1.9 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: lance.c,v 1.46 2012/02/02 19:43:03 tls Exp $ */
/*-
lance_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct lance_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
lance_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: lemac.c,v 1.21 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: lemac.c,v 1.22 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: lemac.c,v 1.20 2001/06/13 10:46:02 wiz Exp $ */
/*-
lemac_ifioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct lemac_softc *const sc = LEMAC_IFP_TO_SOFTC(ifp);
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
lemac_init(sc);
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
-
- default:
- break;
- }
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: malo.c,v 1.107 2015/09/09 18:23:55 deraadt Exp $ */
+/* $OpenBSD: malo.c,v 1.108 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
{
struct malo_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
uint8_t chan;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: mtd8xx.c,v 1.27 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: mtd8xx.c,v 1.28 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru>
mtd_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct mtd_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
mtd_init(ifp);
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- }
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: pgt.c,v 1.78 2015/05/21 09:36:20 mpi Exp $ */
+/* $OpenBSD: pgt.c,v 1.79 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
pgt_ioctl(struct ifnet *ifp, u_long cmd, caddr_t req)
{
struct pgt_softc *sc = ifp->if_softc;
- struct ifaddr *ifa;
struct ifreq *ifr;
struct wi_req *wreq;
struct ieee80211_nodereq_all *na;
break;
}
case SIOCSIFADDR:
- ifa = (struct ifaddr *)req;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ic.ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: re.c,v 1.180 2015/09/04 07:05:44 jsg Exp $ */
+/* $OpenBSD: re.c,v 1.181 2015/10/25 12:48:46 mpi Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
{
struct rl_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
s = splnet();
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
re_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rt2560.c,v 1.72 2015/09/09 19:26:05 deraadt Exp $ */
+/* $OpenBSD: rt2560.c,v 1.73 2015/10/25 12:48:46 mpi Exp $ */
/*-
* Copyright (c) 2005, 2006
{
struct rt2560_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rt2661.c,v 1.82 2015/09/09 19:26:05 deraadt Exp $ */
+/* $OpenBSD: rt2661.c,v 1.83 2015/10/25 12:48:46 mpi Exp $ */
/*-
* Copyright (c) 2006
{
struct rt2661_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rt2860.c,v 1.81 2015/08/29 20:55:34 deraadt Exp $ */
+/* $OpenBSD: rt2860.c,v 1.82 2015/10/25 12:48:46 mpi Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
{
struct rt2860_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: rtl81x9.c,v 1.91 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.92 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 1997, 1998
{
struct rl_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
- struct ifaddr *ifa = (struct ifaddr *) data;
int s, error = 0;
s = splnet();
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
rl_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: rtw.c,v 1.90 2015/02/10 23:25:46 mpi Exp $ */
+/* $OpenBSD: rtw.c,v 1.91 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */
/*-
rtw_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct rtw_softc *sc = ifp->if_softc;
- struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int rc = 0, s;
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET) {
- arp_ifinit(&ic->ic_ac, ifa);
- }
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: smc83c170.c,v 1.22 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: smc83c170.c,v 1.23 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: smc83c170.c,v 1.59 2005/02/27 00:27:02 perry Exp $ */
/*-
epic_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct epic_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- epic_init(ifp);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- epic_init(ifp);
- break;
- }
+ epic_init(ifp);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: smc91cxx.c,v 1.41 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: smc91cxx.c,v 1.42 2015/10/25 12:48:46 mpi Exp $ */
/* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */
/*-
caddr_t data;
{
struct smc91cxx_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
if ((error = smc91cxx_enable(sc)) != 0)
break;
ifp->if_flags |= IFF_UP;
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- smc91cxx_init(sc);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- smc91cxx_init(sc);
- break;
- }
+ smc91cxx_init(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: ti.c,v 1.17 2015/09/09 18:24:26 deraadt Exp $ */
+/* $OpenBSD: ti.c,v 1.18 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
ti_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct ti_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
ti_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: xl.c,v 1.126 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: xl.c,v 1.127 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
{
struct xl_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
struct mii_data *mii = NULL;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
xl_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS: