ip6_input.c (196569) | ip6_input.c (197138) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 47 unchanged lines hidden (view full) --- 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 61 */ 62 63#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 47 unchanged lines hidden (view full) --- 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 61 */ 62 63#include <sys/cdefs.h> |
64__FBSDID("$FreeBSD: head/sys/netinet6/ip6_input.c 196569 2009-08-26 21:32:50Z qingli $"); | 64__FBSDID("$FreeBSD: head/sys/netinet6/ip6_input.c 197138 2009-09-12 22:08:20Z hrs $"); |
65 66#include "opt_inet.h" 67#include "opt_inet6.h" 68#include "opt_ipsec.h" 69 70#include <sys/param.h> 71#include <sys/systm.h> 72#include <sys/malloc.h> --- 97 unchanged lines hidden (view full) --- 170{ 171 struct ip6protosw *pr; 172 int i; 173 174 V_in6_maxmtu = 0; 175#ifdef IP6_AUTO_LINKLOCAL 176 V_ip6_auto_linklocal = IP6_AUTO_LINKLOCAL; 177#else | 65 66#include "opt_inet.h" 67#include "opt_inet6.h" 68#include "opt_ipsec.h" 69 70#include <sys/param.h> 71#include <sys/systm.h> 72#include <sys/malloc.h> --- 97 unchanged lines hidden (view full) --- 170{ 171 struct ip6protosw *pr; 172 int i; 173 174 V_in6_maxmtu = 0; 175#ifdef IP6_AUTO_LINKLOCAL 176 V_ip6_auto_linklocal = IP6_AUTO_LINKLOCAL; 177#else |
178 V_ip6_auto_linklocal = 1; /* enable by default */ | 178 V_ip6_auto_linklocal = 1; /* enabled by default */ |
179#endif 180 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", 181 &V_ip6_auto_linklocal); 182 183#ifndef IPV6FORWARDING 184#ifdef GATEWAY6 185#define IPV6FORWARDING 1 /* forward IP6 packets not for us */ 186#else --- 4 unchanged lines hidden (view full) --- 191#ifndef IPV6_SENDREDIRECTS 192#define IPV6_SENDREDIRECTS 1 193#endif 194 195 V_ip6_forwarding = IPV6FORWARDING; /* act as router? */ 196 V_ip6_sendredirects = IPV6_SENDREDIRECTS; 197 V_ip6_defhlim = IPV6_DEFHLIM; 198 V_ip6_defmcasthlim = IPV6_DEFAULT_MULTICAST_HOPS; | 179#endif 180 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", 181 &V_ip6_auto_linklocal); 182 183#ifndef IPV6FORWARDING 184#ifdef GATEWAY6 185#define IPV6FORWARDING 1 /* forward IP6 packets not for us */ 186#else --- 4 unchanged lines hidden (view full) --- 191#ifndef IPV6_SENDREDIRECTS 192#define IPV6_SENDREDIRECTS 1 193#endif 194 195 V_ip6_forwarding = IPV6FORWARDING; /* act as router? */ 196 V_ip6_sendredirects = IPV6_SENDREDIRECTS; 197 V_ip6_defhlim = IPV6_DEFHLIM; 198 V_ip6_defmcasthlim = IPV6_DEFAULT_MULTICAST_HOPS; |
199 V_ip6_accept_rtadv = 0; /* "IPV6FORWARDING ? 0 : 1" is dangerous */ | 199 V_ip6_accept_rtadv = 0; |
200 V_ip6_log_interval = 5; 201 V_ip6_hdrnestlimit = 15; /* How many header options will we process? */ 202 V_ip6_dad_count = 1; /* DupAddrDetectionTransmits */ 203 V_ip6_auto_flowlabel = 1; 204 V_ip6_use_deprecated = 1;/* allow deprecated addr (RFC2462 5.5.4) */ 205 V_ip6_rr_prune = 5; /* router renumbering prefix 206 * walk list every 5 sec. */ 207 V_ip6_mcast_pmtu = 0; /* enable pMTU discovery for multicast? */ --- 1530 unchanged lines hidden --- | 200 V_ip6_log_interval = 5; 201 V_ip6_hdrnestlimit = 15; /* How many header options will we process? */ 202 V_ip6_dad_count = 1; /* DupAddrDetectionTransmits */ 203 V_ip6_auto_flowlabel = 1; 204 V_ip6_use_deprecated = 1;/* allow deprecated addr (RFC2462 5.5.4) */ 205 V_ip6_rr_prune = 5; /* router renumbering prefix 206 * walk list every 5 sec. */ 207 V_ip6_mcast_pmtu = 0; /* enable pMTU discovery for multicast? */ --- 1530 unchanged lines hidden --- |