summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_eiface.c2
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;
OpenPOWER on IntegriCloud