1/* $NetBSD: if_gre.c,v 1.49 2003/12/11 00:22:29 itojun Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.c 152242 2005-11-09 13:29:16Z ru $ */
3
4/*-
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *
--- 107 unchanged lines hidden (view full) ---
118
119#ifdef INET
120extern struct domain inetdomain;
121static const struct protosw in_gre_protosw = {
122 .pr_type = SOCK_RAW,
123 .pr_domain = &inetdomain,
124 .pr_protocol = IPPROTO_GRE,
125 .pr_flags = PR_ATOMIC|PR_ADDR,
126 .pr_input = (pr_input_t *)gre_input,
127 .pr_output = (pr_output_t *)rip_output,
128 .pr_ctlinput = rip_ctlinput,
129 .pr_ctloutput = rip_ctloutput,
130 .pr_usrreqs = &rip_usrreqs
131};
132static const struct protosw in_mobile_protosw = {
133 .pr_type = SOCK_RAW,
134 .pr_domain = &inetdomain,
135 .pr_protocol = IPPROTO_MOBILE,
136 .pr_flags = PR_ATOMIC|PR_ADDR,
137 .pr_input = (pr_input_t *)gre_mobile_input,
138 .pr_output = (pr_output_t *)rip_output,
139 .pr_ctlinput = rip_ctlinput,
140 .pr_ctloutput = rip_ctloutput,
141 .pr_usrreqs = &rip_usrreqs
142};
143#endif
144
145SYSCTL_DECL(_net_link);
--- 662 unchanged lines hidden ---
2/* $FreeBSD: head/sys/net/if_gre.c 152242 2005-11-09 13:29:16Z ru $ */
3
4/*-
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *
--- 107 unchanged lines hidden (view full) ---
118
119#ifdef INET
120extern struct domain inetdomain;
121static const struct protosw in_gre_protosw = {
122 .pr_type = SOCK_RAW,
123 .pr_domain = &inetdomain,
124 .pr_protocol = IPPROTO_GRE,
125 .pr_flags = PR_ATOMIC|PR_ADDR,
126 .pr_input = (pr_input_t *)gre_input,
127 .pr_output = (pr_output_t *)rip_output,
128 .pr_ctlinput = rip_ctlinput,
129 .pr_ctloutput = rip_ctloutput,
130 .pr_usrreqs = &rip_usrreqs
131};
132static const struct protosw in_mobile_protosw = {
133 .pr_type = SOCK_RAW,
134 .pr_domain = &inetdomain,
135 .pr_protocol = IPPROTO_MOBILE,
136 .pr_flags = PR_ATOMIC|PR_ADDR,
137 .pr_input = (pr_input_t *)gre_mobile_input,
138 .pr_output = (pr_output_t *)rip_output,
139 .pr_ctlinput = rip_ctlinput,
140 .pr_ctloutput = rip_ctloutput,
141 .pr_usrreqs = &rip_usrreqs
142};
143#endif
144
145SYSCTL_DECL(_net_link);
--- 662 unchanged lines hidden ---