Listing ipv6 proxy neighbours

From: Alex Bligh <hidden>
Date: 2012-11-07 09:13:26

If I set up an ipv6 proxy neighbour like this:
 echo 1 > /proc/sys/net/ipv6/conf/eth0/proxy_ndp
 ip neigh add proxy 2a01:2345:8b25:7ea0::22 dev eth0
it appears to go into the kernel OK (the first delete works, the second does not).

However, there appears to be no way of listing them in that
 ip -6 neigh show
does not list them.

I assumed this was a bug in 'ip', which I set about trying to fix. Modern 'ip'
has a new command 'ip -6 neigh show proxy' but this also does not list them.
As far as I can tell, stepping through 'ip' with gdb, and commenting out
some of the more obvious if conditions filtering out returns from the kernel,
the kernel is not actually listing these through netlink.

ip maddr show shows a multicast group created, so it's in there somewhere.

$ ./ip -6 maddr show
1:	lo
	inet6 ff02::1
2:	eth0
	inet6 ff02::1:ff00:22 <-------- this one
	inet6 ff02::fb
	inet6 ff02::1:ff48:aad6
	inet6 ff02::1

Any ideas?

-- 
Alex Bligh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help