To my reading of the source code, it looks like when sending data over
the network flightsim converts the values to network byte ordering
(good). The code for doing the reverse has been commented out for some
reason (bad). Hence I don't think it could work except where host
ordering == network ordering. I am just in the process of
rebuilding&testing with the following patch:

 flightgear-1.0.0.orig/src/Network/native_ctrls.cxx
+++ flightgear-1.0.0/src/Network/native_ctrls.cxx
@@ -293,7 +293,7 @@
     int i;
 
     SGPropertyNode * node;
-/***************
+
     if ( net_byte_order ) {
         // convert from network byte order
         net->version = htonl(net->version);
@@ -350,7 +350,7 @@
         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." );

-- 
Version mismatch with raw controls packet format
https://bugs.launchpad.net/bugs/252474
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to