mirror of https://github.com/ipxe/ipxe.git
[tcp] Fix typos by changing ntohl() to htonl() where appropriate
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
parent
43450342a9
commit
73e3672468
|
@ -473,8 +473,8 @@ static int tcp_xmit ( struct tcp_connection *tcp, int force_send ) {
|
||||||
memset ( tsopt->nop, TCP_OPTION_NOP, sizeof ( tsopt->nop ) );
|
memset ( tsopt->nop, TCP_OPTION_NOP, sizeof ( tsopt->nop ) );
|
||||||
tsopt->tsopt.kind = TCP_OPTION_TS;
|
tsopt->tsopt.kind = TCP_OPTION_TS;
|
||||||
tsopt->tsopt.length = sizeof ( tsopt->tsopt );
|
tsopt->tsopt.length = sizeof ( tsopt->tsopt );
|
||||||
tsopt->tsopt.tsval = ntohl ( currticks() );
|
tsopt->tsopt.tsval = htonl ( currticks() );
|
||||||
tsopt->tsopt.tsecr = ntohl ( tcp->ts_recent );
|
tsopt->tsopt.tsecr = htonl ( tcp->ts_recent );
|
||||||
}
|
}
|
||||||
if ( ! ( flags & TCP_SYN ) )
|
if ( ! ( flags & TCP_SYN ) )
|
||||||
flags |= TCP_PSH;
|
flags |= TCP_PSH;
|
||||||
|
|
Loading…
Reference in New Issue