Nicolas Dichtel caeaba7900 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>
2013-05-19 15:09:26 -07:00
..
2013-05-19 15:09:26 -07:00
2013-03-26 12:27:18 -04:00
2013-02-15 15:10:37 -05:00
2012-11-03 14:59:05 -04:00
2013-03-26 12:27:18 -04:00
2013-03-26 12:27:19 -04:00
2012-09-25 16:04:44 -04:00
2013-03-26 12:27:19 -04:00
2013-03-17 14:35:13 -04:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2012-11-01 12:41:35 -04:00