Deleted Added
full compact
rtsock.c (149452) rtsock.c (149848)
1/*-
2 * Copyright (c) 1988, 1991, 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
1/*-
2 * Copyright (c) 1988, 1991, 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
30 * $FreeBSD: head/sys/net/rtsock.c 149452 2005-08-25 13:30:04Z rwatson $
30 * $FreeBSD: head/sys/net/rtsock.c 149848 2005-09-07 10:06:14Z obrien $
31 */
32
33#include <sys/param.h>
34#include <sys/domain.h>
35#include <sys/kernel.h>
36#include <sys/jail.h>
37#include <sys/malloc.h>
38#include <sys/mbuf.h>

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

1249}
1250
1251SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock, "");
1252
1253/*
1254 * Definitions of protocols supported in the ROUTE domain.
1255 */
1256
31 */
32
33#include <sys/param.h>
34#include <sys/domain.h>
35#include <sys/kernel.h>
36#include <sys/jail.h>
37#include <sys/malloc.h>
38#include <sys/mbuf.h>

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

1249}
1250
1251SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock, "");
1252
1253/*
1254 * Definitions of protocols supported in the ROUTE domain.
1255 */
1256
1257extern struct domain routedomain; /* or at least forward */
1257static struct domain routedomain; /* or at least forward */
1258
1259static struct protosw routesw[] = {
1260{ SOCK_RAW, &routedomain, 0, PR_ATOMIC|PR_ADDR,
1261 0, route_output, raw_ctlinput, 0,
1262 0,
1263 raw_init, 0, 0, 0,
1264 &route_usrreqs
1265}
1266};
1267
1268static struct domain routedomain =
1269 { PF_ROUTE, "route", 0, 0, 0,
1270 routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])] };
1271
1272DOMAIN_SET(route);
1258
1259static struct protosw routesw[] = {
1260{ SOCK_RAW, &routedomain, 0, PR_ATOMIC|PR_ADDR,
1261 0, route_output, raw_ctlinput, 0,
1262 0,
1263 raw_init, 0, 0, 0,
1264 &route_usrreqs
1265}
1266};
1267
1268static struct domain routedomain =
1269 { PF_ROUTE, "route", 0, 0, 0,
1270 routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])] };
1271
1272DOMAIN_SET(route);