diff options
author | 2004-10-28 19:22:52 +0000 | |
---|---|---|
committer | 2004-10-28 19:22:52 +0000 | |
commit | 64c77b9332c5892d33899e1580df890d2afb4ad0 (patch) | |
tree | 5f7d36834172b8224379283800f9e6cf86efbd41 /sys/netinet/tcp_output.c | |
parent | need to map the regs though lasi used to save us before (diff) | |
download | wireguard-openbsd-64c77b9332c5892d33899e1580df890d2afb4ad0.tar.xz wireguard-openbsd-64c77b9332c5892d33899e1580df890d2afb4ad0.zip |
Modulate tcp_now by a random amount on a per-connection basis.
ok markus@ frantzen@
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 3d738e01fa5..2c8fe2236b9 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_output.c,v 1.73 2004/10/06 14:33:07 markus Exp $ */ +/* $OpenBSD: tcp_output.c,v 1.74 2004/10/28 19:22:52 mcbride Exp $ */ /* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */ /* @@ -594,7 +594,7 @@ send: /* Form timestamp option as shown in appendix A of RFC 1323. */ *lp++ = htonl(TCPOPT_TSTAMP_HDR); - *lp++ = htonl(tcp_now); + *lp++ = htonl(tcp_now + tp->ts_modulate); *lp = htonl(tp->ts_recent); optlen += TCPOLEN_TSTAMP_APPA; } |