tcp: fix ntoh/hton mixup

No effect on code, but clears a mental wtf.
This commit is contained in:
Avi Kivity
2014-09-22 15:44:17 +03:00
parent 7f7a550f98
commit 969892d66e

View File

@@ -502,7 +502,7 @@ void tcp<InetTraits>::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);