Deleted Added
full compact
tcp_syncache.c (92275) tcp_syncache.c (92654)
1/*-
2 * Copyright (c) 2001 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Jonathan Lemon
6 * and NAI Labs, the Security Research Division of Network Associates, Inc.
7 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (c) 2001 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Jonathan Lemon
6 * and NAI Labs, the Security Research Division of Network Associates, Inc.
7 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/netinet/tcp_syncache.c 92275 2002-03-14 16:53:39Z rwatson $
34 * $FreeBSD: head/sys/netinet/tcp_syncache.c 92654 2002-03-19 09:11:49Z jeff $
35 */
36
37#include "opt_inet6.h"
38#include "opt_ipsec.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

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

109#define SYNCACHE_MAXREXMTS 3
110
111/* Arbitrary values */
112#define TCP_SYNCACHE_HASHSIZE 512
113#define TCP_SYNCACHE_BUCKETLIMIT 30
114
115struct tcp_syncache {
116 struct syncache_head *hashbase;
35 */
36
37#include "opt_inet6.h"
38#include "opt_ipsec.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

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

109#define SYNCACHE_MAXREXMTS 3
110
111/* Arbitrary values */
112#define TCP_SYNCACHE_HASHSIZE 512
113#define TCP_SYNCACHE_BUCKETLIMIT 30
114
115struct tcp_syncache {
116 struct syncache_head *hashbase;
117 struct vm_zone *zone;
117 vm_zone_t zone;
118 u_int hashsize;
119 u_int hashmask;
120 u_int bucket_limit;
121 u_int cache_count;
122 u_int cache_limit;
123 u_int rexmt_limit;
124 u_int hash_secret;
125 u_int next_reseed;

--- 1224 unchanged lines hidden ---
118 u_int hashsize;
119 u_int hashmask;
120 u_int bucket_limit;
121 u_int cache_count;
122 u_int cache_limit;
123 u_int rexmt_limit;
124 u_int hash_secret;
125 u_int next_reseed;

--- 1224 unchanged lines hidden ---