Update tuntap_linux.c

Let the kernel takes care of assigning the port ID of the netlink socket
This commit is contained in:
Simon Brodeur 2024-03-26 14:32:12 -04:00 committed by GitHub
parent fff50a7d80
commit 0df939ed5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;