]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tcp] Use a zero window size for RST packets
authorMichael Brown <mcb30@ipxe.org>
Sat, 30 Jun 2012 17:59:09 +0000 (18:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 30 Jun 2012 18:00:05 +0000 (19:00 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp.c

index b30fb1b0a49c230543412625031d0d76a0e900e3..3cd357fcae6853a2a7d0eed6f507e840b6686082 100644 (file)
@@ -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 */