patch-2.1.8 linux/net/ipv4/sysctl_net_ipv4.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/raw.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Sun Nov 3 11:04:44 1996
- Orig file:
v2.1.7/linux/net/ipv4/sysctl_net_ipv4.c
- Orig date:
Mon Jun 3 14:07:09 1996
diff -u --recursive --new-file v2.1.7/linux/net/ipv4/sysctl_net_ipv4.c linux/net/ipv4/sysctl_net_ipv4.c
@@ -7,6 +7,20 @@
#include <linux/mm.h>
#include <linux/sysctl.h>
+#include <net/tcp.h>
+
+/*
+ * TCP configuration parameters
+ */
+
+#define TCP_PMTU_DISC 0x00000001 /* perform PMTU discovery */
+#define TCP_CONG_AVOID 0x00000002 /* congestion avoidance algorithm */
+#define TCP_DELAY_ACKS 0x00000003 /* delayed ack stategy */
+
+#if 0
+static int boolean_min = 0;
+static int boolean_max = 1;
+#endif
/* From arp.c */
extern int sysctl_arp_res_time;
@@ -17,6 +31,8 @@
extern int sysctl_arp_confirm_interval;
extern int sysctl_arp_confirm_timeout;
+extern int sysctl_tcp_vegas_cong_avoidance;
+
ctl_table ipv4_table[] = {
{NET_IPV4_ARP_RES_TIME, "arp_res_time",
&sysctl_arp_res_time, sizeof(int), 0644, NULL, &proc_dointvec},
@@ -34,5 +50,15 @@
{NET_IPV4_ARP_CONFIRM_TIMEOUT, "arp_confirm_timeout",
&sysctl_arp_confirm_timeout, sizeof(int), 0644, NULL,
&proc_dointvec},
+#if 0
+ {TCP_PMTU_DISC, "tcp_pmtu_discovery",
+ &ipv4_pmtu_discovery, sizeof(int), 644,
+ NULL, &proc_dointvec, &sysctl_intvec_minmax,
+ &boolean_min, &boolean_max},
+#endif
+
+ {NET_IPV4_TCP_VEGAS_CONG_AVOID, "tcp_vegas_cong_avoid",
+ &sysctl_tcp_vegas_cong_avoidance, sizeof(int), 0644,
+ NULL, &proc_dointvec },
{0}
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov