diff options
author | bz <bz@FreeBSD.org> | 2012-03-04 18:51:45 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2012-03-04 18:51:45 +0000 |
commit | b70c7f1db8b494621b4d87173250c90152234bc5 (patch) | |
tree | cd4a04d200a91686ef4aa88efb01a17138b4637b /sys/netinet6/nd6.c | |
parent | fccaceec617fb9ff8b5fde518fc61b88d1a012c0 (diff) | |
download | FreeBSD-src-b70c7f1db8b494621b4d87173250c90152234bc5.zip FreeBSD-src-b70c7f1db8b494621b4d87173250c90152234bc5.tar.gz |
In nd6_options() ignore the RFC 6106 options completely rather than printing
them if nd6_debug is enabled as unknown. Leave a comment about the RFC4191
option as I am undecided so far.
Discussed with: hrs
MFC after: 3 days
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r-- | sys/netinet6/nd6.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index c82d763..8d296b2 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -380,6 +380,14 @@ nd6_options(union nd_opts *ndopts) ndopts->nd_opts_pi_end = (struct nd_opt_prefix_info *)nd_opt; break; + /* What about ND_OPT_ROUTE_INFO? RFC 4191 */ + case ND_OPT_RDNSS: /* RFC 6106 */ + case ND_OPT_DNSSL: /* RFC 6106 */ + /* + * Silently ignore options we know and do not care about + * in the kernel. + */ + break; default: /* * Unknown options must be silently ignored, |