-/* $OpenBSD: if_de.c,v 1.30 2015/07/04 17:32:20 miod Exp $ */
+/* $OpenBSD: if_de.c,v 1.31 2015/10/27 15:20:13 mpi Exp $ */
/* $NetBSD: if_de.c,v 1.27 1997/04/19 15:02:29 ragge Exp $ */
/*
u_long cmd;
caddr_t data;
{
- register struct ifaddr *ifa = (struct ifaddr *)data;
register struct de_softc *ds = ifp->if_softc;
int s, error = 0;
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
deinit(ds);
-
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- arp_ifinit(&ds->ds_ac, ifa);
- break;
- }
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: if_qe.c,v 1.35 2015/07/04 10:12:52 dlg Exp $ */
+/* $OpenBSD: if_qe.c,v 1.36 2015/10/27 15:20:13 mpi Exp $ */
/* $NetBSD: if_qe.c,v 1.51 2002/06/08 12:28:37 ragge Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
qeioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct qe_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:
- qeinit(sc);
- arp_ifinit(&sc->sc_ac, ifa);
- break;
- }
+ qeinit(sc);
break;
case SIOCSIFFLAGS:
-/* $OpenBSD: sgec.c,v 1.29 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: sgec.c,v 1.30 2015/10/27 15:20:13 mpi Exp $ */
/* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
caddr_t data;
{
struct ze_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:
- zeinit(sc);
- arp_ifinit(&sc->sc_ac, ifa);
- break;
- }
+ zeinit(sc);
break;
case SIOCSIFMEDIA: