Kernel patch update to 2.4.16.
[tcp_rto.git] / kernel-2.4.16.diff
1 diff -ru linux-2.4.16-cut-tcp_rto/include/linux/sysctl.h linux-2.4.16c/include/linux/sysctl.h
2 --- linux-2.4.16-cut-tcp_rto/include/linux/sysctl.h     Mon Dec  3 17:27:26 2001
3 +++ linux-2.4.16c/include/linux/sysctl.h        Tue Nov 27 02:01:14 2001
4 @@ -289,7 +289,8 @@
5         NET_TCP_ADV_WIN_SCALE=87,
6         NET_IPV4_NONLOCAL_BIND=88,
7         NET_IPV4_ICMP_RATELIMIT=89,
8 -       NET_IPV4_ICMP_RATEMASK=90
9 +       NET_IPV4_ICMP_RATEMASK=90,
10 +       NET_TCP_RTO_MAX=91,
11  };
12  
13  enum {
14 diff -ru linux-2.4.16-cut-tcp_rto/include/net/tcp.h linux-2.4.16c/include/net/tcp.h
15 --- linux-2.4.16-cut-tcp_rto/include/net/tcp.h  Wed Oct 17 21:09:41 2001
16 +++ linux-2.4.16c/include/net/tcp.h     Tue Nov 27 02:12:29 2001
17 @@ -331,7 +331,8 @@
18  #define TCP_DELACK_MIN 4U
19  #define TCP_ATO_MIN    4U
20  #endif
21 -#define TCP_RTO_MAX    ((unsigned)(120*HZ))
22 +#define TCP_RTO_MAX_init       ((unsigned)(120*HZ))
23 +extern unsigned TCP_RTO_MAX;
24  #define TCP_RTO_MIN    ((unsigned)(HZ/5))
25  #define TCP_TIMEOUT_INIT ((unsigned)(3*HZ))    /* RFC 1122 initial RTO value   */
26  
27 diff -ru linux-2.4.16-cut-tcp_rto/net/ipv4/Makefile linux-2.4.16c/net/ipv4/Makefile
28 --- linux-2.4.16-cut-tcp_rto/net/ipv4/Makefile  Sun Nov 11 17:56:25 2001
29 +++ linux-2.4.16c/net/ipv4/Makefile     Mon Dec  3 17:20:49 2001
30 @@ -9,7 +9,7 @@
31  
32  O_TARGET := ipv4.o
33  
34 -export-objs = ipip.o ip_gre.o
35 +export-objs = ipip.o ip_gre.o tcp_timer.o
36  
37  obj-y     := utils.o route.o inetpeer.o proc.o protocol.o \
38              ip_input.o ip_fragment.o ip_forward.o ip_options.o \
39 diff -ru linux-2.4.16-cut-tcp_rto/net/ipv4/sysctl_net_ipv4.c linux-2.4.16c/net/ipv4/sysctl_net_ipv4.c
40 --- linux-2.4.16-cut-tcp_rto/net/ipv4/sysctl_net_ipv4.c Sun Nov 11 17:56:25 2001
41 +++ linux-2.4.16c/net/ipv4/sysctl_net_ipv4.c    Fri Nov 16 23:24:32 2001
42 @@ -219,6 +219,8 @@
43          &sysctl_icmp_ratelimit, sizeof(int), 0644, NULL, &proc_dointvec},
44         {NET_IPV4_ICMP_RATEMASK, "icmp_ratemask",
45          &sysctl_icmp_ratemask, sizeof(int), 0644, NULL, &proc_dointvec},
46 +       {NET_TCP_RTO_MAX, "tcp_rto_max",
47 +        &TCP_RTO_MAX, sizeof(unsigned), 0644, NULL, &proc_dointvec},
48         {0}
49  };
50  
51 diff -ru linux-2.4.16-cut-tcp_rto/net/ipv4/tcp_timer.c linux-2.4.16c/net/ipv4/tcp_timer.c
52 --- linux-2.4.16-cut-tcp_rto/net/ipv4/tcp_timer.c       Wed Oct 17 21:09:42 2001
53 +++ linux-2.4.16c/net/ipv4/tcp_timer.c  Mon Dec  3 17:21:52 2001
54 @@ -21,6 +21,7 @@
55   */
56  
57  #include <net/tcp.h>
58 +#include <linux/module.h>
59  
60  int sysctl_tcp_syn_retries = TCP_SYN_RETRIES; 
61  int sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES; 
62 @@ -30,6 +31,8 @@
63  int sysctl_tcp_retries1 = TCP_RETR1;
64  int sysctl_tcp_retries2 = TCP_RETR2;
65  int sysctl_tcp_orphan_retries;
66 +unsigned TCP_RTO_MAX = TCP_RTO_MAX_init;
67 +EXPORT_SYMBOL(TCP_RTO_MAX);
68  
69  static void tcp_write_timer(unsigned long);
70  static void tcp_delack_timer(unsigned long);