-/* $OpenBSD: if_age.c,v 1.28 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_age.c,v 1.29 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
{
struct age_softc *sc = ifp->if_softc;
struct mii_data *mii = &sc->sc_miibus;
- 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))
age_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_alc.c,v 1.34 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: if_alc.c,v 1.35 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
{
struct alc_softc *sc = ifp->if_softc;
struct mii_data *mii = &sc->sc_miibus;
- 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))
alc_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ale.c,v 1.39 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_ale.c,v 1.40 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
{
struct ale_softc *sc = ifp->if_softc;
struct mii_data *mii = &sc->sc_miibus;
- 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))
ale_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_bce.c,v 1.46 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_bce.c,v 1.47 2015/10/25 13:04:28 mpi Exp $ */
/* $NetBSD: if_bce.c,v 1.3 2003/09/29 01:53:02 mrg Exp $ */
/*
bce_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct bce_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))
bce_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->bce_ac, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_bge.c,v 1.370 2015/10/19 05:31:25 jmatthew Exp $ */
+/* $OpenBSD: if_bge.c,v 1.371 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
bge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct bge_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
struct mii_data *mii;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
bge_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_bnx.c,v 1.114 2015/09/10 18:10:34 deraadt Exp $ */
+/* $OpenBSD: if_bnx.c,v 1.115 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2006 Broadcom Corporation
bnx_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct bnx_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii = &sc->bnx_mii;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
bnx_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cas.c,v 1.42 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: if_cas.c,v 1.43 2015/10/25 13:04:28 mpi Exp $ */
/*
*
cas_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct cas_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)
cas_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_de.c,v 1.123 2015/06/26 11:50:39 kettenis Exp $ */
+/* $OpenBSD: if_de.c,v 1.124 2015/10/25 13:04:28 mpi Exp $ */
/* $NetBSD: if_de.c,v 1.58 1998/01/12 09:39:58 thorpej Exp $ */
/*-
{
TULIP_PERFSTART(ifioctl)
tulip_softc_t * const sc = TULIP_IFP_TO_SOFTC(ifp);
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *) data;
int s;
int error = 0;
case SIOCSIFADDR: {
ifp->if_flags |= IFF_UP;
tulip_init(sc);
- switch(ifa->ifa_addr->sa_family) {
- case AF_INET: {
- arp_ifinit(&sc->tulip_ac, ifa);
- break;
- }
-
- default: {
- break;
- }
- }
break;
}
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.308 2015/10/08 09:21:26 kettenis Exp $ */
+/* $OpenBSD: if_em.c,v 1.309 2015/10/25 13:04:28 mpi Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
{
int error = 0;
struct ifreq *ifr = (struct ifreq *) data;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct em_softc *sc = ifp->if_softc;
int s;
ifp->if_flags |= IFF_UP;
em_init(sc);
}
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->interface_data, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_et.c,v 1.29 2015/07/08 14:41:30 mpi Exp $ */
+/* $OpenBSD: if_et.c,v 1.30 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
*
et_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct et_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))
et_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ipw.c,v 1.109 2015/09/01 07:09:55 deraadt Exp $ */
+/* $OpenBSD: if_ipw.c,v 1.110 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2004-2008
{
struct ipw_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: if_iwi.c,v 1.126 2015/09/01 07:09:55 deraadt Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.127 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2004-2008
{
struct iwi_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: if_iwm.c,v 1.61 2015/10/22 11:51:28 jsg Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.62 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
{
struct iwm_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:
ifp->if_flags |= IFF_UP;
- ifa = (struct ifaddr *)data;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_iwn.c,v 1.144 2015/09/01 07:09:55 deraadt Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.145 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
{
struct iwn_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: if_ix.c,v 1.125 2015/09/11 12:09:10 claudio Exp $ */
+/* $OpenBSD: if_ix.c,v 1.126 2015/10/25 13:04:28 mpi Exp $ */
/******************************************************************************
ixgbe_ioctl(struct ifnet * ifp, u_long command, caddr_t data)
{
struct ix_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))
ixgbe_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
***************************************************************************/
-/* $OpenBSD: if_ixgb.c,v 1.65 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_ixgb.c,v 1.66 2015/10/25 13:04:28 mpi Exp $ */
#include <dev/pci/if_ixgb.h>
ixgb_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct ixgb_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))
ixgb_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->interface_data, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_jme.c,v 1.41 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_jme.c,v 1.42 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
{
struct jme_softc *sc = ifp->if_softc;
struct mii_data *mii = &sc->sc_miibus;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int error = 0, s;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
jme_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_lge.c,v 1.67 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_lge.c,v 1.68 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
lge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct lge_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
lge_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_lii.c,v 1.37 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_lii.c,v 1.38 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2007 The NetBSD Foundation.
lii_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr)
{
struct lii_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)addr;
struct ifreq *ifr = (struct ifreq *)addr;
int s, error = 0;
switch(cmd) {
case SIOCSIFADDR:
SET(ifp->if_flags, IFF_UP);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_msk.c,v 1.116 2015/09/11 09:14:52 deraadt Exp $ */
+/* $OpenBSD: if_msk.c,v 1.117 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
msk_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct sk_if_softc *sc_if = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
msk_init(sc_if);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc_if->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_myx.c,v 1.84 2015/09/29 10:52:22 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.85 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
myx_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct myx_softc *sc = (struct myx_softc *)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;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_nep.c,v 1.19 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_nep.c,v 1.20 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2014, 2015 Mark Kettenis
*
nep_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct nep_softc *sc = (struct nep_softc *)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;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_nfe.c,v 1.111 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.112 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2006, 2007 Damien Bergamini <damien.bergamini@free.fr>
nfe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct nfe_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))
nfe_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_nge.c,v 1.85 2015/09/12 10:15:10 miod Exp $ */
+/* $OpenBSD: if_nge.c,v 1.86 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
nge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct nge_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii;
int s, error = 0;
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- nge_init(sc);
- arp_ifinit(&sc->arpcom, ifa);
- break;
- default:
- nge_init(sc);
- break;
- }
+ nge_init(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_nxe.c,v 1.67 2014/12/22 02:28:52 tedu Exp $ */
+/* $OpenBSD: if_nxe.c,v 1.68 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
nxe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr)
{
struct nxe_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)addr;
struct ifreq *ifr = (struct ifreq *)addr;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
SET(ifp->if_flags, IFF_UP);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_oce.c,v 1.87 2015/09/29 17:04:20 chris Exp $ */
+/* $OpenBSD: if_oce.c,v 1.88 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
oce_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct oce_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))
oce_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_pcn.c,v 1.37 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.38 2015/10/25 13:04:28 mpi Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
pcn_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct pcn_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))
pcn_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_rtwn.c,v 1.6 2015/08/28 00:03:53 deraadt Exp $ */
+/* $OpenBSD: if_rtwn.c,v 1.7 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
{
struct rtwn_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: if_se.c,v 1.13 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_se.c,v 1.14 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2009, 2010 Christopher Zimmermann <madroach@zakweb.de>
{
struct se_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, rc = 0;
s = splnet();
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
rc = se_init(ifp);
- if (rc == 0) {
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
- }
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_sis.c,v 1.127 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_sis.c,v 1.128 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
sis_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct sis_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sis_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_sk.c,v 1.177 2015/07/19 06:28:12 yuo Exp $ */
+/* $OpenBSD: if_sk.c,v 1.178 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
sk_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct sk_if_softc *sc_if = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii;
int s, error = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sk_init(sc_if);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc_if->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ste.c,v 1.59 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_ste.c,v 1.60 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
ste_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct ste_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))
ste_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_stge.c,v 1.61 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_stge.c,v 1.62 2015/10/25 13:04:28 mpi Exp $ */
/* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */
/*-
stge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct stge_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))
stge_init(ifp);
-
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_tht.c,v 1.133 2015/08/28 00:03:53 deraadt Exp $ */
+/* $OpenBSD: if_tht.c,v 1.134 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
tht_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr)
{
struct tht_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)addr;
struct ifreq *ifr = (struct ifreq *)addr;
int s, error = 0;
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_tl.c,v 1.65 2015/09/14 11:18:49 stsp Exp $ */
+/* $OpenBSD: if_tl.c,v 1.66 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998
tl_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct tl_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))
tl_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_txp.c,v 1.116 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_txp.c,v 1.117 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2001
txp_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct txp_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- txp_init(sc);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- txp_init(sc);
- break;
- }
+ txp_init(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_vge.c,v 1.64 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: if_vge.c,v 1.65 2015/10/25 13:04:28 mpi Exp $ */
/* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */
/*
* Copyright (c) 2004
vge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct vge_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))
vge_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_vic.c,v 1.91 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_vic.c,v 1.92 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
vic_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct vic_softc *sc = (struct vic_softc *)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;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_vio.c,v 1.33 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_vio.c,v 1.34 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
vio_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct vio_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, r = 0;
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
vio_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
-/* $OpenBSD: if_vmx.c,v 1.33 2015/09/20 22:26:18 dlg Exp $ */
+/* $OpenBSD: if_vmx.c,v 1.34 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 2013 Tsubai Masanari
{
struct vmxnet3_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int error = 0, s;
s = splnet();
ifp->if_flags |= IFF_UP;
if ((ifp->if_flags & IFF_RUNNING) == 0)
error = vmxnet3_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: if_vr.c,v 1.143 2015/10/20 17:08:39 chrisz Exp $ */
+/* $OpenBSD: if_vr.c,v 1.144 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998
vr_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct vr_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))
vr_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_vte.c,v 1.13 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_vte.c,v 1.14 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
{
struct vte_softc *sc = ifp->if_softc;
struct mii_data *mii = &sc->sc_miibus;
- 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))
vte_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: if_wb.c,v 1.62 2015/09/11 13:02:28 stsp Exp $ */
+/* $OpenBSD: if_wb.c,v 1.63 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998
caddr_t data;
{
struct wb_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- wb_init(sc);
- arp_ifinit(&sc->arpcom, ifa);
- break;
- default:
- wb_init(sc);
- }
+ wb_init(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_wpi.c,v 1.128 2015/09/06 04:09:59 deraadt Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.129 2015/10/25 13:04:28 mpi Exp $ */
/*-
* Copyright (c) 2006-2008
{
struct wpi_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: if_xge.c,v 1.62 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_xge.c,v 1.63 2015/10/25 13:04:28 mpi Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
xge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct xge_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))
xge_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS: