mirror of
https://github.com/ntop/n2n.git
synced 2026-10-19 16:16:12 +00:00
Update tuntap_linux.c (#1169)
Let the kernel takes care of assigning the port ID of the netlink socket
This commit is contained in:
@@ -187,7 +187,6 @@ int tuntap_open (tuntap_dev *device,
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
sa.nl_family = PF_NETLINK;
|
||||
sa.nl_groups = RTMGRP_LINK;
|
||||
sa.nl_pid = getpid();
|
||||
|
||||
memset(&msg, 0, sizeof(msg));
|
||||
msg.msg_name = &sa;
|
||||
|
||||
Reference in New Issue
Block a user