• Tony Zelenoff's avatar
    net: Allow ipv6 proxies and arp proxies be shown with iproute2 · 84920c14
    Tony Zelenoff authored
    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: default avatarTony Zelenoff <antonz@parallels.com>
    Acked-by: default avatarThomas Graf <tgraf@suug.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    84920c14
neighbour.c 72.8 KB