]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Allow linux kernel to autoprobe correct socket_nl.nl_pid address
authorPavel Shirshov <pavelsh@microsoft.com>
Sat, 20 Oct 2018 02:15:44 +0000 (19:15 -0700)
committerVincent Bernat <vincent@bernat.ch>
Sat, 20 Oct 2018 05:34:11 +0000 (07:34 +0200)
src/daemon/netlink.c

index fdb01001939323ad1596e06f2341ef8ff549761a..4e5e34d63695f6cb8e8986db21976b3820a05d0c 100644 (file)
@@ -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
        };