Deleted Added
full compact
rtsock.c (178888) rtsock.c (180239)
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 178888 2008-05-09 23:03:00Z julian $
30 * $FreeBSD: head/sys/net/rtsock.c 180239 2008-07-04 00:21:38Z rwatson $
31 */
32#include "opt_sctp.h"
33#include "opt_mpath.h"
34
35#include <sys/param.h>
36#include <sys/domain.h>
37#include <sys/kernel.h>
38#include <sys/jail.h>

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

112rts_init(void)
113{
114 int tmp;
115
116 rtsintrq.ifq_maxlen = 256;
117 if (TUNABLE_INT_FETCH("net.route.netisr_maxqlen", &tmp))
118 rtsintrq.ifq_maxlen = tmp;
119 mtx_init(&rtsintrq.ifq_mtx, "rts_inq", NULL, MTX_DEF);
31 */
32#include "opt_sctp.h"
33#include "opt_mpath.h"
34
35#include <sys/param.h>
36#include <sys/domain.h>
37#include <sys/kernel.h>
38#include <sys/jail.h>

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

112rts_init(void)
113{
114 int tmp;
115
116 rtsintrq.ifq_maxlen = 256;
117 if (TUNABLE_INT_FETCH("net.route.netisr_maxqlen", &tmp))
118 rtsintrq.ifq_maxlen = tmp;
119 mtx_init(&rtsintrq.ifq_mtx, "rts_inq", NULL, MTX_DEF);
120 netisr_register(NETISR_ROUTE, rts_input, &rtsintrq, NETISR_MPSAFE);
120 netisr_register(NETISR_ROUTE, rts_input, &rtsintrq, 0);
121}
122SYSINIT(rtsock, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rts_init, 0);
123
124static void
125rts_input(struct mbuf *m)
126{
127 struct sockproto route_proto;
128 unsigned short *family;

--- 1206 unchanged lines hidden ---
121}
122SYSINIT(rtsock, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rts_init, 0);
123
124static void
125rts_input(struct mbuf *m)
126{
127 struct sockproto route_proto;
128 unsigned short *family;

--- 1206 unchanged lines hidden ---