Deleted Added
full compact
in6_rmx.c (185088) in6_rmx.c (185348)
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

68 * requested.
69 * 2) When such routes lose all their references, it arranges for them
70 * to be deleted in some random collection of circumstances, so that
71 * a large quantity of stale routing data is not kept in kernel memory
72 * indefinitely. See in6_rtqtimo() below for the exact mechanism.
73 */
74
75#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

68 * requested.
69 * 2) When such routes lose all their references, it arranges for them
70 * to be deleted in some random collection of circumstances, so that
71 * a large quantity of stale routing data is not kept in kernel memory
72 * indefinitely. See in6_rtqtimo() below for the exact mechanism.
73 */
74
75#include <sys/cdefs.h>
76__FBSDID("$FreeBSD: head/sys/netinet6/in6_rmx.c 185088 2008-11-19 09:39:34Z zec $");
76__FBSDID("$FreeBSD: head/sys/netinet6/in6_rmx.c 185348 2008-11-26 22:32:07Z zec $");
77
78#include <sys/param.h>
79#include <sys/systm.h>
80#include <sys/kernel.h>
81#include <sys/sysctl.h>
82#include <sys/queue.h>
83#include <sys/socket.h>
84#include <sys/socketvar.h>

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

220SYSCTL_DECL(_net_inet6_ip6);
221
222#ifdef VIMAGE_GLOBALS
223static int rtq_reallyold6;
224static int rtq_minreallyold6;
225static int rtq_toomany6;
226#endif
227
77
78#include <sys/param.h>
79#include <sys/systm.h>
80#include <sys/kernel.h>
81#include <sys/sysctl.h>
82#include <sys/queue.h>
83#include <sys/socket.h>
84#include <sys/socketvar.h>

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

220SYSCTL_DECL(_net_inet6_ip6);
221
222#ifdef VIMAGE_GLOBALS
223static int rtq_reallyold6;
224static int rtq_minreallyold6;
225static int rtq_toomany6;
226#endif
227
228SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTEXPIRE, rtexpire,
229 CTLFLAG_RW, &rtq_reallyold6 , 0, "");
228SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_RTEXPIRE,
229 rtexpire, CTLFLAG_RW, rtq_reallyold6 , 0, "");
230
230
231SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMINEXPIRE, rtminexpire,
232 CTLFLAG_RW, &rtq_minreallyold6 , 0, "");
231SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_RTMINEXPIRE,
232 rtminexpire, CTLFLAG_RW, rtq_minreallyold6 , 0, "");
233
233
234SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMAXCACHE, rtmaxcache,
235 CTLFLAG_RW, &rtq_toomany6 , 0, "");
234SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_RTMAXCACHE,
235 rtmaxcache, CTLFLAG_RW, rtq_toomany6 , 0, "");
236
237
238/*
239 * On last reference drop, mark the route as belong to us so that it can be
240 * timed out.
241 */
242static void
243in6_clsroute(struct radix_node *rn, struct radix_node_head *head)

--- 256 unchanged lines hidden ---
236
237
238/*
239 * On last reference drop, mark the route as belong to us so that it can be
240 * timed out.
241 */
242static void
243in6_clsroute(struct radix_node *rn, struct radix_node_head *head)

--- 256 unchanged lines hidden ---