netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [IPv6]: Treat ND option 31 as userland (DNSSL support)
@ 2012-04-06 15:50 Alexey I. Froloff
  2012-04-12 19:57 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey I. Froloff @ 2012-04-06 15:50 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

As specified in RFC6106, DNSSL option contains one or more domain names
of DNS suffixes.  8-bit identifier of the DNSSL option type as assigned
by the IANA is 31.  This option should also be treated as userland.

Signed-off-by: Alexey I. Froloff <raorn@raorn.name>
---
 include/net/ndisc.h |    1 +
 net/ipv6/ndisc.c    |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/net/ndisc.h b/include/net/ndisc.h
index 6f9c25a..c02b6ad 100644
--- a/include/net/ndisc.h
+++ b/include/net/ndisc.h
@@ -34,6 +34,7 @@ enum {
 	__ND_OPT_ARRAY_MAX,
 	ND_OPT_ROUTE_INFO = 24,		/* RFC4191 */
 	ND_OPT_RDNSS = 25,		/* RFC5006 */
+	ND_OPT_DNSSL = 31,		/* RFC6106 */
 	__ND_OPT_MAX
 };
 
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 3dcdb81..d04c6eb 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -15,6 +15,7 @@
 /*
  *	Changes:
  *
+ *	Alexey I. Froloff		:	RFC6106 (DNSSL) support
  *	Pierre Ynard			:	export userland ND options
  *						through netlink (RDNSS support)
  *	Lars Fenneberg			:	fixed MTU setting on receipt
@@ -228,7 +229,8 @@ static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur,
 
 static inline int ndisc_is_useropt(struct nd_opt_hdr *opt)
 {
-	return opt->nd_opt_type == ND_OPT_RDNSS;
+	return opt->nd_opt_type == ND_OPT_RDNSS ||
+		opt->nd_opt_type == ND_OPT_DNSSL;
 }
 
 static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur,
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] [IPv6]: Treat ND option 31 as userland (DNSSL support)
  2012-04-06 15:50 [PATCH] [IPv6]: Treat ND option 31 as userland (DNSSL support) Alexey I. Froloff
@ 2012-04-12 19:57 ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2012-04-12 19:57 UTC (permalink / raw)
  To: raorn; +Cc: netdev

From: "Alexey I. Froloff" <raorn@raorn.name>
Date: Fri,  6 Apr 2012 19:50:58 +0400

> As specified in RFC6106, DNSSL option contains one or more domain names
> of DNS suffixes.  8-bit identifier of the DNSSL option type as assigned
> by the IANA is 31.  This option should also be treated as userland.
> 
> Signed-off-by: Alexey I. Froloff <raorn@raorn.name>

Applied to net-next, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [IPv6]: Treat ND option 31 as userland (DNSSL support)
@ 2012-05-03 20:51 Francesco Ruggeri
  0 siblings, 0 replies; 3+ messages in thread
From: Francesco Ruggeri @ 2012-05-03 20:51 UTC (permalink / raw)
  To: netdev

Does anybody know if this patch should be in v3.4? I did not see it in 3.4-rc5.
Thanks,
Francesco Ruggeri


Date:	Thu, 12 Apr 2012 15:57:51 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	raorn@...rn.name
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH] [IPv6]: Treat ND option 31 as userland (DNSSL support)

From: "Alexey I. Froloff" <raorn@...rn.name>
Date: Fri,  6 Apr 2012 19:50:58 +0400

> As specified in RFC6106, DNSSL option contains one or more domain names
> of DNS suffixes.  8-bit identifier of the DNSSL option type as assigned
> by the IANA is 31.  This option should also be treated as userland.
>
> Signed-off-by: Alexey I. Froloff <raorn@...rn.name>

Applied to net-next, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-03 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 15:50 [PATCH] [IPv6]: Treat ND option 31 as userland (DNSSL support) Alexey I. Froloff
2012-04-12 19:57 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2012-05-03 20:51 Francesco Ruggeri

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).