mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 19:49:45 +03:00
[tcp] Set PSH flag only on packets containing data
Suggested-by: Yelena Kadach <klenusik@hotmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -522,7 +522,7 @@ static int tcp_xmit ( struct tcp_connection *tcp ) {
|
|||||||
tsopt->tsopt.tsval = htonl ( currticks() );
|
tsopt->tsopt.tsval = htonl ( currticks() );
|
||||||
tsopt->tsopt.tsecr = htonl ( tcp->ts_recent );
|
tsopt->tsopt.tsecr = htonl ( tcp->ts_recent );
|
||||||
}
|
}
|
||||||
if ( ! ( flags & TCP_SYN ) )
|
if ( len != 0 )
|
||||||
flags |= TCP_PSH;
|
flags |= TCP_PSH;
|
||||||
tcphdr = iob_push ( iobuf, sizeof ( *tcphdr ) );
|
tcphdr = iob_push ( iobuf, sizeof ( *tcphdr ) );
|
||||||
memset ( tcphdr, 0, sizeof ( *tcphdr ) );
|
memset ( tcphdr, 0, sizeof ( *tcphdr ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user