From: Michael Brown Date: Sat, 30 Jun 2012 17:59:09 +0000 (+0100) Subject: [tcp] Use a zero window size for RST packets X-Git-Tag: v1.20.1~1732 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49ac629821dedb8b27bb8f03e1e6e7d5d621ced6;p=thirdparty%2Fipxe.git [tcp] Use a zero window size for RST packets Signed-off-by: Michael Brown --- diff --git a/src/net/tcp.c b/src/net/tcp.c index b30fb1b0a..3cd357fca 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -714,7 +714,7 @@ static int tcp_xmit_reset ( struct tcp_connection *tcp, tcphdr->ack = in_tcphdr->seq; tcphdr->hlen = ( ( sizeof ( *tcphdr ) / 4 ) << 4 ); tcphdr->flags = ( TCP_RST | TCP_ACK ); - tcphdr->win = htons ( TCP_MAX_WINDOW_SIZE ); + tcphdr->win = htons ( 0 ); tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) ); /* Dump header */