mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
drivers/net: Register "/dev/net/tun" as tun node too
to compatible with Linux convention Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
77821fb7eb
commit
4e5a963443
1 changed files with 1 additions and 0 deletions
|
@ -1313,6 +1313,7 @@ int tun_initialize(void)
|
|||
{
|
||||
g_tun.free_tuns = (1 << CONFIG_TUN_NINTERFACES) - 1;
|
||||
register_driver("/dev/tun", &g_tun_file_ops, 0644, &g_tun);
|
||||
register_driver("/dev/net/tun", &g_tun_file_ops, 0644, &g_tun);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue