]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: add support of peer address
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 16 May 2013 22:32:00 +0000 (22:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 May 2013 22:09:26 +0000 (15:09 -0700)
commit4cf56fd328008af159877ccd60491b1b27f9c06e
treeee7e04fe068584f7e88a382c9ba615a71fffcfe9
parent013cb3f17479ffb63a7648ee2dbaf6d53f099065
ipv6: add support of peer address

This patch adds the support of peer address for IPv6. For example, it is
possible to specify the remote end of a 6inY tunnel.
This was already possible in IPv4:
 ip addr add ip1 peer ip2 dev dev1

The peer address is specified with IFA_ADDRESS and the local address with
IFA_LOCAL (like explained in include/uapi/linux/if_addr.h).
Note that the API is not changed, because before this patch, it was not
possible to specify two different addresses in IFA_LOCAL and IFA_REMOTE.
There is a small change for the dump: if the peer is different from ::,
IFA_ADDRESS will contain the peer address instead of the local address.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/if_inet6.h
net/ipv6/addrconf.c