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
This commit is contained in:
Bjoern A. Zeeb 2012-03-04 18:51:45 +00:00
parent 4ab8fc10d1
commit abbe8356ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232514

View File

@ -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,