Deleted Added
full compact
in6_proto.c (78931) in6_proto.c (79106)
1/* $FreeBSD: head/sys/netinet6/in6_proto.c 78931 2001-06-28 18:06:15Z ume $ */
1/* $FreeBSD: head/sys/netinet6/in6_proto.c 79106 2001-07-02 21:02:09Z brooks $ */
2/* $KAME: in6_proto.c,v 1.91 2001/05/27 13:28:35 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

--- 113 unchanged lines hidden (view full) ---

123#include <netinet6/ipcomp.h>
124#ifdef INET6
125#include <netinet6/ipcomp6.h>
126#endif
127#endif /*IPSEC*/
128
129#include <netinet6/ip6protosw.h>
130
2/* $KAME: in6_proto.c,v 1.91 2001/05/27 13:28:35 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

--- 113 unchanged lines hidden (view full) ---

123#include <netinet6/ipcomp.h>
124#ifdef INET6
125#include <netinet6/ipcomp6.h>
126#endif
127#endif /*IPSEC*/
128
129#include <netinet6/ip6protosw.h>
130
131#include "gif.h"
132#if NGIF > 0
133#include <netinet6/in6_gif.h>
134#endif
135
136#include <net/net_osdep.h>
137
138/*
139 * TCP/IP protocol family: IP6, ICMP6, UDP, TCP.
140 */
141
142extern struct domain inet6domain;
143static struct pr_usrreqs nousrreqs;

--- 102 unchanged lines hidden (view full) ---

246{ SOCK_RAW, &inet6domain, 0, PR_ATOMIC|PR_ADDR,
247 rip6_input, rip6_output, 0, rip6_ctloutput,
248 0,
249 0, 0, 0, 0,
250 &rip6_usrreqs
251},
252};
253
131#include <net/net_osdep.h>
132
133/*
134 * TCP/IP protocol family: IP6, ICMP6, UDP, TCP.
135 */
136
137extern struct domain inet6domain;
138static struct pr_usrreqs nousrreqs;

--- 102 unchanged lines hidden (view full) ---

241{ SOCK_RAW, &inet6domain, 0, PR_ATOMIC|PR_ADDR,
242 rip6_input, rip6_output, 0, rip6_ctloutput,
243 0,
244 0, 0, 0, 0,
245 &rip6_usrreqs
246},
247};
248
254#if NGIF > 0
255struct ip6protosw in6_gif_protosw =
256{ SOCK_RAW, &inet6domain, 0/*IPPROTO_IPV[46]*/, PR_ATOMIC|PR_ADDR,
257 in6_gif_input, rip6_output, 0, rip6_ctloutput,
258 0,
259 0, 0, 0, 0,
260 &rip6_usrreqs
261};
262#endif /*NGIF*/
263
264extern int in6_inithead __P((void **, int));
265
266struct domain inet6domain =
267 { AF_INET6, "internet6", 0, 0, 0,
268 (struct protosw *)inet6sw,
269 (struct protosw *)&inet6sw[sizeof(inet6sw)/sizeof(inet6sw[0])], 0,
270 in6_inithead,
271 offsetof(struct sockaddr_in6, sin6_addr) << 3,

--- 22 unchanged lines hidden (view full) ---

294int ip6_defmcasthlim = IPV6_DEFAULT_MULTICAST_HOPS;
295int ip6_accept_rtadv = 0; /* "IPV6FORWARDING ? 0 : 1" is dangerous */
296int ip6_maxfragpackets; /* initialized in frag6.c:frag6_init() */
297int ip6_log_interval = 5;
298int ip6_hdrnestlimit = 50; /* appropriate? */
299int ip6_dad_count = 1; /* DupAddrDetectionTransmits */
300u_int32_t ip6_flow_seq;
301int ip6_auto_flowlabel = 1;
249extern int in6_inithead __P((void **, int));
250
251struct domain inet6domain =
252 { AF_INET6, "internet6", 0, 0, 0,
253 (struct protosw *)inet6sw,
254 (struct protosw *)&inet6sw[sizeof(inet6sw)/sizeof(inet6sw[0])], 0,
255 in6_inithead,
256 offsetof(struct sockaddr_in6, sin6_addr) << 3,

--- 22 unchanged lines hidden (view full) ---

279int ip6_defmcasthlim = IPV6_DEFAULT_MULTICAST_HOPS;
280int ip6_accept_rtadv = 0; /* "IPV6FORWARDING ? 0 : 1" is dangerous */
281int ip6_maxfragpackets; /* initialized in frag6.c:frag6_init() */
282int ip6_log_interval = 5;
283int ip6_hdrnestlimit = 50; /* appropriate? */
284int ip6_dad_count = 1; /* DupAddrDetectionTransmits */
285u_int32_t ip6_flow_seq;
286int ip6_auto_flowlabel = 1;
302#if NGIF > 0
303int ip6_gif_hlim = GIF_HLIM;
304#else
305int ip6_gif_hlim = 0;
287int ip6_gif_hlim = 0;
306#endif
307int ip6_use_deprecated = 1; /* allow deprecated addr (RFC2462 5.5.4) */
308int ip6_rr_prune = 5; /* router renumbering prefix
309 * walk list every 5 sec. */
310int ip6_v6only = 0;
311
312u_int32_t ip6_id = 0UL;
313int ip6_keepfaith = 0;
314time_t ip6_log_time = (time_t)0L;

--- 156 unchanged lines hidden ---
288int ip6_use_deprecated = 1; /* allow deprecated addr (RFC2462 5.5.4) */
289int ip6_rr_prune = 5; /* router renumbering prefix
290 * walk list every 5 sec. */
291int ip6_v6only = 0;
292
293u_int32_t ip6_id = 0UL;
294int ip6_keepfaith = 0;
295time_t ip6_log_time = (time_t)0L;

--- 156 unchanged lines hidden ---