diff options
author | 2004-02-10 10:30:24 +0000 | |
---|---|---|
committer | 2004-02-10 10:30:24 +0000 | |
commit | 358a691990f737fe2336888f7f4324cedc212b10 (patch) | |
tree | a0613ea82a4c36cf997bcc4551d342b6bf2cafa8 /sys/netinet/tcp_output.c | |
parent | Fix cnprobe() and cninit() prototypes. (diff) | |
download | wireguard-openbsd-358a691990f737fe2336888f7f4324cedc212b10.tar.xz wireguard-openbsd-358a691990f737fe2336888f7f4324cedc212b10.zip |
check TF_SIGNATURE when calculating the mss; add TCPOLEN_SIGLEN and
avoid magic constants; ok henning@
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index e3ae0307342..9a8f9fba4ec 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_output.c,v 1.63 2004/01/31 19:40:10 markus Exp $ */ +/* $OpenBSD: tcp_output.c,v 1.64 2004/02/10 10:30:24 markus Exp $ */ /* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */ /* @@ -616,14 +616,14 @@ send: *(bp++) = 0; } - optlen += TCPOLEN_SIGNATURE; /* Pad options list to the next 32 bit boundary and * terminate it. */ *bp++ = TCPOPT_NOP; *bp++ = TCPOPT_EOL; - optlen += 2; + + optlen += TCPOLEN_SIGLEN; } #endif /* TCP_SIGNATURE */ |