diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-05-17 00:32:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-20 00:09:26 +0200 |
commit | caeaba79009c2ee858c3b2bf8caf922cd719fead (patch) | |
tree | ee7e04fe068584f7e88a382c9ba615a71fffcfe9 /include/net/if_inet6.h | |
parent | sparc: bpf_jit_comp: can call module_free() from any context (diff) | |
download | linux-caeaba79009c2ee858c3b2bf8caf922cd719fead.tar.xz linux-caeaba79009c2ee858c3b2bf8caf922cd719fead.zip |
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>
Diffstat (limited to 'include/net/if_inet6.h')
-rw-r--r-- | include/net/if_inet6.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h index 100fb8cec17c..0727d0e4af3b 100644 --- a/include/net/if_inet6.h +++ b/include/net/if_inet6.h @@ -74,6 +74,7 @@ struct inet6_ifaddr { bool tokenized; struct rcu_head rcu; + struct in6_addr peer_addr; }; struct ip6_sf_socklist { |