1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2007-2009 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)in_pcb.c 8.4 (Berkeley) 5/24/95 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/netinet/in_pcb.c 215701 2010-11-22 19:32:54Z dim $"); |
36 37#include "opt_ddb.h" 38#include "opt_ipsec.h" 39#include "opt_inet6.h" 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/malloc.h> --- 59 unchanged lines hidden (view full) --- 103VNET_DEFINE(int, ipport_reservedlow); 104 105/* Variables dealing with random ephemeral port allocation. */ 106VNET_DEFINE(int, ipport_randomized) = 1; /* user controlled via sysctl */ 107VNET_DEFINE(int, ipport_randomcps) = 10; /* user controlled via sysctl */ 108VNET_DEFINE(int, ipport_randomtime) = 45; /* user controlled via sysctl */ 109VNET_DEFINE(int, ipport_stoprandom); /* toggled by ipport_tick */ 110VNET_DEFINE(int, ipport_tcpallocs); |
111static VNET_DEFINE(int, ipport_tcplastcount); |
112 113#define V_ipport_tcplastcount VNET(ipport_tcplastcount) 114 115#define RANGECHK(var, min, max) \ 116 if ((var) < (min)) { (var) = (min); } \ 117 else if ((var) > (max)) { (var) = (max); } 118 119static void in_pcbremlists(struct inpcb *inp); --- 1878 unchanged lines hidden --- |