From: Pavel Shirshov Date: Sat, 20 Oct 2018 02:15:44 +0000 (-0700) Subject: Allow linux kernel to autoprobe correct socket_nl.nl_pid address X-Git-Tag: 1.0.2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ba21c60d945f8b84c0d152e73eded39ff3c4172;p=thirdparty%2Flldpd.git Allow linux kernel to autoprobe correct socket_nl.nl_pid address --- diff --git a/src/daemon/netlink.c b/src/daemon/netlink.c index fdb01001..4e5e34d6 100644 --- a/src/daemon/netlink.c +++ b/src/daemon/netlink.c @@ -93,7 +93,7 @@ netlink_connect(struct lldpd *cfg, int protocol, unsigned groups) int s; struct sockaddr_nl local = { .nl_family = AF_NETLINK, - .nl_pid = getpid(), + .nl_pid = 0, .nl_groups = groups };