diff options
-rw-r--r-- | include/net/ndisc.h | 1 | ||||
-rw-r--r-- | 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 6f9c25a76cd1..c02b6ad3f6c5 100644 --- a/include/net/ndisc.h +++ b/include/net/ndisc.h | |||
@@ -34,6 +34,7 @@ enum { | |||
34 | __ND_OPT_ARRAY_MAX, | 34 | __ND_OPT_ARRAY_MAX, |
35 | ND_OPT_ROUTE_INFO = 24, /* RFC4191 */ | 35 | ND_OPT_ROUTE_INFO = 24, /* RFC4191 */ |
36 | ND_OPT_RDNSS = 25, /* RFC5006 */ | 36 | ND_OPT_RDNSS = 25, /* RFC5006 */ |
37 | ND_OPT_DNSSL = 31, /* RFC6106 */ | ||
37 | __ND_OPT_MAX | 38 | __ND_OPT_MAX |
38 | }; | 39 | }; |
39 | 40 | ||
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 1d6fb0c94da1..7cb236e8e261 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -15,6 +15,7 @@ | |||
15 | /* | 15 | /* |
16 | * Changes: | 16 | * Changes: |
17 | * | 17 | * |
18 | * Alexey I. Froloff : RFC6106 (DNSSL) support | ||
18 | * Pierre Ynard : export userland ND options | 19 | * Pierre Ynard : export userland ND options |
19 | * through netlink (RDNSS support) | 20 | * through netlink (RDNSS support) |
20 | * Lars Fenneberg : fixed MTU setting on receipt | 21 | * Lars Fenneberg : fixed MTU setting on receipt |
@@ -228,7 +229,8 @@ static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, | |||
228 | 229 | ||
229 | static inline int ndisc_is_useropt(struct nd_opt_hdr *opt) | 230 | static inline int ndisc_is_useropt(struct nd_opt_hdr *opt) |
230 | { | 231 | { |
231 | return opt->nd_opt_type == ND_OPT_RDNSS; | 232 | return opt->nd_opt_type == ND_OPT_RDNSS || |
233 | opt->nd_opt_type == ND_OPT_DNSSL; | ||
232 | } | 234 | } |
233 | 235 | ||
234 | static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur, | 236 | static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur, |