From 358a691990f737fe2336888f7f4324cedc212b10 Mon Sep 17 00:00:00 2001 From: markus Date: Tue, 10 Feb 2004 10:30:24 +0000 Subject: check TF_SIGNATURE when calculating the mss; add TCPOLEN_SIGLEN and avoid magic constants; ok henning@ --- sys/netinet/tcp_output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet/tcp_output.c') 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 */ -- cgit v1.2.3-59-g8ed1b