-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldpd]: Use kernel autoprobe for netlink socket .nl_pid portion of t…
…he address (#2164)
- Loading branch information
1 parent
4a22de4
commit 891e256
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/lldpd/patch/0002-Let-linux-kernel-to-find-appropriate-nl_pid-automa.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 2ee8585e8b716719a11235ab5c291b2f6ac9ce1a Mon Sep 17 00:00:00 2001 | ||
From: Pavel Shirshov <pavelsh@microsoft.com> | ||
Date: Wed, 17 Oct 2018 21:05:58 +0000 | ||
Subject: [PATCH] Let linux kernel to find appropriate nl_pid automatically | ||
|
||
--- | ||
src/daemon/netlink.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/daemon/netlink.c b/src/daemon/netlink.c | ||
index 1a64a23..f4227b8 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 | ||
}; | ||
|
||
-- | ||
2.7.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# This series applies on GIT commit 396961a038a38675d46f96eaa7b430b2a1f8701b | ||
0001-return-error-when-port-does-not-exist.patch | ||
0002-Let-linux-kernel-to-find-appropriate-nl_pid-automa.patch |