diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-15 09:12:12 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-15 09:12:12 +0000 |
commit | 56bfc8277df963893aaa832aa1697379d9af6e1c (patch) | |
tree | c398fa938c1abe07f2a5bc5a4ef2858079b26a2e /sys | |
parent | b54aaf22a3886bdbb4459315dbece7b3b1f1892c (diff) |
fix NetBSD PR#854.
allow to overwrite rfc1323 option in config file.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_subr.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 7c4d2183013..70840b1c3a8 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.3 1996/03/03 22:30:47 niklas Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.4 1996/05/15 09:12:11 mickey Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -65,7 +65,21 @@ /* patchable/settable parameters for tcp */ int tcp_mssdflt = TCP_MSS; int tcp_rttdflt = TCPTV_SRTTDFLT / PR_SLOWHZ; -int tcp_do_rfc1323 = 1; + +/* + * Configure kernel with options "TCP_DO_RFC1323=0" to disable RFC1323 stuff. + * This is a good idea over slow SLIP/PPP links, because the timestamp + * pretty well destroys the VJ compression (any packet with a timestamp + * different from the previous one can't be compressed), as well as adding + * more overhead. + * XXX "tcp_do_rfc1323" should be sysctl() changeable. + * XXX And it should be a settable per route characteristic (with this just + * used as the default). + */ +#ifndef TCP_DO_RFC1323 +#define TCP_DO_RFC1323 1 +#endif +int tcp_do_rfc1323 = TCP_DO_RFC1323; #ifndef TCBHASHSIZE #define TCBHASHSIZE 128 |