diff options
author | Alexander Aring <aar@pengutronix.de> | 2016-06-15 15:20:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-15 23:41:22 -0400 |
commit | 2ad3ed59198c5404c34515cfcfd9a2b3c54d964f (patch) | |
tree | 0dd9cbc8f4787819d70afd97ff91256f70d4ccc7 /include/net/addrconf.h | |
parent | 8626a0c83b0d471d859bcd908d016874df951fc3 (diff) |
6lowpan: add 802.15.4 short addr slaac
This patch adds the autoconfiguration if a valid 802.15.4 short address
is available for 802.15.4 6LoWPAN interfaces.
Cc: David S. Miller <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r-- | include/net/addrconf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 730d856683e5..b1774eb03f37 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
@@ -94,6 +94,9 @@ int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2, | |||
94 | void addrconf_join_solict(struct net_device *dev, const struct in6_addr *addr); | 94 | void addrconf_join_solict(struct net_device *dev, const struct in6_addr *addr); |
95 | void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr); | 95 | void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr); |
96 | 96 | ||
97 | void addrconf_add_linklocal(struct inet6_dev *idev, | ||
98 | const struct in6_addr *addr, u32 flags); | ||
99 | |||
97 | static inline int addrconf_ifid_eui48(u8 *eui, struct net_device *dev) | 100 | static inline int addrconf_ifid_eui48(u8 *eui, struct net_device *dev) |
98 | { | 101 | { |
99 | if (dev->addr_len != ETH_ALEN) | 102 | if (dev->addr_len != ETH_ALEN) |