diff options
author | ru <ru@FreeBSD.org> | 2006-09-15 15:53:09 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-09-15 15:53:09 +0000 |
commit | 7accf1bc7386adb6308f92e76f145e2fcca9949a (patch) | |
tree | 0cd0115d962a1f93a7d01ac1644e3f5bb7c1086e /sys | |
parent | 4647503ce7e8dcaab8d047404f59856bb2736393 (diff) | |
download | FreeBSD-src-7accf1bc7386adb6308f92e76f145e2fcca9949a.zip FreeBSD-src-7accf1bc7386adb6308f92e76f145e2fcca9949a.tar.gz |
SIOCSIFFLAGS doesn't require an argument in kernel land; instead, flags
are supposed to be set directly in ifnet already. This change fixes a
panic when ng_eiface node is attached to ng_fec node and the latter is
shut down (ng_fec sets flags and then calls SIOCSIFFLAGS with a NULL
argument).
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/ng_eiface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_eiface.c b/sys/netgraph/ng_eiface.c index 1e0f0b3..bef1c26 100644 --- a/sys/netgraph/ng_eiface.c +++ b/sys/netgraph/ng_eiface.c @@ -145,7 +145,7 @@ ng_eiface_ioctl(struct ifnet *ifp, u_long command, caddr_t data) * If the interface is marked up and stopped, then start it. * If it is marked down and running, then stop it. */ - if (ifr->ifr_flags & IFF_UP) { + if (ifp->if_flags & IFF_UP) { if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) { ifp->if_drv_flags &= ~(IFF_DRV_OACTIVE); ifp->if_drv_flags |= IFF_DRV_RUNNING; |