tcp.c (f9d1fe9630b94007902987c39d19f04dc6256eac) tcp.c (2e6599cb899ba4b133f42cbf9d2b1883d2dc583a)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * Version: $Id: tcp.c,v 1.216 2002/02/01 22:01:04 davem Exp $

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

266
267#include <asm/uaccess.h>
268#include <asm/ioctls.h>
269
270int sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT;
271
272DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
273
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * Version: $Id: tcp.c,v 1.216 2002/02/01 22:01:04 davem Exp $

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

266
267#include <asm/uaccess.h>
268#include <asm/ioctls.h>
269
270int sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT;
271
272DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
273
274kmem_cache_t *tcp_openreq_cachep;
275kmem_cache_t *tcp_bucket_cachep;
276kmem_cache_t *tcp_timewait_cachep;
277
278atomic_t tcp_orphan_count = ATOMIC_INIT(0);
279
280int sysctl_tcp_mem[3];
281int sysctl_tcp_wmem[3] = { 4 * 1024, 16 * 1024, 128 * 1024 };
282int sysctl_tcp_rmem[3] = { 4 * 1024, 87380, 87380 * 2 };

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

2266{
2267 struct sk_buff *skb = NULL;
2268 int order, i;
2269
2270 if (sizeof(struct tcp_skb_cb) > sizeof(skb->cb))
2271 __skb_cb_too_small_for_tcp(sizeof(struct tcp_skb_cb),
2272 sizeof(skb->cb));
2273
274kmem_cache_t *tcp_bucket_cachep;
275kmem_cache_t *tcp_timewait_cachep;
276
277atomic_t tcp_orphan_count = ATOMIC_INIT(0);
278
279int sysctl_tcp_mem[3];
280int sysctl_tcp_wmem[3] = { 4 * 1024, 16 * 1024, 128 * 1024 };
281int sysctl_tcp_rmem[3] = { 4 * 1024, 87380, 87380 * 2 };

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

2265{
2266 struct sk_buff *skb = NULL;
2267 int order, i;
2268
2269 if (sizeof(struct tcp_skb_cb) > sizeof(skb->cb))
2270 __skb_cb_too_small_for_tcp(sizeof(struct tcp_skb_cb),
2271 sizeof(skb->cb));
2272
2274 tcp_openreq_cachep = kmem_cache_create("tcp_open_request",
2275 sizeof(struct open_request),
2276 0, SLAB_HWCACHE_ALIGN,
2277 NULL, NULL);
2278 if (!tcp_openreq_cachep)
2279 panic("tcp_init: Cannot alloc open_request cache.");
2280
2281 tcp_bucket_cachep = kmem_cache_create("tcp_bind_bucket",
2282 sizeof(struct tcp_bind_bucket),
2283 0, SLAB_HWCACHE_ALIGN,
2284 NULL, NULL);
2285 if (!tcp_bucket_cachep)
2286 panic("tcp_init: Cannot alloc tcp_bind_bucket cache.");
2287
2288 tcp_timewait_cachep = kmem_cache_create("tcp_tw_bucket",

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

2369}
2370
2371EXPORT_SYMBOL(tcp_accept);
2372EXPORT_SYMBOL(tcp_close);
2373EXPORT_SYMBOL(tcp_destroy_sock);
2374EXPORT_SYMBOL(tcp_disconnect);
2375EXPORT_SYMBOL(tcp_getsockopt);
2376EXPORT_SYMBOL(tcp_ioctl);
2273 tcp_bucket_cachep = kmem_cache_create("tcp_bind_bucket",
2274 sizeof(struct tcp_bind_bucket),
2275 0, SLAB_HWCACHE_ALIGN,
2276 NULL, NULL);
2277 if (!tcp_bucket_cachep)
2278 panic("tcp_init: Cannot alloc tcp_bind_bucket cache.");
2279
2280 tcp_timewait_cachep = kmem_cache_create("tcp_tw_bucket",

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

2361}
2362
2363EXPORT_SYMBOL(tcp_accept);
2364EXPORT_SYMBOL(tcp_close);
2365EXPORT_SYMBOL(tcp_destroy_sock);
2366EXPORT_SYMBOL(tcp_disconnect);
2367EXPORT_SYMBOL(tcp_getsockopt);
2368EXPORT_SYMBOL(tcp_ioctl);
2377EXPORT_SYMBOL(tcp_openreq_cachep);
2378EXPORT_SYMBOL(tcp_poll);
2379EXPORT_SYMBOL(tcp_read_sock);
2380EXPORT_SYMBOL(tcp_recvmsg);
2381EXPORT_SYMBOL(tcp_sendmsg);
2382EXPORT_SYMBOL(tcp_sendpage);
2383EXPORT_SYMBOL(tcp_setsockopt);
2384EXPORT_SYMBOL(tcp_shutdown);
2385EXPORT_SYMBOL(tcp_statistics);
2386EXPORT_SYMBOL(tcp_timewait_cachep);
2369EXPORT_SYMBOL(tcp_poll);
2370EXPORT_SYMBOL(tcp_read_sock);
2371EXPORT_SYMBOL(tcp_recvmsg);
2372EXPORT_SYMBOL(tcp_sendmsg);
2373EXPORT_SYMBOL(tcp_sendpage);
2374EXPORT_SYMBOL(tcp_setsockopt);
2375EXPORT_SYMBOL(tcp_shutdown);
2376EXPORT_SYMBOL(tcp_statistics);
2377EXPORT_SYMBOL(tcp_timewait_cachep);