summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2000-01-17 06:29:27 +0000
committeritojun <itojun@openbsd.org>2000-01-17 06:29:27 +0000
commitb6c0941ee286e4c4dadbf757ed62b7f920073de6 (patch)
treea1bb36282a195a7ecaca162d2b3a2189412d7c0d
parenton fork, flush pcb too, update pcsq (diff)
downloadwireguard-openbsd-b6c0941ee286e4c4dadbf757ed62b7f920073de6.tar.xz
wireguard-openbsd-b6c0941ee286e4c4dadbf757ed62b7f920073de6.zip
don't need IFF_RUNNING for gif, as no resource is allocated for
interface operation.
-rw-r--r--sys/net/if_gif.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 9a0de03f5e2..95970926ff3 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.6 2000/01/17 05:42:39 itojun Exp $ */
+/* $OpenBSD: if_gif.c,v 1.7 2000/01/17 06:29:27 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -309,7 +309,7 @@ gif_ioctl(ifp, cmd, data)
bcopy((caddr_t)dst, (caddr_t)sa, size);
sc->gif_pdst = sa;
- ifp->if_flags |= (IFF_UP|IFF_RUNNING);
+ ifp->if_flags |= IFF_UP;
if_up(ifp); /* send up RTM_IFINFO */
break;
@@ -375,11 +375,6 @@ 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: