vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| actually, if the diff below would work, that would be even better, since it removes the special casing. can you test that instead? Index: if_tun.c ================================================== ================= RCS file: /cvs/src/sys/net/if_tun.c,v retrieving revision 1.69 diff -u -p -r1.69 if_tun.c --- if_tun.c 16 Nov 2005 10:45:33 -0000 1.69 +++ if_tun.c 16 Nov 2005 11:03:30 -0000 @@ -313,7 +313,11 @@ tunopen(dev_t dev, int flag, int mode, s return (error); if ((tp = tun_lookup(minor(dev))) == NULL) { /* create on demand */ - tun_clone_create(&tun_cloner, minor(dev)); + char xname[IFNAMSIZ]; + + snprintf(xname, sizeof(xname), "%s%d", "tun", minor(dev)); + if ((error = if_clone_create(xname)) != 0) + return (error); if ((tp = tun_lookup(minor(dev))) == NULL) return (ENXIO); |
| Thread Tools | |
| Display Modes | |
|
|