net.inet6.icmp6.nd6_debug doesn't need to warn about RDNSS/DNSSL options
authorsthen <sthen@openbsd.org>
Sun, 7 Nov 2021 19:38:25 +0000 (19:38 +0000)
committersthen <sthen@openbsd.org>
Sun, 7 Nov 2021 19:38:25 +0000 (19:38 +0000)
ok phessler@

sys/netinet6/nd6.c

index e7d6e26..70acc36 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: nd6.c,v 1.235 2021/03/08 16:49:07 florian Exp $       */
+/*     $OpenBSD: nd6.c,v 1.236 2021/11/07 19:38:25 sthen Exp $ */
 /*     $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $   */
 
 /*
@@ -271,6 +271,10 @@ nd6_options(union nd_opts *ndopts)
                        ndopts->nd_opts_pi_end =
                                (struct nd_opt_prefix_info *)nd_opt;
                        break;
+               case ND_OPT_DNSSL:
+               case ND_OPT_RDNSS:
+                       /* Don't warn */
+                       break;
                default:
                        /*
                         * Unknown options must be silently ignored,