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