From 0df939ed5b0a7013a73f2df78f6a805b5ec555b3 Mon Sep 17 00:00:00 2001 From: Simon Brodeur Date: Tue, 26 Mar 2024 14:32:12 -0400 Subject: [PATCH] Update tuntap_linux.c Let the kernel takes care of assigning the port ID of the netlink socket --- src/tuntap_linux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tuntap_linux.c b/src/tuntap_linux.c index 9b6d1db..25a85d4 100644 --- a/src/tuntap_linux.c +++ b/src/tuntap_linux.c @@ -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;