[netperf-talk] Loopback test on XP "connection forcibly closed"; WDK errors

Rick Jones rick.jones2 at hp.com
Wed Aug 19 11:44:25 PDT 2009


Kevin Murphy wrote:
> 1) Downloaded sources for netperf 2.4.5
> 2) Downloaded WDK 7
> 3) Made changes to netserver.c per July 23, 2009 email. Mostly around 
> cmdline parsing

Good, just to be paranoid, I'll attach the top-of-trunk netserver.c for comparison.

> 4) Started WDK - x86 free build environment
> 5) Built netserver
> 
>     *Launching OACR monitor
>     *
>     *C:\WinDDK\7600.16385.0>cd \netperf-2.4.5\src\NetServerDir*
>     *
>     *
>     *C:\netperf-2.4.5\src\NetServerDir>build /c*
>     *BUILD: Compile and Link for x86*
>     *BUILD: Loading c:\winddk\7600.16385.0\build.dat...*
>     *BUILD: Computing Include file dependencies:*
>     *BUILD: Start time: Wed Aug 19 14:05:43 2009*
>     *BUILD: Examining c:\netperf-2.4.5\src\netserverdir directory for
>     files to compile.*
>     *BUILD: Saving c:\winddk\7600.16385.0\build.dat...*
>     *BUILD: Compiling and Linking c:\netperf-2.4.5\src\netserverdir
>     directory*
>     *Configuring OACR for 'root:x86fre' - <OACR on>*
>     *_NT_TARGET_VERSION SET TO WINXP*
>     *Compiling - netcpu_ntperf.c*
>     *Compiling - netlib.c*
>     *Compiling - netsh.c*
>     *Compiling - nettest_bsd.c*
>     *Compiling - netserver.c*
>     *Compiling - generating code...*
>     *Compiling - inet_ntop.c*
>     *Linking Executable - objfre_wxp_x86\i386\netserver.exe*
>     *BUILD: Finish time: Wed Aug 19 14:05:48 2009*
>     *BUILD: Done*
>     *
>     *
>     *    10 files compiled - 1 Warning*

Good.

> 5) built netperf
> 
>     *Launching OACR monitor
>     *
>     *C:\WinDDK\7600.16385.0>cd \netperf-2.4.5\src\NetServerDir*
>     *
>     *
>     *C:\netperf-2.4.5\src\NetServerDir>build /c*
>     *BUILD: Compile and Link for x86*
>     *BUILD: Loading c:\winddk\7600.16385.0\build.dat...*
>     *BUILD: Computing Include file dependencies:*
>     *BUILD: Start time: Wed Aug 19 14:05:43 2009*
>     *BUILD: Examining c:\netperf-2.4.5\src\netserverdir directory for
>     files to compil*
>     *e.*
>     *BUILD: Saving c:\winddk\7600.16385.0\build.dat...*
>     *BUILD: Compiling and Linking c:\netperf-2.4.5\src\netserverdir
>     directory*
>     *Configuring OACR for 'root:x86fre' - <OACR on>*
>     *_NT_TARGET_VERSION SET TO WINXP*
>     *Compiling - netcpu_ntperf.c*
>     *Compiling - netlib.c*
>     *Compiling - netsh.c*
>     *Compiling - nettest_bsd.c*
>     *Compiling - netserver.c*
>     *Compiling - generating code...*
>     *Compiling - inet_ntop.c*
>     *Linking Executable - objfre_wxp_x86\i386\netserver.exe*
>     *BUILD: Finish time: Wed Aug 19 14:05:48 2009*
>     *BUILD: Done*
>     *
>     *
>     *    10 files compiled - 1 Warning*

Good

> 6) started netserver (no commandline options)
> 7) netstat -an shows netserver listening on TCP 0.0.0.0:12865 
> <http://0.0.0.0:12865>

Good.

> 8) started netperf on same host. Netserver stops, and netperf reports 
> 
>     *C:\netperf-2.4.5\src\NetPerfDir>objfre_wxp_x86\i386\netperf*
>     *TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to John
>     (127.0.0.1) port 0 AF_INET*
>     *recv_response: An existing connection was forcibly closed by the
>     remote host.*

Hmm, I would not have expected netserver to stop.  Tripped over something no 
doubt, but the question is what.

> 9) Of interest WDK is reporting 80 errors - all essentially the same 
> error for several files including netlib.c, netserver.c, etc. 
> 
>     *WARNING: Banned API Usage: _snprintf is a Banned API as listed in
>     dontuse.h for security purposes.*

Fascinating - I wonder what dontuse.h suggests one should use to replace it.

happy benchmarking,

rick jones

> 
> 
> Thanks - Kevin
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> netperf-talk mailing list
> netperf-talk at netperf.org
> http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: netserver.c
Type: text/x-csrc
Size: 28937 bytes
Desc: not available
Url : http://www.netperf.org/pipermail/netperf-talk/attachments/20090819/2a6be223/attachment-0001.c 


More information about the netperf-talk mailing list