]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
net: Allow ipv6 proxies and arp proxies be shown with iproute2
authorTony Zelenoff <antonz@parallels.com>
Thu, 26 Jan 2012 22:28:58 +0000 (22:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2012 17:57:34 +0000 (12:57 -0500)
commit84920c1420e2b4a4150e5bb45ee5a23ea4641523
tree5115f0d9525cc7321c34bb6260ef576e091040f1
parent5e6bbedd8238edbfee03d2950369edb08773cd3c
net: Allow ipv6 proxies and arp proxies be shown with iproute2

Add ability to return neighbour proxies list to caller if
it sent full ndmsg structure and has NTF_PROXY flag set.

Before this patch (and before iproute2 patches):
$ ip neigh add proxy 2001::1 dev eth0
$ ip -6 neigh show
$

After it and with applied iproute2 patches:
$ ip neigh add proxy 2001::1 dev eth0
$ ip -6 neigh show
2001::1 dev eth0  proxy
$

Compatibility with old versions of iproute2 is not broken,
kernel checks for incoming structure size and properly
works if old structure is came.

[v2]
* changed comments style.
* removed useless line with continue and curly bracket.
* changed incoming message size check from equal to more or
  equal.

CC: davem@davemloft.net
CC: kuznet@ms2.inr.ac.ru
CC: netdev@vger.kernel.org
CC: xemul@parallels.com
Signed-off-by: Tony Zelenoff <antonz@parallels.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c