Deleted Added
full compact
route.c (350865) route.c (359652)
1/*-
2 * Copyright (c) 1980, 1986, 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 * @(#)route.c 8.3.1.1 (Berkeley) 2/23/95
1/*-
2 * Copyright (c) 1980, 1986, 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 * @(#)route.c 8.3.1.1 (Berkeley) 2/23/95
30 * $FreeBSD: stable/11/sys/net/route.c 350865 2019-08-11 20:34:24Z gnn $
30 * $FreeBSD: stable/11/sys/net/route.c 359652 2020-04-06 07:16:31Z hselasky $
31 */
32/************************************************************************
33 * Note: In this file a 'fib' is a "forwarding information base" *
34 * Which is the new name for an in kernel routing (next hop) table. *
35 ***********************************************************************/
36
37#include "opt_inet.h"
38#include "opt_inet6.h"

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

222{
223
224 /* whack the tunable ints into line. */
225 if (rt_numfibs > RT_MAXFIBS)
226 rt_numfibs = RT_MAXFIBS;
227 if (rt_numfibs == 0)
228 rt_numfibs = 1;
229}
31 */
32/************************************************************************
33 * Note: In this file a 'fib' is a "forwarding information base" *
34 * Which is the new name for an in kernel routing (next hop) table. *
35 ***********************************************************************/
36
37#include "opt_inet.h"
38#include "opt_inet6.h"

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

222{
223
224 /* whack the tunable ints into line. */
225 if (rt_numfibs > RT_MAXFIBS)
226 rt_numfibs = RT_MAXFIBS;
227 if (rt_numfibs == 0)
228 rt_numfibs = 1;
229}
230SYSINIT(route_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init, 0);
230SYSINIT(route_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init, NULL);
231
232static int
233rtentry_zinit(void *mem, int size, int how)
234{
235 struct rtentry *rt = mem;
236
237 rt->rt_pksent = counter_u64_alloc(how);
238 if (rt->rt_pksent == NULL)

--- 2090 unchanged lines hidden ---
231
232static int
233rtentry_zinit(void *mem, int size, int how)
234{
235 struct rtentry *rt = mem;
236
237 rt->rt_pksent = counter_u64_alloc(how);
238 if (rt->rt_pksent == NULL)

--- 2090 unchanged lines hidden ---