Skip to contentSkip to conversation

tun -- name fix

PATCH Applied Stephen Hemminger 2 participants 2 messages Mar 15, 2004 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#1 lore raw

PATCH 1/1 tun -- name fix

In reply to a message not in the archive

This fixes both the devfs name and the /sys name issues. It ends up as /dev/net/tun and /sys/class/misc/tun looks correct.

drivers/net/tun.c +3 -2
diff -Nru a/drivers/net/tun.c b/drivers/net/tun.c
@@ -602,8 +602,9 @@
 
 static struct miscdevice tun_miscdev = {
 	.minor = TUN_MINOR,
-	.name = "net/tun",
-	.fops = &tun_fops
+	.name = "tun",
+	.fops = &tun_fops,
+	.devfs_name = "net/tun",
 };
 
 int __init tun_init(void)
#2 lore raw
Quoted 2 lines · On Mon, 15 Mar 2004 10:22:15 -0800 Stephen Hemminger <[email protected]>…

This fixes both the devfs name and the /sys name issues. It ends up as /dev/net/tun and /sys/class/misc/tun looks correct.

Applied, thanks Stephen.