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 * $FreeBSD: head/sys/netinet/in_proto.c 92723 2002-03-19 21:25:46Z alfred $
35 */
36
37#include "opt_ipdivert.h"
38#include "opt_ipx.h"
39#include "opt_ipsec.h"
40#include "opt_inet6.h"
41
42#include <sys/param.h>
--- 112 unchanged lines hidden (view full) ---
155},
156#endif /* IPSEC */
157{ SOCK_RAW, &inetdomain, IPPROTO_IPV4, PR_ATOMIC|PR_ADDR|PR_LASTHDR,
158 encap4_input, 0, 0, rip_ctloutput,
159 0,
160 encap_init, 0, 0, 0,
161 &rip_usrreqs
162},
163# ifdef INET6
164{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR|PR_LASTHDR,
165 encap4_input, 0, 0, rip_ctloutput,
166 0,
167 encap_init, 0, 0, 0,
168 &rip_usrreqs
169},
170#endif
--- 60 unchanged lines hidden ---
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 * $FreeBSD: head/sys/netinet/in_proto.c 92723 2002-03-19 21:25:46Z alfred $
35 */
36
37#include "opt_ipdivert.h"
38#include "opt_ipx.h"
39#include "opt_ipsec.h"
40#include "opt_inet6.h"
41
42#include <sys/param.h>
--- 112 unchanged lines hidden (view full) ---
155},
156#endif /* IPSEC */
157{ SOCK_RAW, &inetdomain, IPPROTO_IPV4, PR_ATOMIC|PR_ADDR|PR_LASTHDR,
158 encap4_input, 0, 0, rip_ctloutput,
159 0,
160 encap_init, 0, 0, 0,
161 &rip_usrreqs
162},
163# ifdef INET6
164{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR|PR_LASTHDR,
165 encap4_input, 0, 0, rip_ctloutput,
166 0,
167 encap_init, 0, 0, 0,
168 &rip_usrreqs
169},
170#endif
--- 60 unchanged lines hidden ---