for gif interface, sync IFF_RUNNING with IFF_UP. it does not

make sense to leave IFF_RUNNING during !IFF_UP (it is pseudo interface
so we need to immitate - or is it okay if we don't raise IFF_RUNNING?)
This commit is contained in:
itojun 2000-01-17 05:50:12 +00:00
parent 82070bab0c
commit 2042e749ad

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_gif.c,v 1.5 2000/01/06 15:46:08 itojun Exp $ */
/* $NetBSD: if_gif.c,v 1.6 2000/01/17 05:50:12 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -485,6 +485,11 @@ gif_ioctl(ifp, cmd, data)
break;
case SIOCSIFFLAGS:
/* sync "running" with "up" */
if (ifp->if_flags & IFF_UP)
ifp->if_flags |= IFF_RUNNING;
else
ifp->if_flags &= ~IFF_RUNNING;
break;
default: