summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-17 06:29:28 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-17 06:29:28 +0000
commit24fe96a196d079a069139e5fe5cc788d7f8f21bd (patch)
treec0e92c885981193c69a664598a3a5fc5dac51c47
parentdc53ea497e7baf9f0109c4a4cc269cb8481daae8 (diff)
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: