summaryrefslogtreecommitdiffstats
path: root/src/net/tcp.c
diff options
context:
space:
mode:
authorMichael Brown2012-06-30 19:59:09 +0200
committerMichael Brown2012-06-30 20:00:05 +0200
commit49ac629821dedb8b27bb8f03e1e6e7d5d621ced6 (patch)
tree2e3f4c3066ea81a1703a78a237af533c4e396e93 /src/net/tcp.c
parent[iobuf] Relax alignment requirement for small I/O buffers (diff)
downloadipxe-49ac629821dedb8b27bb8f03e1e6e7d5d621ced6.tar.gz
ipxe-49ac629821dedb8b27bb8f03e1e6e7d5d621ced6.tar.xz
ipxe-49ac629821dedb8b27bb8f03e1e6e7d5d621ced6.zip
[tcp] Use a zero window size for RST packets
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp.c')
-rw-r--r--src/net/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c
index b30fb1b0..3cd357fc 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 */