Deleted Added
full compact
tcp_hostcache.c (185419) tcp_hostcache.c (185571)
1/*-
2 * Copyright (c) 2002 Andre Oppermann, Internet Business Solutions AG
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

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

58 */
59
60/*
61 * Many thanks to jlemon for basic structure of tcp_syncache which is being
62 * followed here.
63 */
64
65#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Andre Oppermann, Internet Business Solutions AG
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

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

58 */
59
60/*
61 * Many thanks to jlemon for basic structure of tcp_syncache which is being
62 * followed here.
63 */
64
65#include <sys/cdefs.h>
66__FBSDID("$FreeBSD: head/sys/netinet/tcp_hostcache.c 185419 2008-11-28 23:30:51Z zec $");
66__FBSDID("$FreeBSD: head/sys/netinet/tcp_hostcache.c 185571 2008-12-02 21:37:28Z bz $");
67
68#include "opt_inet6.h"
69
70#include <sys/param.h>
71#include <sys/systm.h>
72#include <sys/kernel.h>
73#include <sys/lock.h>
74#include <sys/mutex.h>

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

87#include <netinet/in_pcb.h>
88#include <netinet/ip_var.h>
89#ifdef INET6
90#include <netinet/ip6.h>
91#include <netinet6/ip6_var.h>
92#endif
93#include <netinet/tcp.h>
94#include <netinet/tcp_var.h>
67
68#include "opt_inet6.h"
69
70#include <sys/param.h>
71#include <sys/systm.h>
72#include <sys/kernel.h>
73#include <sys/lock.h>
74#include <sys/mutex.h>

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

87#include <netinet/in_pcb.h>
88#include <netinet/ip_var.h>
89#ifdef INET6
90#include <netinet/ip6.h>
91#include <netinet6/ip6_var.h>
92#endif
93#include <netinet/tcp.h>
94#include <netinet/tcp_var.h>
95#include <netinet/tcp_hostcache.h>
96#include <netinet/vinet.h>
95#ifdef INET6
96#include <netinet6/tcp6_var.h>
97#endif
98
99#include <vm/uma.h>
100
101/* Arbitrary values */
102#define TCP_HOSTCACHE_HASHSIZE 512

--- 561 unchanged lines hidden ---
97#ifdef INET6
98#include <netinet6/tcp6_var.h>
99#endif
100
101#include <vm/uma.h>
102
103/* Arbitrary values */
104#define TCP_HOSTCACHE_HASHSIZE 512

--- 561 unchanged lines hidden ---