david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[tcp] Use a zero window size for RST packets

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-06-30 18:59:09 +01:00
parent a5c016d93e
commit 49ac629821
1 changed files with 1 additions and 1 deletions

View 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 */