in_proto.c (17072) | in_proto.c (17096) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_proto.c 8.2 (Berkeley) 2/9/95 | 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_proto.c 8.2 (Berkeley) 2/9/95 |
34 * $Id: in_proto.c,v 1.31 1996/06/20 17:52:32 fenner Exp $ | 34 * $Id: in_proto.c,v 1.32 1996/07/10 19:44:21 julian Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/kernel.h> 40#include <sys/socket.h> 41#include <sys/socketvar.h> 42#include <sys/domain.h> --- 57 unchanged lines hidden (view full) --- 100{ SOCK_DGRAM, &inetdomain, IPPROTO_UDP, PR_ATOMIC|PR_ADDR, 101 udp_input, 0, udp_ctlinput, ip_ctloutput, 102 udp_usrreq, 103 udp_init 104}, 105{ SOCK_STREAM, &inetdomain, IPPROTO_TCP, 106 PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD, 107 tcp_input, 0, tcp_ctlinput, tcp_ctloutput, | 35 */ 36 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/kernel.h> 40#include <sys/socket.h> 41#include <sys/socketvar.h> 42#include <sys/domain.h> --- 57 unchanged lines hidden (view full) --- 100{ SOCK_DGRAM, &inetdomain, IPPROTO_UDP, PR_ATOMIC|PR_ADDR, 101 udp_input, 0, udp_ctlinput, ip_ctloutput, 102 udp_usrreq, 103 udp_init 104}, 105{ SOCK_STREAM, &inetdomain, IPPROTO_TCP, 106 PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD, 107 tcp_input, 0, tcp_ctlinput, tcp_ctloutput, |
108 tcp_usrreq, 109 tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain | 108 0, 109 tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain, 110 &tcp_usrreqs |
110}, 111{ SOCK_RAW, &inetdomain, IPPROTO_RAW, PR_ATOMIC|PR_ADDR, 112 rip_input, 0, 0, rip_ctloutput, 113 rip_usrreq, 114 0, 0, 0, 0, 115}, 116{ SOCK_RAW, &inetdomain, IPPROTO_ICMP, PR_ATOMIC|PR_ADDR, 117 icmp_input, 0, 0, rip_ctloutput, --- 83 unchanged lines hidden --- | 111}, 112{ SOCK_RAW, &inetdomain, IPPROTO_RAW, PR_ATOMIC|PR_ADDR, 113 rip_input, 0, 0, rip_ctloutput, 114 rip_usrreq, 115 0, 0, 0, 0, 116}, 117{ SOCK_RAW, &inetdomain, IPPROTO_ICMP, PR_ATOMIC|PR_ADDR, 118 icmp_input, 0, 0, rip_ctloutput, --- 83 unchanged lines hidden --- |