diff options
| author | vivek <vivek@cumulusnetworks.com> | 2017-05-14 22:27:55 -0700 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2017-05-25 10:20:03 -0700 |
| commit | 80e7e4077d53ab63f6c4790b560c93181a25d192 (patch) | |
| tree | f4a5b8f55383c05233f8a5a23ddfc66c4d892133 /zebra/kernel_netlink.c | |
| parent | bbc16902a61d4767eeee5730ce9a6f02a4276026 (diff) | |
zebra: Set nlmsg_pid in netlink_talk()
While it is not essential to set this, it seems a good thing to do.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_netlink.c')
| -rw-r--r-- | zebra/kernel_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 3b335f631e..9a574110aa 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -689,6 +689,7 @@ netlink_talk (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *, snl.nl_family = AF_NETLINK; n->nlmsg_seq = ++nl->seq; + n->nlmsg_pid = nl->snl.nl_pid; /* Request an acknowledgement by setting NLM_F_ACK */ n->nlmsg_flags |= NLM_F_ACK; |
