diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-07-13 17:18:48 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-07-13 17:19:37 +0100 |
commit | 73e3672468d1e71768783bb3ddccf44bc64da3e8 (patch) | |
tree | bd0b13e2c0003aa28d7d79a12038474df4d47411 /src/net/tcp.c | |
parent | 43450342a9d81dc0af4dff55e53d61066f6f717a (diff) | |
download | ipxe-73e3672468d1e71768783bb3ddccf44bc64da3e8.tar.gz |
[tcp] Fix typos by changing ntohl() to htonl() where appropriate
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp.c')
-rw-r--r-- | src/net/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c index b424faa9..67aa39f2 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -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; |