Deleted Added
full compact
in_proto.c (189592) in_proto.c (193731)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. 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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)in_proto.c 8.2 (Berkeley) 2/9/95
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. 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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)in_proto.c 8.2 (Berkeley) 2/9/95
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet/in_proto.c 189592 2009-03-09 17:53:05Z bms $");
33__FBSDID("$FreeBSD: head/sys/netinet/in_proto.c 193731 2009-06-08 17:15:40Z zec $");
34
35#include "opt_ipx.h"
36#include "opt_mrouting.h"
37#include "opt_ipsec.h"
38#include "opt_inet6.h"
39#include "opt_route.h"
40#include "opt_pf.h"
41#include "opt_carp.h"

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

122 .pr_type = SOCK_DGRAM,
123 .pr_domain = &inetdomain,
124 .pr_protocol = IPPROTO_UDP,
125 .pr_flags = PR_ATOMIC|PR_ADDR,
126 .pr_input = udp_input,
127 .pr_ctlinput = udp_ctlinput,
128 .pr_ctloutput = ip_ctloutput,
129 .pr_init = udp_init,
34
35#include "opt_ipx.h"
36#include "opt_mrouting.h"
37#include "opt_ipsec.h"
38#include "opt_inet6.h"
39#include "opt_route.h"
40#include "opt_pf.h"
41#include "opt_carp.h"

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

122 .pr_type = SOCK_DGRAM,
123 .pr_domain = &inetdomain,
124 .pr_protocol = IPPROTO_UDP,
125 .pr_flags = PR_ATOMIC|PR_ADDR,
126 .pr_input = udp_input,
127 .pr_ctlinput = udp_ctlinput,
128 .pr_ctloutput = ip_ctloutput,
129 .pr_init = udp_init,
130#ifdef VIMAGE
131 .pr_destroy = udp_destroy,
132#endif
130 .pr_usrreqs = &udp_usrreqs
131},
132{
133 .pr_type = SOCK_STREAM,
134 .pr_domain = &inetdomain,
135 .pr_protocol = IPPROTO_TCP,
136 .pr_flags = PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD,
137 .pr_input = tcp_input,
138 .pr_ctlinput = tcp_ctlinput,
139 .pr_ctloutput = tcp_ctloutput,
140 .pr_init = tcp_init,
133 .pr_usrreqs = &udp_usrreqs
134},
135{
136 .pr_type = SOCK_STREAM,
137 .pr_domain = &inetdomain,
138 .pr_protocol = IPPROTO_TCP,
139 .pr_flags = PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD,
140 .pr_input = tcp_input,
141 .pr_ctlinput = tcp_ctlinput,
142 .pr_ctloutput = tcp_ctloutput,
143 .pr_init = tcp_init,
144#ifdef VIMAGE
145 .pr_destroy = tcp_destroy,
146#endif
141 .pr_slowtimo = tcp_slowtimo,
142 .pr_drain = tcp_drain,
143 .pr_usrreqs = &tcp_usrreqs
144},
145#ifdef SCTP
146{
147 .pr_type = SOCK_DGRAM,
148 .pr_domain = &inetdomain,

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

343/* raw wildcard */
344{
345 .pr_type = SOCK_RAW,
346 .pr_domain = &inetdomain,
347 .pr_flags = PR_ATOMIC|PR_ADDR,
348 .pr_input = rip_input,
349 .pr_ctloutput = rip_ctloutput,
350 .pr_init = rip_init,
147 .pr_slowtimo = tcp_slowtimo,
148 .pr_drain = tcp_drain,
149 .pr_usrreqs = &tcp_usrreqs
150},
151#ifdef SCTP
152{
153 .pr_type = SOCK_DGRAM,
154 .pr_domain = &inetdomain,

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

349/* raw wildcard */
350{
351 .pr_type = SOCK_RAW,
352 .pr_domain = &inetdomain,
353 .pr_flags = PR_ATOMIC|PR_ADDR,
354 .pr_input = rip_input,
355 .pr_ctloutput = rip_ctloutput,
356 .pr_init = rip_init,
357#ifdef VIMAGE
358 .pr_destroy = rip_destroy,
359#endif
351 .pr_usrreqs = &rip_usrreqs
352},
353};
354
355extern int in_inithead(void **, int);
360 .pr_usrreqs = &rip_usrreqs
361},
362};
363
364extern int in_inithead(void **, int);
365extern int in_detachhead(void **, int);
356
357struct domain inetdomain = {
358 .dom_family = AF_INET,
359 .dom_name = "internet",
360 .dom_protosw = inetsw,
361 .dom_protoswNPROTOSW = &inetsw[sizeof(inetsw)/sizeof(inetsw[0])],
362#ifdef RADIX_MPATH
363 .dom_rtattach = rn4_mpath_inithead,
364#else
365 .dom_rtattach = in_inithead,
366#endif
366
367struct domain inetdomain = {
368 .dom_family = AF_INET,
369 .dom_name = "internet",
370 .dom_protosw = inetsw,
371 .dom_protoswNPROTOSW = &inetsw[sizeof(inetsw)/sizeof(inetsw[0])],
372#ifdef RADIX_MPATH
373 .dom_rtattach = rn4_mpath_inithead,
374#else
375 .dom_rtattach = in_inithead,
376#endif
377#ifdef VIMAGE
378 .dom_rtdetach = in_detachhead,
379#endif
367 .dom_rtoffset = 32,
368 .dom_maxrtkey = sizeof(struct sockaddr_in),
369 .dom_ifattach = in_domifattach,
370 .dom_ifdetach = in_domifdetach
371};
372
373DOMAIN_SET(inet);
374

--- 26 unchanged lines hidden ---
380 .dom_rtoffset = 32,
381 .dom_maxrtkey = sizeof(struct sockaddr_in),
382 .dom_ifattach = in_domifattach,
383 .dom_ifdetach = in_domifdetach
384};
385
386DOMAIN_SET(inet);
387

--- 26 unchanged lines hidden ---