[netperf-talk] nonsense results from windows with 2.4.x / trunk
Andrew Gallatin
gallatin at cs.duke.edu
Tue Jun 27 17:23:20 PDT 2006
I was trying to track down why netperf2.4 gives nonsense
results on windows when built with cygwin. I think I have
tracked it down to a glibc'ism in htond()/ntohd().
The problem seems to be that __BYTE_ORDER is declared on cygwin, but
__FLOAT_WORD_ORDER is not. This leads to falling into the /* Fixup
mixed endian floating point machines */ code, which causes the
problem. Plenty of other platforms (FreeBSD, Solaris, MacOSX) seem to
define neither, so they avoided this problem.
The attached patch seems to make netperf/netserver behave
on Windows.
Drew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin_fix.diff
Type: application/octet-stream
Size: 903 bytes
Desc: fix for netperf when built on cygwin
Url : http://www.netperf.org/pipermail/netperf-talk/attachments/20060627/860e7174/cygwin_fix.obj
More information about the netperf-talk
mailing list