in6_proto.c revision 1.108 1 /* $NetBSD: in6_proto.c,v 1.108 2016/01/20 21:44:00 riastradh Exp $ */
2 /* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */
3
4 /*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
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.
19 *
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
30 * SUCH DAMAGE.
31 */
32
33 /*
34 * Copyright (c) 1982, 1986, 1993
35 * The Regents of the University of California. All rights reserved.
36 *
37 * Redistribution and use in source and binary forms, with or without
38 * modification, are permitted provided that the following conditions
39 * are met:
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. Neither the name of the University nor the names of its contributors
46 * may be used to endorse or promote products derived from this software
47 * without specific prior written permission.
48 *
49 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
50 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
53 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
55 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
56 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
57 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
58 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59 * SUCH DAMAGE.
60 *
61 * @(#)in_proto.c 8.1 (Berkeley) 6/10/93
62 */
63
64 #include <sys/cdefs.h>
65 __KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.108 2016/01/20 21:44:00 riastradh Exp $");
66
67 #ifdef _KERNEL_OPT
68 #include "opt_gateway.h"
69 #include "opt_inet.h"
70 #include "opt_ipsec.h"
71 #include "opt_dccp.h"
72 #include "opt_sctp.h"
73 #endif
74
75 #include <sys/param.h>
76 #include <sys/socket.h>
77 #include <sys/protosw.h>
78 #include <sys/kernel.h>
79 #include <sys/domain.h>
80 #include <sys/mbuf.h>
81
82 #include <net/if.h>
83 #include <net/radix.h>
84 #include <net/route.h>
85
86 #include <netinet/in.h>
87 #include <netinet/in_systm.h>
88 #include <netinet/in_var.h>
89 #include <netinet/ip_encap.h>
90 #include <netinet/ip.h>
91 #include <netinet/ip_var.h>
92 #include <netinet/in_pcb.h>
93 #include <netinet/ip6.h>
94 #include <netinet6/ip6_var.h>
95 #include <netinet/icmp6.h>
96 #include <netinet6/in6_pcb.h>
97
98 #include <netinet/tcp.h>
99 #include <netinet/tcp_fsm.h>
100 #include <netinet/tcp_seq.h>
101 #include <netinet/tcp_timer.h>
102 #include <netinet/tcp_var.h>
103 #include <netinet/tcpip.h>
104 #include <netinet/tcp_debug.h>
105
106 #include <netinet6/udp6.h>
107 #include <netinet6/udp6_var.h>
108
109 #ifdef DCCP
110 #include <netinet/dccp.h>
111 #include <netinet/dccp_var.h>
112 #include <netinet6/dccp6_var.h>
113 #endif
114
115 #ifdef SCTP
116 #include <netinet/sctp_pcb.h>
117 #include <netinet/sctp.h>
118 #include <netinet/sctp_var.h>
119 #include <netinet6/sctp6_var.h>
120 #endif
121
122 #include <netinet6/pim6_var.h>
123
124 #include <netinet6/nd6.h>
125
126 #ifdef IPSEC
127 #include <netipsec/ipsec.h>
128 #include <netipsec/ipsec6.h>
129 #include <netipsec/key.h>
130 #endif /* IPSEC */
131
132
133 #include "carp.h"
134 #if NCARP > 0
135 #include <netinet/ip_carp.h>
136 #endif
137
138 #include "etherip.h"
139 #if NETHERIP > 0
140 #include <netinet6/ip6_etherip.h>
141 #endif
142
143 #include <netinet6/ip6protosw.h>
144
145 #include <net/net_osdep.h>
146
147 /*
148 * TCP/IP protocol family: IP6, ICMP6, UDP, TCP.
149 */
150
151 DOMAIN_DEFINE(inet6domain); /* forward declare and add to link set */
152
153 /* Wrappers to acquire kernel_lock. */
154
155 PR_WRAP_CTLINPUT(rip6_ctlinput)
156 PR_WRAP_CTLINPUT(encap6_ctlinput)
157 PR_WRAP_CTLINPUT(udp6_ctlinput)
158 PR_WRAP_CTLINPUT(tcp6_ctlinput)
159
160 #define rip6_ctlinput rip6_ctlinput_wrapper
161 #define encap6_ctlinput encap6_ctlinput_wrapper
162 #define udp6_ctlinput udp6_ctlinput_wrapper
163 #define tcp6_ctlinput tcp6_ctlinput_wrapper
164
165 PR_WRAP_CTLOUTPUT(rip6_ctloutput)
166 PR_WRAP_CTLOUTPUT(tcp_ctloutput)
167 PR_WRAP_CTLOUTPUT(udp6_ctloutput)
168 PR_WRAP_CTLOUTPUT(icmp6_ctloutput)
169
170 #define rip6_ctloutput rip6_ctloutput_wrapper
171 #define tcp_ctloutput tcp_ctloutput_wrapper
172 #define udp6_ctloutput udp6_ctloutput_wrapper
173 #define icmp6_ctloutput icmp6_ctloutput_wrapper
174
175 #if defined(DCCP)
176 PR_WRAP_CTLINPUT(dccp6_ctlinput)
177 PR_WRAP_CTLOUTPUT(dccp_ctloutput)
178
179 #define dccp6_ctlinput dccp6_ctlinput_wrapper
180 #define dccp_ctloutput dccp_ctloutput_wrapper
181 #endif
182
183 #if defined(SCTP)
184 PR_WRAP_CTLINPUT(sctp6_ctlinput)
185 PR_WRAP_CTLOUTPUT(sctp_ctloutput)
186
187 #define sctp6_ctlinput sctp6_ctlinput_wrapper
188 #define sctp_ctloutput sctp_ctloutput_wrapper
189 #endif
190
191 #if defined(IPSEC)
192 PR_WRAP_CTLINPUT(ah6_ctlinput)
193
194 #define ah6_ctlinput ah6_ctlinput_wrapper
195 #endif
196
197 #if defined(IPSEC)
198 PR_WRAP_CTLINPUT(esp6_ctlinput)
199
200 #define esp6_ctlinput esp6_ctlinput_wrapper
201 #endif
202
203 static void
204 tcp6_init(void)
205 {
206
207 icmp6_mtudisc_callback_register(tcp6_mtudisc_callback);
208
209 tcp_init_common(sizeof(struct ip6_hdr));
210 }
211
212 const struct ip6protosw inet6sw[] = {
213 { .pr_domain = &inet6domain,
214 .pr_protocol = IPPROTO_IPV6,
215 .pr_init = ip6_init,
216 .pr_fasttimo = frag6_fasttimo,
217 .pr_slowtimo = frag6_slowtimo,
218 .pr_drain = frag6_drainstub,
219 },
220 { .pr_type = SOCK_DGRAM,
221 .pr_domain = &inet6domain,
222 .pr_protocol = IPPROTO_UDP,
223 .pr_flags = PR_ATOMIC|PR_ADDR|PR_PURGEIF,
224 .pr_input = udp6_input,
225 .pr_ctlinput = udp6_ctlinput,
226 .pr_ctloutput = udp6_ctloutput,
227 .pr_usrreqs = &udp6_usrreqs,
228 .pr_init = udp6_init,
229 },
230 { .pr_type = SOCK_STREAM,
231 .pr_domain = &inet6domain,
232 .pr_protocol = IPPROTO_TCP,
233 .pr_flags = PR_CONNREQUIRED|PR_WANTRCVD|PR_LISTEN|PR_ABRTACPTDIS|PR_PURGEIF,
234 .pr_input = tcp6_input,
235 .pr_ctlinput = tcp6_ctlinput,
236 .pr_ctloutput = tcp_ctloutput,
237 .pr_usrreqs = &tcp_usrreqs,
238 .pr_init = tcp6_init,
239 .pr_fasttimo = tcp_fasttimo,
240 .pr_drain = tcp_drainstub,
241 },
242 #ifdef DCCP
243 { .pr_type = SOCK_CONN_DGRAM,
244 .pr_domain = &inet6domain,
245 .pr_protocol = IPPROTO_DCCP,
246 .pr_flags = PR_CONNREQUIRED|PR_ATOMIC|PR_LISTEN,
247 .pr_input = dccp6_input,
248 .pr_ctlinput = dccp6_ctlinput,
249 .pr_ctloutput = dccp_ctloutput,
250 .pr_usrreqs = &dccp6_usrreqs,
251 #ifndef INET
252 .pr_init = dccp_init,
253 #endif
254 },
255 #endif /* DCCP */
256 #ifdef SCTP
257 { .pr_type = SOCK_DGRAM,
258 .pr_domain = &inet6domain,
259 .pr_protocol = IPPROTO_SCTP,
260 .pr_flags = PR_ADDR_OPT|PR_WANTRCVD,
261 .pr_input = sctp6_input,
262 .pr_ctlinput = sctp6_ctlinput,
263 .pr_ctloutput = sctp_ctloutput,
264 .pr_usrreqs = &sctp6_usrreqs,
265 .pr_drain = sctp_drain,
266 },
267 { .pr_type = SOCK_SEQPACKET,
268 .pr_domain = &inet6domain,
269 .pr_protocol = IPPROTO_SCTP,
270 .pr_flags = PR_ADDR_OPT|PR_WANTRCVD,
271 .pr_input = sctp6_input,
272 .pr_ctlinput = sctp6_ctlinput,
273 .pr_ctloutput = sctp_ctloutput,
274 .pr_drain = sctp_drain,
275 },
276 { .pr_type = SOCK_STREAM,
277 .pr_domain = &inet6domain,
278 .pr_protocol = IPPROTO_SCTP,
279 .pr_flags = PR_CONNREQUIRED|PR_ADDR_OPT|PR_WANTRCVD|PR_LISTEN,
280 .pr_input = sctp6_input,
281 .pr_ctlinput = sctp6_ctlinput,
282 .pr_ctloutput = sctp_ctloutput,
283 .pr_drain = sctp_drain,
284 },
285 #endif /* SCTP */
286 { .pr_type = SOCK_RAW,
287 .pr_domain = &inet6domain,
288 .pr_protocol = IPPROTO_RAW,
289 .pr_flags = PR_ATOMIC|PR_ADDR|PR_PURGEIF,
290 .pr_input = rip6_input,
291 .pr_ctlinput = rip6_ctlinput,
292 .pr_ctloutput = rip6_ctloutput,
293 .pr_usrreqs = &rip6_usrreqs,
294 },
295 #ifdef GATEWAY
296 { .pr_domain = &inet6domain,
297 .pr_protocol = IPPROTO_IPV6,
298 .pr_slowtimo = ip6flow_slowtimo,
299 .pr_init = ip6flow_poolinit,
300 },
301 #endif /* GATEWAY */
302 { .pr_type = SOCK_RAW,
303 .pr_domain = &inet6domain,
304 .pr_protocol = IPPROTO_ICMPV6,
305 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
306 .pr_input = icmp6_input,
307 .pr_ctlinput = rip6_ctlinput,
308 .pr_ctloutput = icmp6_ctloutput,
309 .pr_usrreqs = &rip6_usrreqs,
310 .pr_init = icmp6_init,
311 },
312 { .pr_type = SOCK_RAW,
313 .pr_domain = &inet6domain,
314 .pr_protocol = IPPROTO_DSTOPTS,
315 .pr_flags = PR_ATOMIC|PR_ADDR,
316 .pr_input = dest6_input,
317 },
318 { .pr_type = SOCK_RAW,
319 .pr_domain = &inet6domain,
320 .pr_protocol = IPPROTO_ROUTING,
321 .pr_flags = PR_ATOMIC|PR_ADDR,
322 .pr_input = route6_input,
323 },
324 { .pr_type = SOCK_RAW,
325 .pr_domain = &inet6domain,
326 .pr_protocol = IPPROTO_FRAGMENT,
327 .pr_flags = PR_ATOMIC|PR_ADDR,
328 .pr_input = frag6_input,
329 },
330 #ifdef IPSEC
331 { .pr_type = SOCK_RAW,
332 .pr_domain = &inet6domain,
333 .pr_protocol = IPPROTO_AH,
334 .pr_flags = PR_ATOMIC|PR_ADDR,
335 .pr_input = ipsec6_common_input,
336 .pr_ctlinput = ah6_ctlinput,
337 },
338 { .pr_type = SOCK_RAW,
339 .pr_domain = &inet6domain,
340 .pr_protocol = IPPROTO_ESP,
341 .pr_flags = PR_ATOMIC|PR_ADDR,
342 .pr_input = ipsec6_common_input,
343 .pr_ctlinput = esp6_ctlinput,
344 },
345 { .pr_type = SOCK_RAW,
346 .pr_domain = &inet6domain,
347 .pr_protocol = IPPROTO_IPCOMP,
348 .pr_flags = PR_ATOMIC|PR_ADDR,
349 .pr_input = ipsec6_common_input,
350 },
351 #endif /* IPSEC */
352 #ifdef INET
353 { .pr_type = SOCK_RAW,
354 .pr_domain = &inet6domain,
355 .pr_protocol = IPPROTO_IPV4,
356 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
357 .pr_input = encap6_input,
358 .pr_ctlinput = encap6_ctlinput,
359 .pr_ctloutput = rip6_ctloutput,
360 .pr_usrreqs = &rip6_usrreqs,
361 .pr_init = encap_init,
362 },
363 #endif
364 { .pr_type = SOCK_RAW,
365 .pr_domain = &inet6domain,
366 .pr_protocol = IPPROTO_IPV6,
367 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
368 .pr_input = encap6_input,
369 .pr_ctlinput = encap6_ctlinput,
370 .pr_ctloutput = rip6_ctloutput,
371 .pr_usrreqs = &rip6_usrreqs,
372 .pr_init = encap_init,
373 },
374 #if NETHERIP > 0
375 { .pr_type = SOCK_RAW,
376 .pr_domain = &inet6domain,
377 .pr_protocol = IPPROTO_ETHERIP,
378 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
379 .pr_input = ip6_etherip_input,
380 .pr_ctlinput = rip6_ctlinput,
381 .pr_ctloutput = rip6_ctloutput,
382 .pr_usrreqs = &rip6_usrreqs,
383 },
384 #endif
385 #if NCARP > 0
386 { .pr_type = SOCK_RAW,
387 .pr_domain = &inet6domain,
388 .pr_protocol = IPPROTO_CARP,
389 .pr_flags = PR_ATOMIC|PR_ADDR,
390 .pr_input = carp6_proto_input,
391 .pr_ctloutput = rip6_ctloutput,
392 .pr_usrreqs = &rip6_usrreqs,
393 },
394 #endif /* NCARP */
395 { .pr_type = SOCK_RAW,
396 .pr_domain = &inet6domain,
397 .pr_protocol = IPPROTO_PIM,
398 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
399 .pr_input = pim6_input,
400 .pr_ctloutput = rip6_ctloutput,
401 .pr_usrreqs = &rip6_usrreqs,
402 .pr_init = pim6_init,
403 },
404 /* raw wildcard */
405 { .pr_type = SOCK_RAW,
406 .pr_domain = &inet6domain,
407 .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
408 .pr_input = rip6_input,
409 .pr_ctloutput = rip6_ctloutput,
410 .pr_usrreqs = &rip6_usrreqs,
411 .pr_init = rip6_init,
412 },
413 };
414
415 static const struct sockaddr_in6 in6_any = {
416 .sin6_len = sizeof(in6_any)
417 , .sin6_family = AF_INET6
418 , .sin6_port = 0
419 , .sin6_flowinfo = 0
420 , .sin6_addr = IN6ADDR_ANY_INIT
421 , .sin6_scope_id = 0
422 };
423
424 bool in6_present = false;
425 static void
426 in6_init(void)
427 {
428
429 in6_present = true;
430 }
431
432 struct domain inet6domain = {
433 .dom_family = AF_INET6, .dom_name = "internet6",
434 .dom_init = in6_init, .dom_externalize = NULL, .dom_dispose = NULL,
435 .dom_protosw = (const struct protosw *)inet6sw,
436 .dom_protoswNPROTOSW = (const struct protosw *)&inet6sw[sizeof(inet6sw)/sizeof(inet6sw[0])],
437 .dom_rtattach = rt_inithead,
438 .dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr) << 3,
439 .dom_maxrtkey = sizeof(struct ip_pack6),
440 .dom_if_up = in6_if_up, .dom_if_down = in6_if_down,
441 .dom_ifattach = in6_domifattach, .dom_ifdetach = in6_domifdetach,
442 .dom_if_link_state_change = in6_if_link_state_change,
443 .dom_ifqueues = { NULL, NULL },
444 .dom_link = { NULL },
445 .dom_mowner = MOWNER_INIT("",""),
446 .dom_sa_cmpofs = offsetof(struct sockaddr_in6, sin6_addr),
447 .dom_sa_cmplen = sizeof(struct in6_addr),
448 .dom_sa_any = (const struct sockaddr *)&in6_any,
449 .dom_sockaddr_externalize = sockaddr_in6_externalize,
450 .dom_rtcache = LIST_HEAD_INITIALIZER(inet6domain.dom_rtcache)
451 };
452
453 #if 0
454 int
455 sockaddr_in6_cmp(const struct sockaddr *lsa, const struct sockaddr *rsa)
456 {
457 uint_fast8_t len;
458 const uint_fast8_t addrofs = offsetof(struct sockaddr_in6, sin6_addr),
459 addrend = addrofs + sizeof(struct in6_addr);
460 int rc;
461 const struct sockaddr_in6 *lsin6, *rsin6;
462
463 lsin6 = satocsin6(lsa);
464 rsin6 = satocsin6(rsa);
465
466 len = MIN(addrend, MIN(lsin6->sin6_len, rsin6->sin6_len));
467
468 if (len > addrofs &&
469 (rc = memcmp(&lsin6->sin6_addr, &rsin6->sin6_addr,
470 len - addrofs)) != 0)
471 return rc;
472
473 return lsin6->sin6_len - rsin6->sin6_len;
474 }
475 #endif
476
477 /*
478 * Internet configuration info
479 */
480 #ifndef IPV6FORWARDING
481 #ifdef GATEWAY6
482 #define IPV6FORWARDING 1 /* forward IP6 packets not for us */
483 #else
484 #define IPV6FORWARDING 0 /* don't forward IP6 packets not for us */
485 #endif /* GATEWAY6 */
486 #endif /* !IPV6FORWARDING */
487
488 int ip6_forwarding = IPV6FORWARDING; /* act as router? */
489 int ip6_sendredirects = 1;
490 int ip6_defhlim = IPV6_DEFHLIM;
491 int ip6_defmcasthlim = IPV6_DEFAULT_MULTICAST_HOPS;
492 int ip6_accept_rtadv = 0; /* "IPV6FORWARDING ? 0 : 1" is dangerous */
493 int ip6_maxfragpackets = 200;
494 int ip6_maxfrags = 200;
495 int ip6_log_interval = 5;
496 int ip6_hdrnestlimit = 50; /* appropriate? */
497 int ip6_dad_count = 1; /* DupAddrDetectionTransmits */
498 int ip6_auto_flowlabel = 1;
499 int ip6_use_deprecated = 1; /* allow deprecated addr (RFC2462 5.5.4) */
500 int ip6_rr_prune = 5; /* router renumbering prefix
501 * walk list every 5 sec. */
502 int ip6_mcast_pmtu = 0; /* enable pMTU discovery for multicast? */
503 int ip6_v6only = 1;
504 int ip6_neighborgcthresh = 2048; /* Threshold # of NDP entries for GC */
505 int ip6_maxifprefixes = 16; /* Max acceptable prefixes via RA per IF */
506 int ip6_maxifdefrouters = 16; /* Max acceptable def routers via RA */
507 int ip6_maxdynroutes = 4096; /* Max # of routes created via redirect */
508
509 int ip6_keepfaith = 0;
510 time_t ip6_log_time = 0;
511 int ip6_rtadv_maxroutes = 100; /* (arbitrary) initial maximum number of
512 * routes via rtadv expected to be
513 * significantly larger than common use.
514 * if you need to count: 3 extra initial
515 * routes, plus 1 per interface after the
516 * first one, then one per non-linklocal
517 * prefix */
518
519 /* icmp6 */
520 /*
521 * BSDI4 defines these variables in in_proto.c...
522 * XXX: what if we don't define INET? Should we define pmtu6_expire
523 * or so? (jinmei (at) kame.net 19990310)
524 */
525 int pmtu_expire = 60*10;
526
527 /* raw IP6 parameters */
528 /*
529 * Nominal space allocated to a raw ip socket.
530 */
531 #define RIPV6SNDQ 8192
532 #define RIPV6RCVQ 8192
533
534 u_long rip6_sendspace = RIPV6SNDQ;
535 u_long rip6_recvspace = RIPV6RCVQ;
536
537 /* ICMPV6 parameters */
538 int icmp6_rediraccept = 1; /* accept and process redirects */
539 int icmp6_redirtimeout = 10 * 60; /* 10 minutes */
540 int icmp6errppslim = 100; /* 100pps */
541 int icmp6_nodeinfo = 1; /* enable/disable NI response */
542