tcp_timewait.c (44e33a075818146eb289c39c3ca2817f54517c9f) | tcp_timewait.c (97021c246444967a8f441a90076fb4f7ef22fb3a) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 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 --- 136 unchanged lines hidden (view full) --- 145 } 146 return (error); 147} 148 149SYSCTL_PROC(_net_inet_tcp, OID_AUTO, maxtcptw, CTLTYPE_INT|CTLFLAG_RW, 150 &maxtcptw, 0, sysctl_maxtcptw, "IU", 151 "Maximum number of compressed TCP TIME_WAIT entries"); 152 | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 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 --- 136 unchanged lines hidden (view full) --- 145 } 146 return (error); 147} 148 149SYSCTL_PROC(_net_inet_tcp, OID_AUTO, maxtcptw, CTLTYPE_INT|CTLFLAG_RW, 150 &maxtcptw, 0, sysctl_maxtcptw, "IU", 151 "Maximum number of compressed TCP TIME_WAIT entries"); 152 |
153SYSCTL_INT(_net_inet_tcp, OID_AUTO, nolocaltimewait, CTLFLAG_RW, 154 &nolocaltimewait, 0, | 153SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_tcp, OID_AUTO, nolocaltimewait, 154 CTLFLAG_RW, nolocaltimewait, 0, |
155 "Do not create compressed TCP TIME_WAIT entries for local connections"); 156 157void 158tcp_tw_zone_change(void) 159{ 160 161 if (maxtcptw == 0) 162 uma_zone_set_max(tcptw_zone, tcptw_auto_size()); --- 504 unchanged lines hidden --- | 155 "Do not create compressed TCP TIME_WAIT entries for local connections"); 156 157void 158tcp_tw_zone_change(void) 159{ 160 161 if (maxtcptw == 0) 162 uma_zone_set_max(tcptw_zone, tcptw_auto_size()); --- 504 unchanged lines hidden --- |