Skip to content

Commit 23e5160

Browse files
authored
Update tuntap_linux.c (ntop#1169)
Let the kernel takes care of assigning the port ID of the netlink socket
1 parent fff50a7 commit 23e5160

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tuntap_linux.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ int tuntap_open (tuntap_dev *device,
187187
memset(&sa, 0, sizeof(sa));
188188
sa.nl_family = PF_NETLINK;
189189
sa.nl_groups = RTMGRP_LINK;
190-
sa.nl_pid = getpid();
191190

192191
memset(&msg, 0, sizeof(msg));
193192
msg.msg_name = &sa;

0 commit comments

Comments
 (0)