summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2005-05-04 12:10:28 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2005-05-04 12:10:28 +0000
commit292dce89e6f6870a7c938b24ec87a255305b7438 (patch)
treef3d6e519367ada18d8f809bd9bdfb163b11ec26e /sys/net
parent193abae5eded07143cc0c855da148cfca6c23a98 (diff)
set RUNNING on open; from Alexey E. Suslikov; ok henning, claudio
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_tun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 218dd549022..7c7c2081f4d 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.65 2005/05/03 14:33:50 brad Exp $ */
+/* $OpenBSD: if_tun.c,v 1.66 2005/05/04 12:10:27 markus Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -333,6 +333,7 @@ tunopen(dev_t dev, int flag, int mode, struct proc *p)
/* automatically UP the interface on open */
s = splimp();
if_up(ifp);
+ ifp->if_flags |= IFF_RUNNING;
splx(s);
TUNDEBUG(("%s: open\n", ifp->if_xname));