Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/net Pull up revision 1.52 (requested by atatat in t...
details: https://anonhg.NetBSD.org/src/rev/b62dde5ed139
branches: netbsd-1-6
changeset: 528651:b62dde5ed139
user: lukem <lukem%NetBSD.org@localhost>
date: Tue Jul 30 01:38:33 2002 +0000
description:
Pull up revision 1.52 (requested by atatat in ticket #572):
Make tun interfaces perform auto-creation. This means that if a
program opens /dev/tun# and tun# has not been SIOCIFCREATE'd already,
it will be SIOCIFCREATE'd automatically. FreeBSD's tun interfaces
behave in a somewhat similar fashion.
diffstat:
sys/net/if_tun.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 9a343b1ad968 -r b62dde5ed139 sys/net/if_tun.c
--- a/sys/net/if_tun.c Tue Jul 30 01:11:02 2002 +0000
+++ b/sys/net/if_tun.c Tue Jul 30 01:38:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tun.c,v 1.51 2002/03/13 06:43:18 itojun Exp $ */
+/* $NetBSD: if_tun.c,v 1.51.6.1 2002/07/30 01:38:33 lukem Exp $ */
/*
* Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -15,7 +15,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.51 2002/03/13 06:43:18 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.51.6.1 2002/07/30 01:38:33 lukem Exp $");
#include "tun.h"
@@ -230,6 +230,11 @@
tp = tun_find_unit(dev);
+ if (!tp) {
+ (void)tun_clone_create(&tun_cloner, minor(dev));
+ tp = tun_find_unit(dev);
+ }
+
if (!tp)
return (ENXIO);
Home |
Main Index |
Thread Index |
Old Index