netdev
[Top] [All Lists]

Re: [PATCH] IPv6: Autoconfig link-local address on ip6-ip6 tunnel device

To: vnuorval@xxxxxxxxxx
Subject: Re: [PATCH] IPv6: Autoconfig link-local address on ip6-ip6 tunnel device
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Tue, 25 Nov 2003 03:55:31 +0900 (JST)
Cc: davem@xxxxxxxxxx, netdev@xxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0311051412180.28216@rhea.tcs.hut.fi>
Organization: USAGI Project
References: <Pine.LNX.4.58.0311051412180.28216@rhea.tcs.hut.fi>
Sender: netdev-bounce@xxxxxxxxxxx
In article <Pine.LNX.4.58.0311051412180.28216@xxxxxxxxxxxxxxx> (at Wed, 5 Nov 
2003 15:07:32 +0200 (EET)), Ville Nuorvala <vnuorval@xxxxxxxxxx> says:

> this (rewritten) patch configures link-local addresses to the ip6-ip6
> tunnel devices so you can run link-local protocols over them. If you are
> ok with the patch, perhaps we could push it forward to Dave.

Sorry for long silence.

> +static inline int
> +ip6_tnl_inherit_linklocal(struct inet6_dev *idev, struct net_device 
> *link_dev)
> +{
> +     struct in6_addr lladdr;
> +
> +     if (!ipv6_get_lladdr(link_dev, &lladdr)) {
> +             addrconf_add_linklocal(idev, &lladdr);
> +             return 0;
> +     }
> +     return -1;
> +}
> +

I prefer ipv6_inherit_linklocal() or something like that
because this does not seem ip6_tun specific.

I'm ok with other portion.

Thanks.

--yoshfuji

<Prev in Thread] Current Thread [Next in Thread>