From 969892d66eccb60a94ec5d3be4f3060dc249719c Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 22 Sep 2014 15:44:17 +0300 Subject: [PATCH] tcp: fix ntoh/hton mixup No effect on code, but clears a mental wtf. --- net/tcp.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tcp.hh b/net/tcp.hh index 736eb4eb20..1cb982dd49 100644 --- a/net/tcp.hh +++ b/net/tcp.hh @@ -502,7 +502,7 @@ void tcp::tcb::output() { th->f_fin = _snd.closed && _snd.unsent_len == 0; _local_fin_sent |= th->f_fin; - ntoh(*th); + hton(*th); checksummer csum; InetTraits::pseudo_header_checksum(csum, _local_ip, _foreign_ip, sizeof(*th) + len);