1February 11, 2003 2 3At the time of the initial port, I was not aware of a make facility 4for OpenVMS. So, I would just compile and link the various files by 5hand: 6 7 $ cc netperf.c 8 $ cc netlib.c 9 $ cc netsh.c 10 $ cc nettest_bsd.c 11 $ cc netserver.c 12 $ link/exe=netperf netperf.obj,netsh.obj,netlib.obj,nettest_bsd.obj 13 $ link/exe=netserver netserver.obj,netsh.obj,netlib.obj,nettest_bsd.obj 14 15Installation for OpenVMS has a few differences from installation under 16say Unix. There is no inetd for VMS - however, there is the concept 17of an adding an auxilliary service that seems quite similar. 18 19To configure netperf for operation as an auxilliary service, you will 20need to edit/use the netserver_run.com file and alter the "path" to 21netserver accordingly. The version that ships is setup for where Rick 22Jones did his initial porting work and most likely is not apropriate 23for you :) 24 25 $ define sys$output sys$sysroot:[netperf]hello_service.log 26 $ define sys$error sys$sysroot:[netperf]hello_service.log 27 $ run sys$sysroot:[netperf]netserver.exe 28 29Then it will be necessary to "define" netperf (netserver) as an 30auxilliary service. This will need to be customized as apropriate for 31your system 32 33 $ tcpip set service netserver - 34 _$ /port=12865 - 35 _$ /protocol=tcp - 36 _$ /user=system - 37 _$ /limit=48 - 38 _$ /process_name=netserver - 39 _$ /file=sys$sysroot:[netperf]netserver_run.com 40 41And then it is necessary to enable the service: 42 43$ tcpip enable service netserver 44 45If you want to disable the service, you can issue the command 46 47$ tcpip set noservice netserver 48 49By default, OpenVMS is case-insensitive with commandlines, and will 50downshift everything to lower case. This does not interact well with 51netperf's use of command-line options like "-H" and "-h" with rather 52different meanings. 53 54To workaround that, the following defines are believed to be 55sufficient. 56 57$ define DECC$ARGV_PARSE_STYLE ENABLE 58$ define DECC$EFS_CASE_PRESERVE ENABLE 59$ define DECC$POSIX_SEEK_STREAM_FILE ENABLE 60$ define DECC$EFS_CHARSET ENABLE 61$ set process /parse_style=extended 62 63I do not know if this will be something one can also do for the 64netserver - presumeably one could put these things in the 65netserver_run.com file (guessing). At present though I've not tried 66that, and I'm also not sure that netserver has any upper-case options. 67