]> git.baikalelectronics.ru Git - kernel.git/commit
neighbour: fix nlmsg_pid in notifications
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 20 Mar 2017 05:01:28 +0000 (22:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 17:48:49 +0000 (10:48 -0700)
commit940ff443b2b103546571b2211a06063a7e819fed
treeb44eafb94e7ea3bb32b4bb234746716cc5c535b2
parent9bef060aa246a5dafc17cb890f376f03bec2810a
neighbour: fix nlmsg_pid in notifications

neigh notifications today carry pid 0 for nlmsg_pid
in all cases. This patch fixes it to carry calling process
pid when available. Applications (eg. quagga) rely on
nlmsg_pid to ignore notifications generated by their own
netlink operations. This patch follows the routing subsystem
which already sets this correctly.

Reported-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h
net/atm/clip.c
net/core/neighbour.c
net/ipv4/arp.c
net/ipv6/ndisc.c