From: curt Date: Mon, 21 Jan 2008 19:11:32 +0000 (+0000) Subject: Packet should be formated in network byte order. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98d940a790312be06bfb21d95e59ca69d2b24879;p=flightgear.git Packet should be formated in network byte order. --- diff --git a/src/Network/native_ctrls.cxx b/src/Network/native_ctrls.cxx index d0ef99cef..b79d711fb 100644 --- a/src/Network/native_ctrls.cxx +++ b/src/Network/native_ctrls.cxx @@ -293,7 +293,7 @@ void FGNetCtrls2Props( FGNetCtrls *net, bool honor_freezes, int i; SGPropertyNode * node; -/*************** + if ( net_byte_order ) { // convert from network byte order net->version = htonl(net->version); @@ -350,7 +350,7 @@ void FGNetCtrls2Props( FGNetCtrls *net, bool honor_freezes, net->speedup = htonl(net->speedup); net->freeze = htonl(net->freeze); } -*************/ + if ( net->version != FG_NET_CTRLS_VERSION ) { SG_LOG( SG_IO, SG_ALERT, "Version mismatch with raw controls packet format." );