in6_rmx.c (274175) | in6_rmx.c (274225) |
---|---|
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 --- 46 unchanged lines hidden (view full) --- 55 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 56 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 57 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 */ 61 62#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 --- 46 unchanged lines hidden (view full) --- 55 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 56 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 57 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 */ 61 62#include <sys/cdefs.h> |
63__FBSDID("$FreeBSD: head/sys/netinet6/in6_rmx.c 274175 2014-11-06 13:13:09Z melifaro $"); | 63__FBSDID("$FreeBSD: head/sys/netinet6/in6_rmx.c 274225 2014-11-07 09:39:05Z glebius $"); |
64 65#include <sys/param.h> 66#include <sys/systm.h> 67#include <sys/kernel.h> 68#include <sys/lock.h> 69#include <sys/sysctl.h> 70#include <sys/queue.h> 71#include <sys/socket.h> --- 107 unchanged lines hidden (view full) --- 179 return (ret); 180} 181 182SYSCTL_DECL(_net_inet6_ip6); 183 184static VNET_DEFINE(int, rtq_toomany6) = 128; 185 /* 128 cached routes is ``too many'' */ 186#define V_rtq_toomany6 VNET(rtq_toomany6) | 64 65#include <sys/param.h> 66#include <sys/systm.h> 67#include <sys/kernel.h> 68#include <sys/lock.h> 69#include <sys/sysctl.h> 70#include <sys/queue.h> 71#include <sys/socket.h> --- 107 unchanged lines hidden (view full) --- 179 return (ret); 180} 181 182SYSCTL_DECL(_net_inet6_ip6); 183 184static VNET_DEFINE(int, rtq_toomany6) = 128; 185 /* 128 cached routes is ``too many'' */ 186#define V_rtq_toomany6 VNET(rtq_toomany6) |
187SYSCTL_VNET_INT(_net_inet6_ip6, IPV6CTL_RTMAXCACHE, rtmaxcache, CTLFLAG_RW, | 187SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMAXCACHE, rtmaxcache, CTLFLAG_VNET | CTLFLAG_RW, |
188 &VNET_NAME(rtq_toomany6) , 0, ""); 189 190struct rtqk_arg { 191 struct radix_node_head *rnh; 192 int mode; 193 int updating; 194 int draining; 195 int killed; --- 146 unchanged lines hidden --- | 188 &VNET_NAME(rtq_toomany6) , 0, ""); 189 190struct rtqk_arg { 191 struct radix_node_head *rnh; 192 int mode; 193 int updating; 194 int draining; 195 int killed; --- 146 unchanged lines hidden --- |