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 103026 2002-09-06 17:12:50Z sobomax $ |
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{ SOCK_RAW, &inetdomain, IPPROTO_MOBILE, PR_ATOMIC|PR_ADDR|PR_LASTHDR, 164 encap4_input, 0, 0, rip_ctloutput, 165 0, 166 encap_init, 0, 0, 0, 167 &rip_usrreqs 168}, 169{ SOCK_RAW, &inetdomain, IPPROTO_GRE, PR_ATOMIC|PR_ADDR|PR_LASTHDR, 170 encap4_input, 0, 0, rip_ctloutput, 171 0, 172 encap_init, 0, 0, 0, 173 &rip_usrreqs 174}, |
175# ifdef INET6 176{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR|PR_LASTHDR, 177 encap4_input, 0, 0, rip_ctloutput, 178 0, 179 encap_init, 0, 0, 0, 180 &rip_usrreqs 181}, 182#endif --- 60 unchanged lines hidden --- |