-/* $OpenBSD: if_bm.c,v 1.35 2015/08/24 16:38:43 mpi Exp $ */
+/* $OpenBSD: if_bm.c,v 1.36 2015/10/25 13:22:09 mpi Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
bmac_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct bmac_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:
- bmac_init(sc);
- arp_ifinit(&sc->arpcom, ifa);
- break;
- default:
- bmac_init(sc);
- break;
- }
+ bmac_init(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_mc.c,v 1.22 2015/07/08 07:21:49 mpi Exp $ */
+/* $OpenBSD: if_mc.c,v 1.23 2015/10/25 13:22:09 mpi Exp $ */
/* $NetBSD: if_mc.c,v 1.9.16.1 2006/06/21 14:53:13 yamt Exp $ */
/*-
mc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct mc_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, err = 0;
s = splnet();
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
mc_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_cnmac.c,v 1.26 2015/10/24 05:35:42 visa Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.27 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
octeon_eth_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct octeon_eth_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))
octeon_eth_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_iec.c,v 1.15 2015/09/18 11:15:20 visa Exp $ */
+/* $OpenBSD: if_iec.c,v 1.16 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
{
struct iec_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))
iec_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_mec.c,v 1.30 2015/06/24 09:40:53 mpi Exp $ */
+/* $OpenBSD: if_mec.c,v 1.31 2015/10/25 13:22:09 mpi Exp $ */
/* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */
/*
{
struct mec_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))
mec_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_sq.c,v 1.17 2015/09/18 20:50:02 miod Exp $ */
+/* $OpenBSD: if_sq.c,v 1.18 2015/10/25 13:22:09 mpi Exp $ */
/* $NetBSD: if_sq.c,v 1.42 2011/07/01 18:53:47 dyoung Exp $ */
/*
sq_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct sq_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))
sq_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
break;
case SIOCSIFMEDIA:
-/* $OpenBSD: if_tsec.c,v 1.37 2015/06/24 09:40:53 mpi Exp $ */
+/* $OpenBSD: if_tsec.c,v 1.38 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
tsec_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr)
{
struct tsec_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)addr;
struct ifreq *ifr = (struct ifreq *)addr;
int error = 0, s;
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: be.c,v 1.51 2015/06/24 09:40:53 mpi Exp $ */
+/* $OpenBSD: be.c,v 1.52 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
caddr_t data;
{
struct besoftc *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:
- beinit(sc);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- beinit(sc);
- break;
- }
+ beinit(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: hme.c,v 1.71 2015/07/08 07:21:49 mpi Exp $ */
+/* $OpenBSD: hme.c,v 1.72 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
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))
hmeinit(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_ie.c,v 1.53 2015/06/24 09:40:53 mpi Exp $ */
+/* $OpenBSD: if_ie.c,v 1.54 2015/10/25 13:22:09 mpi Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
caddr_t data;
{
struct ie_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s, error = 0;
s = splnet();
switch(cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
-
- switch(ifa->ifa_addr->sa_family) {
- case AF_INET:
- ieinit(sc);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- ieinit(sc);
- break;
- }
+ ieinit(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: qe.c,v 1.41 2015/09/14 11:18:49 stsp Exp $ */
+/* $OpenBSD: qe.c,v 1.42 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
caddr_t data;
{
struct qesoftc *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:
- qeinit(sc);
- arp_ifinit(&sc->sc_arpcom, ifa);
- break;
- default:
- qeinit(sc);
- break;
- }
+ qeinit(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: vnet.c,v 1.46 2015/06/24 09:40:53 mpi Exp $ */
+/* $OpenBSD: vnet.c,v 1.47 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 2009, 2015 Mark Kettenis
*
vnet_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct vnet_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;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {