]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: V6 route events reported with wrong netlink PID and seq number
authorJamal Hadi Salim <hadi@cyberus.ca>
Tue, 21 Jun 2005 20:51:04 +0000 (13:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2005 20:51:04 +0000 (13:51 -0700)
commit59e5d6f342325ec2ee69bf886e553cf061a4cda4
tree999b0c5afbbb1f32af07eb2e1cb9e2692f1aa791
parent1f1c413fa92ff1fb2681164ab82d10015d22ffe8
[IPV6]: V6 route events reported with wrong netlink PID and seq number

Essentially netlink at the moment always reports a pid and sequence of 0
always for v6 route activities.
To understand the repurcassions of this look at:
http://lists.quagga.net/pipermail/quagga-dev/2005-June/003507.html

While fixing this, i took the liberty to resolve the outstanding issue
of IPV6 routes inserted via ioctls to have the correct pids as well.

This patch tries to behave as close as possible to the v4 routes i.e
maintains whatever PID the socket issuing the command owns as opposed to
the process. That made the patch a little bulky.

I have tested against both netlink derived utility to add/del routes as
well as ioctl derived one. The Quagga folks have tested against quagga.
This fixes the problem and so far hasnt been detected to introduce any
new issues.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
include/net/ip6_route.h
net/ipv6/addrconf.c
net/ipv6/anycast.c
net/ipv6/ip6_fib.c
net/ipv6/ndisc.c
net/ipv6/route.c