netserver is currently writing the netserver.debug file to c:\Temp<div><br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 3:46 PM, Rick Jones <span dir="ltr">&lt;<a href="mailto:rick.jones2@hp.com">rick.jones2@hp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Kevin Murphy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thanks- I used the netserver.c you supplied and got the exact same results after running netserver and then netperf on the same machine. <br>
I ran &quot;netserver -v 2 -d&quot; and &quot;netperf&quot; (no options)<br>
<br>
The small netperf.debug file in C:\Temp\ is C:\Temp&gt;type netperf.debug<br>
*Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC*<br>
*nfo returned the following for host &#39;0.0.0.0&#39; port &#39;12865&#39; family AF_UNSPEC*<br>
*        cannonical name: &#39;(nil)&#39;*<br>
*        flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16*<br>
*        sa_family: AF_INET sadata: 50 65 0 0 0 0*<br>
*Starting netserver at port 12865*<br></div>
*CreateProcessfailure: : The system cannot find the file specified.*<br>
</blockquote>
<br>
Is there a c:\temp (or is it c:\tmp?) directory on the system to which netserver can write?<br>
<br>
rick jones<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
*<div class="im"><br>
*<br>
Trying to figure out how to capture loopback traffic on XP with Wireshark. Not easy. <br>
Will try to run on two different servers.<br>
<br>
If anyone has 2.4.5 running on XP SP 2 or 2K3 binaries appreciated.<br>
<br>
Thanks - kevin<br>
<br></div><div><div></div><div class="h5">
On Wed, Aug 19, 2009 at 2:44 PM, Rick Jones &lt;<a href="mailto:rick.jones2@hp.com" target="_blank">rick.jones2@hp.com</a> &lt;mailto:<a href="mailto:rick.jones2@hp.com" target="_blank">rick.jones2@hp.com</a>&gt;&gt; wrote:<br>

<br>
    Kevin Murphy wrote:<br>
<br>
        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<br>
        around cmdline parsing<br>
<br>
<br>
    Good, just to be paranoid, I&#39;ll attach the top-of-trunk netserver.c<br>
    for comparison.<br>
<br>
        4) Started WDK - x86 free build environment<br>
        5) Built netserver<br>
<br>
           *Launching OACR monitor<br>
           *<br>
           *C:\WinDDK\7600.16385.0&gt;cd \netperf-2.4.5\src\NetServerDir*<br>
           *<br>
           *<br>
           *C:\netperf-2.4.5\src\NetServerDir&gt;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 &#39;root:x86fre&#39; - &lt;OACR on&gt;*<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>
           *    10 files compiled - 1 Warning*<br>
<br>
<br>
    Good.<br>
<br>
        5) built netperf<br>
<br>
           *Launching OACR monitor<br>
           *<br>
           *C:\WinDDK\7600.16385.0&gt;cd \netperf-2.4.5\src\NetServerDir*<br>
           *<br>
           *<br>
           *C:\netperf-2.4.5\src\NetServerDir&gt;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 &#39;root:x86fre&#39; - &lt;OACR on&gt;*<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>
           *    10 files compiled - 1 Warning*<br>
<br>
<br>
    Good<br>
<br>
        6) started netserver (no commandline options)<br>
        7) netstat -an shows netserver listening on TCP <a href="http://0.0.0.0:12865" target="_blank">0.0.0.0:12865</a><br></div></div>
        &lt;<a href="http://0.0.0.0:12865" target="_blank">http://0.0.0.0:12865</a>&gt; &lt;<a href="http://0.0.0.0:12865" target="_blank">http://0.0.0.0:12865</a>&gt;<div class="im"><br>
<br>
<br>
    Good.<br>
<br>
        8) started netperf on same host. Netserver stops, and netperf<br>
        reports<br>
           *C:\netperf-2.4.5\src\NetPerfDir&gt;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>
           remote host.*<br>
<br>
<br>
    Hmm, I would not have expected netserver to stop.  Tripped over<br>
    something no doubt, but the question is what.<br>
<br>
        9) Of interest WDK is reporting 80 errors - all essentially the<br>
        same error for several files including netlib.c, netserver.c, etc.<br>
           *WARNING: Banned API Usage: _snprintf is a Banned API as<br>
        listed in<br>
           dontuse.h for security purposes.*<br>
<br>
<br>
    Fascinating - I wonder what dontuse.h suggests one should use to<br>
    replace it.<br>
<br>
    happy benchmarking,<br>
<br>
    rick jones<br>
<br>
<br>
<br>
        Thanks - Kevin<br>
<br>
<br>
        ------------------------------------------------------------------------<br>
<br>
        _______________________________________________<br>
        netperf-talk mailing list<br></div>
        <a href="mailto:netperf-talk@netperf.org" target="_blank">netperf-talk@netperf.org</a> &lt;mailto:<a href="mailto:netperf-talk@netperf.org" target="_blank">netperf-talk@netperf.org</a>&gt;<div class="im"><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>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>