]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/daemon/netlink.c
Allow linux kernel to autoprobe correct socket_nl.nl_pid address
[thirdparty/lldpd.git] / 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
        };