diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-05-02 20:21:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-05 15:30:20 -0400 |
commit | 07c8e35a380430e1ec0ec1543dddb53a275081c1 (patch) | |
tree | cf67c5ea7467857a9bcc042abfe2e4e9e6e03bdc /net/ipv6 | |
parent | c020b9d42045cdc235815ecf22b796a8f4e4d053 (diff) |
ipv6: remove unused function ipv6_inherit_linklocal()
It is no longer used after commit e837735ec406a347756e
(ip6_tunnel: ensure to always have a link local address).
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index fc203db2211a..1ac13c0300b7 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -2818,18 +2818,6 @@ static void addrconf_gre_config(struct net_device *dev) | |||
2818 | } | 2818 | } |
2819 | #endif | 2819 | #endif |
2820 | 2820 | ||
2821 | static inline int | ||
2822 | ipv6_inherit_linklocal(struct inet6_dev *idev, struct net_device *link_dev) | ||
2823 | { | ||
2824 | struct in6_addr lladdr; | ||
2825 | |||
2826 | if (!ipv6_get_lladdr(link_dev, &lladdr, IFA_F_TENTATIVE)) { | ||
2827 | addrconf_add_linklocal(idev, &lladdr); | ||
2828 | return 0; | ||
2829 | } | ||
2830 | return -1; | ||
2831 | } | ||
2832 | |||
2833 | static int addrconf_notify(struct notifier_block *this, unsigned long event, | 2821 | static int addrconf_notify(struct notifier_block *this, unsigned long event, |
2834 | void *ptr) | 2822 | void *ptr) |
2835 | { | 2823 | { |