1 /* $FreeBSD: src/sys/netinet6/in6_proto.c,v 1.6.2.9 2003/01/24 05:11:35 sam Exp $ */
2 /* $KAME: in6_proto.c,v 1.91 2001/05/27 13:28:35 itojun Exp $ */
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Neither the name of the project nor the names of its contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * Copyright (c) 1982, 1986, 1993
35 * The Regents of the University of California. All rights reserved.
37 * Redistribution and use in source and binary forms, with or without
38 * modification, are permitted provided that the following conditions
40 * 1. Redistributions of source code must retain the above copyright
41 * notice, this list of conditions and the following disclaimer.
42 * 2. Redistributions in binary form must reproduce the above copyright
43 * notice, this list of conditions and the following disclaimer in the
44 * documentation and/or other materials provided with the distribution.
45 * 3. All advertising materials mentioning features or use of this software
46 * must display the following acknowledgement:
47 * This product includes software developed by the University of
48 * California, Berkeley and its contributors.
49 * 4. Neither the name of the University nor the names of its contributors
50 * may be used to endorse or promote products derived from this software
51 * without specific prior written permission.
53 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
54 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
55 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
56 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
57 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
58 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
59 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
60 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
61 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
62 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65 * @(#)in_proto.c 8.1 (Berkeley) 6/10/93
69 #include "opt_inet6.h"
70 #include "opt_ipsec.h"
73 #include <sys/param.h>
74 #include <sys/socket.h>
75 #include <sys/socketvar.h>
76 #include <sys/protosw.h>
77 #include <sys/kernel.h>
78 #include <sys/domain.h>
80 #include <sys/systm.h>
81 #include <sys/sysctl.h>
84 #include <net/radix.h>
85 #include <net/route.h>
87 #include <netinet/in.h>
88 #include <netinet/in_systm.h>
89 #include <netinet/in_var.h>
90 #include <netinet/ip_encap.h>
91 #include <netinet/ip.h>
92 #include <netinet/ip_var.h>
93 #include <netinet/ip6.h>
94 #include <netinet6/ip6_var.h>
95 #include <netinet/icmp6.h>
97 #include <netinet/tcp.h>
98 #include <netinet/tcp_timer.h>
99 #include <netinet/tcp_var.h>
100 #include <netinet/udp.h>
101 #include <netinet/udp_var.h>
102 #include <netinet6/tcp6_var.h>
103 #include <netinet6/raw_ip6.h>
104 #include <netinet6/udp6_var.h>
105 #include <netinet6/pim6_var.h>
106 #include <netinet6/nd6.h>
107 #include <netinet6/in6_prefix.h>
110 #include <netinet6/ipsec.h>
112 #include <netinet6/ipsec6.h>
114 #include <netinet6/ah.h>
116 #include <netinet6/ah6.h>
119 #include <netinet6/esp.h>
121 #include <netinet6/esp6.h>
124 #include <netinet6/ipcomp.h>
126 #include <netinet6/ipcomp6.h>
131 #include <netproto/ipsec/ipsec6.h>
134 #define ah6_input ipsec6_common_input
135 #define esp6_input ipsec6_common_input
136 #define ipcomp6_input ipsec6_common_input
137 #endif /* FAST_IPSEC */
139 #include <netinet6/ip6protosw.h>
141 #include <net/net_osdep.h>
144 #include <netinet/ip_carp.h>
149 * TCP/IP protocol family: IP6, ICMP6, UDP, TCP.
152 extern struct domain inet6domain;
153 static struct pr_usrreqs nousrreqs;
156 #define PR_ABRTACPTDIS 0
158 struct protosw inet6sw[] = {
161 .pr_domain = &inet6domain,
162 .pr_protocol = IPPROTO_IPV6,
167 .pr_slowtimo = frag6_slowtimo,
168 .pr_drain = frag6_drain,
169 .pr_usrreqs = &nousrreqs
172 .pr_type = SOCK_DGRAM,
173 .pr_domain = &inet6domain,
174 .pr_protocol = IPPROTO_UDP,
175 .pr_flags = PR_ATOMIC | PR_ADDR | PR_MPSAFE | PR_LASTHDR,
177 .pr_input = udp6_input,
179 .pr_ctlinput = udp6_ctlinput,
180 .pr_ctloutput = ip6_ctloutput_dispatch,
182 .pr_ctlport = cpu0_ctlport,
183 .pr_usrreqs = &udp6_usrreqs
186 .pr_type = SOCK_STREAM,
187 .pr_domain = &inet6domain,
188 .pr_protocol = IPPROTO_TCP,
189 .pr_flags = PR_CONNREQUIRED | PR_WANTRCVD | PR_LISTEN |
190 PR_MPSAFE | PR_LASTHDR,
192 .pr_input = tcp6_input,
194 .pr_ctlinput = tcp6_ctlinput,
195 .pr_ctloutput = tcp_ctloutput,
197 .pr_ctlport = cpu0_ctlport,
199 /* don't call initialization and timeout routines twice */
201 .pr_fasttimo = tcp_fasttimo,
202 .pr_slowtimo = tcp_slowtimo,
204 .pr_drain = tcp_drain,
205 .pr_usrreqs = &tcp6_usrreqs
209 .pr_domain = &inet6domain,
210 .pr_protocol = IPPROTO_RAW,
211 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
213 .pr_input = rip6_input,
214 .pr_output = rip6_output,
215 .pr_ctlinput = rip6_ctlinput,
216 .pr_ctloutput = rip6_ctloutput,
218 .pr_ctlport = cpu0_ctlport,
219 .pr_usrreqs = &rip6_usrreqs
223 .pr_domain = &inet6domain,
224 .pr_protocol = IPPROTO_ICMPV6,
225 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
227 .pr_input = icmp6_input,
228 .pr_output = rip6_output,
229 .pr_ctlinput = rip6_ctlinput,
230 .pr_ctloutput = rip6_ctloutput,
232 .pr_ctlport = cpu0_ctlport,
233 .pr_init = icmp6_init,
234 .pr_fasttimo = icmp6_fasttimo,
238 .pr_usrreqs = &rip6_usrreqs
242 .pr_domain = &inet6domain,
243 .pr_protocol = IPPROTO_DSTOPTS, PR_ATOMIC|PR_ADDR,
245 .pr_input = dest6_input,
248 .pr_ctloutput = NULL,
250 .pr_usrreqs = &nousrreqs
254 .pr_domain = &inet6domain,
255 .pr_protocol = IPPROTO_ROUTING, PR_ATOMIC|PR_ADDR,
257 .pr_input = route6_input,
260 .pr_ctloutput = NULL,
262 .pr_usrreqs = &nousrreqs
266 .pr_domain = &inet6domain,
267 .pr_protocol = IPPROTO_FRAGMENT, PR_ATOMIC|PR_ADDR,
269 .pr_input = frag6_input,
272 .pr_ctloutput = NULL,
274 .pr_usrreqs = &nousrreqs
279 .pr_domain = &inet6domain,
280 .pr_protocol = IPPROTO_AH,
281 .pr_flags = PR_ATOMIC|PR_ADDR,
283 .pr_input = ah6_input,
286 .pr_ctloutput = NULL,
288 .pr_usrreqs = &nousrreqs
293 .pr_domain = &inet6domain,
294 .pr_protocol = IPPROTO_ESP,
295 .pr_flags = PR_ATOMIC|PR_ADDR,
297 .pr_input = esp6_input,
299 .pr_ctlinput = esp6_ctlinput,
300 .pr_ctloutput = NULL,
302 .pr_usrreqs = &nousrreqs
307 .pr_domain = &inet6domain,
308 .pr_protocol = IPPROTO_IPCOMP,
309 .pr_flags = PR_ATOMIC|PR_ADDR,
311 .pr_input = ipcomp6_input,
314 .pr_ctloutput = NULL,
316 .pr_usrreqs = &nousrreqs
322 .pr_domain = &inet6domain,
323 .pr_protocol = IPPROTO_IPV4,
324 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
326 .pr_input = encap6_input,
327 .pr_output = rip6_output,
329 .pr_ctloutput = rip6_ctloutput,
331 .pr_init = encap_init,
332 .pr_usrreqs = &rip6_usrreqs
337 .pr_domain = &inet6domain,
338 .pr_protocol = IPPROTO_IPV6,
339 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
341 .pr_input = encap6_input,
342 .pr_output = rip6_output,
344 .pr_ctloutput = rip6_ctloutput,
346 .pr_init = encap_init,
347 .pr_usrreqs = &rip6_usrreqs
351 .pr_domain = &inet6domain,
352 .pr_protocol = IPPROTO_PIM,
353 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
355 .pr_input = pim6_input,
356 .pr_output = rip6_output,
358 .pr_ctloutput = rip6_ctloutput,
360 .pr_usrreqs = &rip6_usrreqs
365 .pr_domain = &inet6domain,
366 .pr_protocol = IPPROTO_CARP,
367 .pr_flags = PR_ATOMIC|PR_ADDR,
369 .pr_input = carp6_input,
370 .pr_output = rip6_output,
372 .pr_ctloutput = rip6_ctloutput,
374 .pr_usrreqs = &rip6_usrreqs
381 .pr_domain = &inet6domain,
383 .pr_flags = PR_ATOMIC|PR_ADDR,
385 .pr_input = rip6_input,
386 .pr_output = rip6_output,
388 .pr_ctloutput = rip6_ctloutput,
390 .pr_usrreqs = &rip6_usrreqs
394 extern int in6_inithead (void **, int);
396 struct domain inet6domain = {
397 AF_INET6, "internet6", NULL, NULL, NULL,
398 (struct protosw *)inet6sw,
399 (struct protosw *)&inet6sw[NELEM(inet6sw)],
400 SLIST_ENTRY_INITIALIZER,
401 in6_inithead, offsetof(struct sockaddr_in6, sin6_addr) << 3,
402 sizeof(struct sockaddr_in6), in6_domifattach, in6_domifdetach
408 * Internet configuration info
410 #ifndef IPV6FORWARDING
412 #define IPV6FORWARDING 1 /* forward IP6 packets not for us */
414 #define IPV6FORWARDING 0 /* don't forward IP6 packets not for us */
415 #endif /* GATEWAY6 */
416 #endif /* !IPV6FORWARDING */
418 #ifndef IPV6_SENDREDIRECTS
419 #define IPV6_SENDREDIRECTS 1
422 int ip6_forwarding = IPV6FORWARDING; /* act as router? */
423 int ip6_sendredirects = IPV6_SENDREDIRECTS;
424 int ip6_defhlim = IPV6_DEFHLIM;
425 int ip6_defmcasthlim = IPV6_DEFAULT_MULTICAST_HOPS;
426 int ip6_accept_rtadv = 0; /* "IPV6FORWARDING ? 0 : 1" is dangerous */
427 int ip6_maxfragpackets; /* initialized in frag6.c:frag6_init() */
428 int ip6_log_interval = 5;
429 int ip6_hdrnestlimit = 50; /* appropriate? */
430 int ip6_dad_count = 1; /* DupAddrDetectionTransmits */
431 u_int32_t ip6_flow_seq;
432 int ip6_auto_flowlabel = 1;
433 int ip6_gif_hlim = 0;
434 int ip6_use_deprecated = 1; /* allow deprecated addr (RFC2462 5.5.4) */
435 int ip6_rr_prune = 5; /* router renumbering prefix
436 * walk list every 5 sec. */
439 u_int32_t ip6_id = 0UL;
440 int ip6_keepfaith = 0;
441 time_t ip6_log_time = (time_t)0L;
445 * BSDI4 defines these variables in in_proto.c...
446 * XXX: what if we don't define INET? Should we define pmtu6_expire
447 * or so? (jinmei@kame.net 19990310)
449 int pmtu_expire = 60*10;
450 int pmtu_probe = 60*2;
452 /* raw IP6 parameters */
454 * Nominal space allocated to a raw ip socket.
456 #define RIPV6SNDQ 8192
457 #define RIPV6RCVQ 8192
459 u_long rip6_sendspace = RIPV6SNDQ;
460 u_long rip6_recvspace = RIPV6RCVQ;
462 /* ICMPV6 parameters */
463 int icmp6_rediraccept = 1; /* accept and process redirects */
464 int icmp6_redirtimeout = 10 * 60; /* 10 minutes */
465 int icmp6errppslim = 100; /* 100pps */
466 int icmp6_nodeinfo = 3; /* enable/disable NI response */
468 /* UDP on IP6 parameters */
469 int udp6_sendspace = 9216; /* really max datagram size */
470 int udp6_recvspace = 40 * (1024 + sizeof(struct sockaddr_in6));
471 /* 40 1K datagrams */
474 * sysctl related items.
476 SYSCTL_NODE(_net, PF_INET6, inet6, CTLFLAG_RW, 0,
480 SYSCTL_NODE(_net_inet6, IPPROTO_IPV6, ip6, CTLFLAG_RW, 0, "IP6");
481 SYSCTL_NODE(_net_inet6, IPPROTO_ICMPV6, icmp6, CTLFLAG_RW, 0, "ICMP6");
482 SYSCTL_NODE(_net_inet6, IPPROTO_UDP, udp6, CTLFLAG_RW, 0, "UDP6");
483 SYSCTL_NODE(_net_inet6, IPPROTO_TCP, tcp6, CTLFLAG_RW, 0, "TCP6");
485 SYSCTL_NODE(_net_inet6, IPPROTO_ESP, ipsec6, CTLFLAG_RW, 0, "IPSEC6");
490 sysctl_ip6_temppltime(SYSCTL_HANDLER_ARGS)
495 error = SYSCTL_OUT(req, arg1, sizeof(int));
496 if (error || !req->newptr)
498 old = ip6_temp_preferred_lifetime;
499 error = SYSCTL_IN(req, arg1, sizeof(int));
500 if (ip6_temp_preferred_lifetime <
501 ip6_desync_factor + ip6_temp_regen_advance) {
502 ip6_temp_preferred_lifetime = old;
509 sysctl_ip6_tempvltime(SYSCTL_HANDLER_ARGS)
514 error = SYSCTL_OUT(req, arg1, sizeof(int));
515 if (error || !req->newptr)
517 old = ip6_temp_valid_lifetime;
518 error = SYSCTL_IN(req, arg1, sizeof(int));
519 if (ip6_temp_valid_lifetime < ip6_temp_preferred_lifetime) {
520 ip6_temp_preferred_lifetime = old;
526 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_FORWARDING, forwarding, CTLFLAG_RW,
527 &ip6_forwarding, 0, "Enable IP forwarding between interfaces");
528 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_SENDREDIRECTS, redirect, CTLFLAG_RW,
529 &ip6_sendredirects, 0, "Enable sending IP redirects");
530 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_DEFHLIM,
531 hlim, CTLFLAG_RW, &ip6_defhlim, 0, "Default hop limit");
532 SYSCTL_STRUCT(_net_inet6_ip6, IPV6CTL_STATS, stats, CTLFLAG_RD,
533 &ip6stat, ip6stat, "IP stats");
534 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_MAXFRAGPACKETS, maxfragpackets,
535 CTLFLAG_RW, &ip6_maxfragpackets, 0, "Maximum packets in reassembly queue");
536 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_ACCEPT_RTADV, accept_rtadv,
537 CTLFLAG_RW, &ip6_accept_rtadv, 0, "Acts as a host not a router");
538 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_KEEPFAITH,
539 keepfaith, CTLFLAG_RW, &ip6_keepfaith, 0,
540 "Enable packet capture for FAITH IPv4->IPv6 translator daemon");
541 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_LOG_INTERVAL,
542 log_interval, CTLFLAG_RW, &ip6_log_interval, 0, "");
543 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_HDRNESTLIMIT, hdrnestlimit, CTLFLAG_RW,
544 &ip6_hdrnestlimit, 0, "Upper limit of # of extension headers");
545 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_DAD_COUNT, dad_count, CTLFLAG_RW,
546 &ip6_dad_count, 0, "Number of times to perform duplicate address detectione");
547 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_AUTO_FLOWLABEL, auto_flowlabel, CTLFLAG_RW,
548 &ip6_auto_flowlabel, 0, "Enable attaching flowlabel automatically");
549 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_DEFMCASTHLIM, defmcasthlim, CTLFLAG_RW,
550 &ip6_defmcasthlim, 0, "Default multicast hop limit");
551 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_GIF_HLIM, gifhlim, CTLFLAG_RW,
552 &ip6_gif_hlim, 0, "Hop limit for gif encap packet");
553 SYSCTL_STRING(_net_inet6_ip6, IPV6CTL_KAME_VERSION,
554 kame_version, CTLFLAG_RD, __KAME_VERSION, 0, "Kame version");
555 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_USE_DEPRECATED, use_deprecated, CTLFLAG_RW,
556 &ip6_use_deprecated, 0, "Allow deprecated addr as source");
557 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RR_PRUNE,
558 rr_prune, CTLFLAG_RW, &ip6_rr_prune, 0,
559 "Walk timer for router renumbering");
560 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_USETEMPADDR, use_tempaddr, CTLFLAG_RW,
561 &ip6_use_tempaddr, 0, "Whether to use temporary addresses");
562 SYSCTL_OID(_net_inet6_ip6, IPV6CTL_TEMPPLTIME, temppltime,
563 CTLTYPE_INT|CTLFLAG_RW, &ip6_temp_preferred_lifetime, 0,
564 sysctl_ip6_temppltime, "I",
565 "Preferred lifetime for tmpaddrs");
566 SYSCTL_OID(_net_inet6_ip6, IPV6CTL_TEMPVLTIME, tempvltime,
567 CTLTYPE_INT|CTLFLAG_RW, &ip6_temp_valid_lifetime, 0,
568 sysctl_ip6_tempvltime, "I",
569 "Valid lifetime for tmpaddrs");
570 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_V6ONLY, v6only, CTLFLAG_RW,
571 &ip6_v6only, 0,"Forbid v4, restrict AF_INET6 socket for v6");
572 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_AUTO_LINKLOCAL, auto_linklocal, CTLFLAG_RW,
573 &ip6_auto_linklocal, 0, "Enable auto-assigning a link-local address");
574 SYSCTL_STRUCT(_net_inet6_ip6, IPV6CTL_RIP6STATS, rip6stats, CTLFLAG_RD,
575 &rip6stat, rip6stat, "Raw stats");
577 /* net.inet6.icmp6 */
578 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_REDIRACCEPT, rediraccept, CTLFLAG_RW,
579 &icmp6_rediraccept, 0, "If enabled, accept and process redirects");
580 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_REDIRTIMEOUT, redirtimeout, CTLFLAG_RW,
581 &icmp6_redirtimeout, 0, "Cache time for redirect routes");
582 SYSCTL_STRUCT(_net_inet6_icmp6, ICMPV6CTL_STATS, stats, CTLFLAG_RD,
583 &icmp6stat, icmp6stat, "Stats");
584 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_PRUNE, nd6_prune, CTLFLAG_RW,
585 &nd6_prune, 0, "Prune interval");
586 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_DELAY, nd6_delay, CTLFLAG_RW,
587 &nd6_delay, 0, "Reachability timeout for stale neighbors");
588 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_UMAXTRIES, nd6_umaxtries, CTLFLAG_RW,
589 &nd6_umaxtries, 0, "Maximum unicast query");
590 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_MMAXTRIES, nd6_mmaxtries, CTLFLAG_RW,
591 &nd6_mmaxtries, 0, "Maximum multicast query");
592 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_USELOOPBACK, nd6_useloopback, CTLFLAG_RW,
593 &nd6_useloopback, 0, "Use loopback interface for local traffic");
594 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_NODEINFO,
595 nodeinfo, CTLFLAG_RW, &icmp6_nodeinfo, 0, "Enable/disable NI response");
596 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ERRPPSLIMIT,
597 errppslimit, CTLFLAG_RW, &icmp6errppslim, 0,
598 "ICMPv6 error maximum packet-per-second value (default: 100pps)");
599 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_MAXNUDHINT, nd6_maxnudhint, CTLFLAG_RW,
600 &nd6_maxnudhint, 0, "Max # of subsequent upper layer hints");
601 SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_DEBUG, nd6_debug, CTLFLAG_RW,
602 &nd6_debug, 0, "Enable debug output");