Bugzilla – Bug 448
V4Ping Application Sends uint32_t Data in Host Order
Last modified: 2008-12-16 19:53:47 EST
Sending 32-bit ints as ping data causes regression tests to fail on ppc. void V4Ping::StartApplication (void) { ... uint32_t data[4]; data[0] = GetNode ()->GetId (); data[1] = GetApplicationId (); int64_t now = Simulator::Now ().GetTimeStep (); data[2] = now & 0xffffffff; now >>= 32; data[3] = now & 0xffffffff; ... } For those with enquiring minds, this is not reported on the nightly regression tests due to another problem (for which Tom will file a separate bug). Regression testing for machine: darwin-ppc Darwin 8.11.0 Power Macintosh powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370) ----------------------------- SUCCESS: waf -d debug configure; ./waf --regression passed on darwin-ppc SUCCESS: waf -d optimized configure; ./waf --regression passed on darwin-ppc
Created attachment 337 [details] Proposed patch to fix bug. Patch to send ping data in pcap version of "network" byte order (little endian).
Raj, do you approve?
Looks good to me.