]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tcp] Fix typos by changing ntohl() to htonl() where appropriate
authorMichael Brown <mcb30@ipxe.org>
Tue, 13 Jul 2010 16:18:48 +0000 (17:18 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 13 Jul 2010 16:19:37 +0000 (17:19 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp.c

index b424faa9c92f2d609fcd3475246af1233e7341e7..67aa39f213e2e1f1b3c64666342c7c3859b97915 100644 (file)
@@ -473,8 +473,8 @@ static int tcp_xmit ( struct tcp_connection *tcp, int force_send ) {
                memset ( tsopt->nop, TCP_OPTION_NOP, sizeof ( tsopt->nop ) );
                tsopt->tsopt.kind = TCP_OPTION_TS;
                tsopt->tsopt.length = sizeof ( tsopt->tsopt );
-               tsopt->tsopt.tsval = ntohl ( currticks() );
-               tsopt->tsopt.tsecr = ntohl ( tcp->ts_recent );
+               tsopt->tsopt.tsval = htonl ( currticks() );
+               tsopt->tsopt.tsecr = htonl ( tcp->ts_recent );
        }
        if ( ! ( flags & TCP_SYN ) )
                flags |= TCP_PSH;