Let ether_ioctl() handle default SIOCSIFMEDIA/SIOCGIFMEDIA actions.
This commit is contained in:
parent
5e35e05775
commit
da15c1a71e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_sip.c,v 1.125 2008/01/10 07:25:33 dyoung Exp $ */
|
||||
/* $NetBSD: if_sip.c,v 1.126 2008/01/19 22:23:35 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -80,7 +80,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.125 2008/01/10 07:25:33 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.126 2008/01/19 22:23:35 dyoung Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
#include "rnd.h"
|
||||
@ -1761,10 +1761,7 @@ sipcom_ioctl(struct ifnet *ifp, u_long cmd, void *data)
|
||||
}
|
||||
sc->sc_flowflags = ifr->ifr_media & IFM_ETH_FMASK;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
case SIOCGIFMEDIA:
|
||||
error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, cmd);
|
||||
break;
|
||||
goto ethioctl;
|
||||
case SIOCSIFFLAGS:
|
||||
/* If the interface is up and running, only modify the receive
|
||||
* filter when setting promiscuous or debug mode. Otherwise
|
||||
@ -1791,6 +1788,7 @@ sipcom_ioctl(struct ifnet *ifp, u_long cmd, void *data)
|
||||
#undef RESETIGN
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
ethioctl:
|
||||
default:
|
||||
error = ether_ioctl(ifp, cmd, data);
|
||||
if (error == ENETRESET) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user