mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 10:50:28 +03:00
[tcp] Use a zero window size for RST packets
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -714,7 +714,7 @@ static int tcp_xmit_reset ( struct tcp_connection *tcp,
|
|||||||
tcphdr->ack = in_tcphdr->seq;
|
tcphdr->ack = in_tcphdr->seq;
|
||||||
tcphdr->hlen = ( ( sizeof ( *tcphdr ) / 4 ) << 4 );
|
tcphdr->hlen = ( ( sizeof ( *tcphdr ) / 4 ) << 4 );
|
||||||
tcphdr->flags = ( TCP_RST | TCP_ACK );
|
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 ) );
|
tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
|
||||||
|
|
||||||
/* Dump header */
|
/* Dump header */
|
||||||
|
|||||||
Reference in New Issue
Block a user