Thanks- <div>I used the netserver.c you supplied and got the exact same results after running netserver and then netperf on the same machine. </div><div><br></div><div>I ran "netserver -v 2 -d" and "netperf" (no options)</div>
<div><br></div><div>The small netperf.debug file in C:\Temp\ is </div><div><div><div>C:\Temp>type netperf.debug</div><div><b>Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC</b></div><div><b>nfo returned the following for host '0.0.0.0' port '12865' family AF_UNSPEC</b></div>
<div><b> cannonical name: '(nil)'</b></div><div><b> flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16</b></div><div><b> sa_family: AF_INET sadata: 50 65 0 0 0 0</b></div>
<div><b>Starting netserver at port 12865</b></div><div><b>CreateProcessfailure: : The system cannot find the file specified.</b></div><div><b><br></b></div><div>Trying to figure out how to capture loopback traffic on XP with Wireshark. Not easy. </div>
<div><br></div><div>Will try to run on two different servers.</div><div><br></div><div>If anyone has 2.4.5 running on XP SP 2 or 2K3 binaries appreciated.</div><div><br></div><div>Thanks - kevin</div></div></div><br><div class="gmail_quote">
On Wed, Aug 19, 2009 at 2:44 PM, Rick Jones <span dir="ltr"><<a href="mailto:rick.jones2@hp.com">rick.jones2@hp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Kevin Murphy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1) Downloaded sources for netperf 2.4.5<br>
2) Downloaded WDK 7<br>
3) Made changes to netserver.c per July 23, 2009 email. Mostly around cmdline parsing<br>
</blockquote>
<br></div>
Good, just to be paranoid, I'll attach the top-of-trunk netserver.c for comparison.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
4) Started WDK - x86 free build environment<br>
5) Built netserver<br>
<br>
*Launching OACR monitor<br>
*<br>
*C:\WinDDK\7600.16385.0>cd \netperf-2.4.5\src\NetServerDir*<br>
*<br>
*<br>
*C:\netperf-2.4.5\src\NetServerDir>build /c*<br>
*BUILD: Compile and Link for x86*<br>
*BUILD: Loading c:\winddk\7600.16385.0\build.dat...*<br>
*BUILD: Computing Include file dependencies:*<br>
*BUILD: Start time: Wed Aug 19 14:05:43 2009*<br>
*BUILD: Examining c:\netperf-2.4.5\src\netserverdir directory for<br>
files to compile.*<br>
*BUILD: Saving c:\winddk\7600.16385.0\build.dat...*<br>
*BUILD: Compiling and Linking c:\netperf-2.4.5\src\netserverdir<br>
directory*<br>
*Configuring OACR for 'root:x86fre' - <OACR on>*<br>
*_NT_TARGET_VERSION SET TO WINXP*<br>
*Compiling - netcpu_ntperf.c*<br>
*Compiling - netlib.c*<br>
*Compiling - netsh.c*<br>
*Compiling - nettest_bsd.c*<br>
*Compiling - netserver.c*<br>
*Compiling - generating code...*<br>
*Compiling - inet_ntop.c*<br>
*Linking Executable - objfre_wxp_x86\i386\netserver.exe*<br>
*BUILD: Finish time: Wed Aug 19 14:05:48 2009*<br>
*BUILD: Done*<br>
*<br>
*<br></div></div>
* 10 files compiled - 1 Warning*<br>
</blockquote>
<br>
Good.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
5) built netperf<br>
<br>
*Launching OACR monitor<br>
*<br>
*C:\WinDDK\7600.16385.0>cd \netperf-2.4.5\src\NetServerDir*<br>
*<br>
*<br>
*C:\netperf-2.4.5\src\NetServerDir>build /c*<br>
*BUILD: Compile and Link for x86*<br>
*BUILD: Loading c:\winddk\7600.16385.0\build.dat...*<br>
*BUILD: Computing Include file dependencies:*<br>
*BUILD: Start time: Wed Aug 19 14:05:43 2009*<br>
*BUILD: Examining c:\netperf-2.4.5\src\netserverdir directory for<br>
files to compil*<br>
*e.*<br>
*BUILD: Saving c:\winddk\7600.16385.0\build.dat...*<br>
*BUILD: Compiling and Linking c:\netperf-2.4.5\src\netserverdir<br>
directory*<br>
*Configuring OACR for 'root:x86fre' - <OACR on>*<br>
*_NT_TARGET_VERSION SET TO WINXP*<br>
*Compiling - netcpu_ntperf.c*<br>
*Compiling - netlib.c*<br>
*Compiling - netsh.c*<br>
*Compiling - nettest_bsd.c*<br>
*Compiling - netserver.c*<br>
*Compiling - generating code...*<br>
*Compiling - inet_ntop.c*<br>
*Linking Executable - objfre_wxp_x86\i386\netserver.exe*<br>
*BUILD: Finish time: Wed Aug 19 14:05:48 2009*<br>
*BUILD: Done*<br>
*<br>
*<br></div></div>
* 10 files compiled - 1 Warning*<br>
</blockquote>
<br>
Good<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
6) started netserver (no commandline options)<br></div>
7) netstat -an shows netserver listening on TCP <a href="http://0.0.0.0:12865" target="_blank">0.0.0.0:12865</a> <<a href="http://0.0.0.0:12865" target="_blank">http://0.0.0.0:12865</a>><br>
</blockquote>
<br>
Good.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
8) started netperf on same host. Netserver stops, and netperf reports <br>
*C:\netperf-2.4.5\src\NetPerfDir>objfre_wxp_x86\i386\netperf*<br>
*TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to John<br>
(127.0.0.1) port 0 AF_INET*<br>
*recv_response: An existing connection was forcibly closed by the<br></div>
remote host.*<br>
</blockquote>
<br>
Hmm, I would not have expected netserver to stop. Tripped over something no doubt, but the question is what.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
9) Of interest WDK is reporting 80 errors - all essentially the same error for several files including netlib.c, netserver.c, etc. <br>
*WARNING: Banned API Usage: _snprintf is a Banned API as listed in<br></div>
dontuse.h for security purposes.*<br>
</blockquote>
<br>
Fascinating - I wonder what dontuse.h suggests one should use to replace it.<br>
<br>
happy benchmarking,<br>
<br>
rick jones<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Thanks - Kevin<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
netperf-talk mailing list<br>
<a href="mailto:netperf-talk@netperf.org" target="_blank">netperf-talk@netperf.org</a><br>
<a href="http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk" target="_blank">http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk</a><br>
</blockquote>
<br>
</blockquote></div><br>