Update tuntap_linux.c (#1169)

Let the kernel takes care of assigning the port ID of the netlink socket
This commit is contained in:
Simon Brodeur
2025-05-02 18:26:25 +02:00
committed by GitHub
parent fff50a7d80
commit 23e5160fc8
-1
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;