Commit d763665b authored by Stephen Hemminger's avatar Stephen Hemminger

[TUN]: Name fix.

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.
parent 2c4dcfb7
...@@ -602,8 +602,9 @@ static struct file_operations tun_fops = { ...@@ -602,8 +602,9 @@ static struct file_operations tun_fops = {
static struct miscdevice tun_miscdev = { static struct miscdevice tun_miscdev = {
.minor = TUN_MINOR, .minor = TUN_MINOR,
.name = "net/tun", .name = "tun",
.fops = &tun_fops .fops = &tun_fops,
.devfs_name = "net/tun",
}; };
int __init tun_init(void) int __init tun_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment