From: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
To: Jiri Pirko <jiri@resnulli.us>, netdev@vger.kernel.org
Cc: hideaki.yoshifuji@miraclelinux.com, davem@davemloft.net,
kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org,
kaber@trash.net, sfeldma@cumulusnetworks.com,
arvid.brodin@alten.se, sucheta.chakraborty@qlogic.com,
hannes@stressinduktion.org
Subject: Re: [patch net-next] ipv6: addrconf: implement address generation modes
Date: Fri, 11 Jul 2014 18:16:07 +0900 [thread overview]
Message-ID: <53BFAB57.10700@miraclelinux.com> (raw)
In-Reply-To: <1405066774-11740-1-git-send-email-jiri@resnulli.us>
Hi,
Jiri Pirko wrote:
> This patch introduces a possibility for userspace to set various (so far
> two) modes of generating addresses. This is useful for example for
> NetworkManager because it can set the mode to NONE and take care of link
> local addresses itself. That allow it to have the interface up,
> monitoring carrier but still don't have any addresses on it.
>
> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
> ---
> include/net/if_inet6.h | 1 +
> include/uapi/linux/if_link.h | 6 +++++
> net/ipv6/addrconf.c | 56 ++++++++++++++++++++++++++++++--------------
> 3 files changed, 45 insertions(+), 18 deletions(-)
>
> diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
> index b4956a5..f82b281 100644
> --- a/include/net/if_inet6.h
> +++ b/include/net/if_inet6.h
> @@ -206,6 +206,7 @@ struct inet6_dev {
> __u8 rs_probes;
>
> unsigned long tstamp; /* ipv6InterfaceTable update timestamp */
> + enum in6_addr_gen_mode addr_gen_mode;
How about putting this as __u8 after dad_probes?
> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
> index 358edd2..2c75ec1 100644
> --- a/net/ipv6/addrconf.c
> +++ b/net/ipv6/addrconf.c
> @@ -2730,9 +2730,25 @@ static void addrconf_add_linklocal(struct inet6_dev *idev, const struct in6_addr
> }
> }
>
> +static void addr_conf_addr_gen(struct inet6_dev *idev, bool prefix_route)
s/addr_conf/addrconf/
--
Hideaki Yoshifuji <hideaki.yoshifuji@miraclelinux.com>
Technical Division, MIRACLE LINUX CORPORATION
next prev parent reply other threads:[~2014-07-11 9:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 8:19 [patch net-next] ipv6: addrconf: implement address generation modes Jiri Pirko
2014-07-11 8:30 ` [patch iproute2] iproute2: allow to ipv6 set address generation mode Jiri Pirko
2014-07-11 9:16 ` YOSHIFUJI Hideaki [this message]
2014-07-11 15:40 ` [patch net-next] ipv6: addrconf: implement address generation modes Dan Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53BFAB57.10700@miraclelinux.com \
--to=hideaki.yoshifuji@miraclelinux.com \
--cc=arvid.brodin@alten.se \
--cc=davem@davemloft.net \
--cc=hannes@stressinduktion.org \
--cc=jiri@resnulli.us \
--cc=jmorris@namei.org \
--cc=kaber@trash.net \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@vger.kernel.org \
--cc=sfeldma@cumulusnetworks.com \
--cc=sucheta.chakraborty@qlogic.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).