forked from HewlettPackard/netperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.windows
109 lines (61 loc) · 4.25 KB
/
README.windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
It has been reported that versions of netperf have configured and
compiled under Cygwin.
It is also known that netperf has compiled using the Windows DDK.
Here is a skeleton of the instructions to do so:
Steps are:
A) Install the Windows driver developer kit (if not already done).
B) open a Cmd windows (i.e., a DOS box) for the target environment
(target OS version; free vs checked build; x86, AMD64, or IA64).
This is picked from the "Start\Developer Kits" path.
C) enter the src\NetPerfDir directory
D) Edit sources to enable any desired optional features (eg
-DWANT_HISTOGRAM) or to remove features which your version of
Windows might not support (eg -DHAVE_STRUCT_SOCKADDR_STORAGE)
E) while still in the src\NetperfDir directory type "build /cD".
F) Repeat steps C through E in src\NetServerDir
G) the target files will be in a directory like:
NetPerfDir\objchk_wnet_IA64\IA64, NetServerDir\objchk_wnet_IA64\IA64
NetPerfDir\objfre_wnet_x86\i386, or NetPerfDir\objfre_wnet_AMD64\amd64
NOTE: If any components of the path (ie the full names of the files,
including parent directories) contain spaces (eg "My Documents"),
build will charge off into the weeds.
If you do not want the corresponding features, edit the sources files
and remove the -Ds for WANT_DEMO, WANT_HISTOGRAM and/or WANT_INTERVALS
And if that weren't enough, it is also known that netperf has been
compiled using MS Visual Studio 2003. Here are the instructions from
the person who made that work (See Authors):
1. Under the PROJECT tab, <project name> PROPERTIES, LINKER folder,
Select COMMAND LINE and add WS2_32.lib in the whitespace labeled
Additional Options:
2. Under the PROJECT tab, <project name> PROPERTIES, C/C++ foleder,
Select Preprocessor, On the right, add DO_IPV6; at the end of the
Preprocessor Definitions whitespace.
He goes on to say:
NOTE: WHEN COMPLING NETSERVER, it works, but I got issued the
foillowing warnigns in my build:
------ Rebuild All started: Project: netserver, Configuration: Debug Win32 ------
Deleting intermediate files and output files for project 'netserver', configuration 'Debug|Win32'.
Compiling...
nettest_bsd.c
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(846) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(1303) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(2020) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5080) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5715) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(6591) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(8013) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(11123) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
netsh.c
netserver.c
g:\Program Files\netperf\netperf-2.4.1rc1\src\netserver.c(457) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
netlib.c
g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2470) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2480) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
netcpu_ntperf.c
inet_ntop.c
Generating Code...
Linking...
Build log was saved at "file://g:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\netserver\Debug\BuildLog.htm"
netserver - 0 error(s), 11 warning(s)
---------------------- Done ----------------------
Rebuild All: 1 succeeded, 0 failed, 0 skipped