debian/0000775000000000000000000000000012142540007007163 5ustar debian/README.debian0000664000000000000000000000052312142540007011264 0ustar The Debian Package netperf ---------------------------- Please read netperf.{ps,pdf} first! You can take the scripts in example/ and modify them to your needs. The links mentioned in the README file are outdated. The official homepage can be reached at http://www.netperf.org/ Erik Wenzel , Sat, 25 Aug 2001 10:15:17 +0200 debian/README.source0000664000000000000000000000037512142540007011347 0ustar Building netperf for Debian debian patches are generated using dpatch. Refer dpatch documentation for using it. netperf is build using git, git-buildpackage, pristine-tar and devscripts. -- Erik Wenzel Sun Apr 11 16:04:17 CEST 2010 debian/changelog0000664000000000000000000001523712142540007011045 0ustar netperf (2.6.0-2) unstable; urgency=low * [cbaabea7] [rules] removed explicit call of patchsys-quilt.mk * [6a490bbf] [rules] removed clean target -- Erik Wenzel Wed, 08 May 2013 23:13:13 +0200 netperf (2.6.0-1) unstable; urgency=low * [61a10974] Imported Upstream version 2.6.0 * [9e9f757a] [control] bumped standards version. nothing changed -- Erik Wenzel Wed, 17 Apr 2013 17:22:30 +0200 netperf (2.5.0-1) unstable; urgency=low * [4174b40a] Imported Upstream version 2.5.0 * [3d7a224f] [patches] recreated patches using quilt -- Erik Wenzel Tue, 16 Aug 2011 21:58:36 +0200 netperf (2.4.5-1) unstable; urgency=low * [b904c9b8] [init.d] removed S from default start (Closes: 493188) - thanks to Rik Thies * [3e156f73] [init.d] added support for /etc/default/netperf (Closes: 553199) - thanks to Salvatore Bonaccorso * [865f744f] Imported Upstream version 2.4.5 * [5181a0d6] removed patch 300_svn_trunk_20071205.dpatch it is integrated upstream * [6e94df86] [init.d] moved runlevel 1 to default-stop * [f7878ccc] Revert "[init.d] moved runlevel 1 to default-stop" * [c4d8f1c5] [init.d] moved runlevel 1 to default-stop * [20fa065d] added patch 300_bug361135.patch fixes segfault (Closes: 361135) - thanks to Yaroslav Halchenko -- Erik Wenzel Wed, 12 May 2010 15:31:51 +0200 netperf (2.4.4-6) unstable; urgency=low * [134ff589] [control] updated build-dependency to livetex (closes: 575765) * [b4f051a6] [init.d] added remote_fs * [5330a006] [control] bumped standards-version * [3628a0dc] [sources/format] fixed lintian warning missing-debian- source-format * [d98afee1] [control] added misc:Depends to binary section * [f0f46475] [compat] updated debhelper compatibility * [5d074a64] added README.source * [199a0a6f] [control] updated build-debends on debhelper * [e3ce0c6e] changed patch system from dpatch to quilt -- Erik Wenzel Fri, 07 May 2010 14:46:15 +0200 netperf (2.4.4-5) unstable; urgency=low * please compile with --enable-demo (Closes: #476412) -- Erik Wenzel Tue, 22 Apr 2008 22:26:33 +0000 netperf (2.4.4-4) unstable; urgency=low * added DebTags * bumped standards-version * added Homepage field to control * README.debian: removed template phrase -- Erik Wenzel Thu, 27 Mar 2008 22:21:14 +0000 netperf (2.4.4-3) unstable; urgency=low * 30_svn_trunk_20071205.dpatch includes all changes from svn trunk to date * [debian/rules] clean target uses make distclean -- Erik Wenzel Wed, 05 Dec 2007 10:44:22 +0000 netperf (2.4.4-2) unstable; urgency=low * [debian/rules] removed bashism, for ubuntu buildds -- Erik Wenzel Sun, 28 Oct 2007 10:19:13 +0000 netperf (2.4.4-1) unstable; urgency=low * New upstream release * moved netserver debug file from /tmp to /var/log fix for CVE-2007-1444 netserver logs to insecure temporary file -- Erik Wenzel Thu, 18 Oct 2007 21:35:19 +0000 netperf (2.4.3-8) unstable; urgency=low * CVE-2007-1444 netserver logs to insecure temporary file (Closes: #413658) Thanks to Nico Golde for the hotfix -- Erik Wenzel Wed, 17 Oct 2007 08:55:57 +0000 netperf (2.4.3-7) unstable; urgency=low * misleading changelog.gz (Closes: #438146) * moved examples list from rules to examples * CVE-2007-1444 netserver logs to insecure temporary file (Closes: #413658) Thanks Nico Golde for the hotfix -- Erik Wenzel Wed, 17 Oct 2007 04:39:28 +0000 netperf (2.4.3-6) unstable; urgency=low * Some names in manual pages are invisible (Closes: #434171) * [init.d] added lsb functions * misleading changelog.gz (Closes: #438146) -- Erik Wenzel Wed, 17 Oct 2007 03:04:15 +0000 netperf (2.4.3-5) unstable; urgency=low * [init.d] netperf 2.4.3-3 remote install stuck (Closes: #427480) -- Erik Wenzel Tue, 05 Jun 2007 08:54:54 +0000 netperf (2.4.3-4) unstable; urgency=low * [control] changed description -- Erik Wenzel Sun, 18 Mar 2007 23:14:09 +0000 netperf (2.4.3-3) unstable; urgency=low * [copyright] fixed missing copyright file -- Erik Wenzel Tue, 6 Mar 2007 19:08:28 +0100 netperf (2.4.3-2) unstable; urgency=low * [control] bumped standards-version to 3.7.2 (nothing changed) -- Erik Wenzel Wed, 28 Feb 2007 18:08:16 +0000 netperf (2.4.3-1) unstable; urgency=low * New upstream release * [watch] updated to new domain -- Erik Wenzel Sun, 25 Feb 2007 10:04:57 +0000 netperf (2.4.2-1) unstable; urgency=low * New upstream release -- Erik Wenzel Tue, 18 Apr 2006 08:30:12 +0200 netperf (2.4.1-1) unstable; urgency=low * examples moved from src/ to doc/ (Closes: #339385) * disabled compilation of documentation in postscript * cleanup of postinst, prerm and postrm * updated standards-version to 3.6.2 (nothing changed) -- Erik Wenzel Sat, 4 Feb 2006 22:48:27 +0100 netperf (2.4.0-2) unstable; urgency=low * added dependencies for tetex-bin (Closes: #310040) -- Erik Wenzel Sat, 21 May 2005 16:43:09 +0200 netperf (2.4.0-1) unstable; urgency=low * rules is rewritten from scratch and uses debian common build system * debian/init.d: netserver is in /usr/bin now. * UDP Port listening is fixed in Upsteam (Closes: #309007) * build documentation in the following formats: PDF, PS, HTML -- Erik Wenzel Mon, 16 May 2005 16:27:13 +0200 netperf (2.3-4) unstable; urgency=low * Changed netserver manpage back to Section 8. I was confused. -- Erik Wenzel Sun, 13 Mar 2005 20:09:45 +0100 netperf (2.3-3) unstable; urgency=low * Changed netserver manpage to Section 1. -- Erik Wenzel Thu, 23 Dec 2004 20:44:09 +0100 netperf (2.3-2) unstable; urgency=low * enabled IPv6 Support on User-Request (Closes: #285571) -- Erik Wenzel Sat, 18 Dec 2004 15:29:41 +0100 netperf (2.3-1) unstable; urgency=low * New upstream release -- Erik Wenzel Mon, 28 Jun 2004 00:10:19 +0200 netperf (2.2pl4-1) unstable; urgency=low * New upstream. (Closes: #186155) * fixed lintian problem in manpages * updated standards-version to 3.5.9.0 (changed nothing) * updated email in control -- Erik Wenzel Wed, 23 Apr 2003 09:44:27 +0200 netperf (2.1pl3-1) unstable; urgency=low * Initial release. -- Erik Wenzel Wed, 30 Jan 2002 10:15:17 +0200 debian/compat0000664000000000000000000000000212142540007010361 0ustar 5 debian/control0000664000000000000000000000200612142540007010564 0ustar Source: netperf Section: non-free/net Priority: optional Maintainer: Erik Wenzel Homepage: http://www.netperf.org/ Standards-Version: 3.9.4 Build-Depends: autotools-dev, debhelper (>= 5.0.37.2), cdbs, quilt, texinfo, texlive-latex-base XS-Autobuild: yes Package: netperf Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Network performance benchmark Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirecitonal throughput, and end-to-end latency. The environments currently measureable by netperf include: * TCP and UDP via BSD Sockets * DLPI * Unix Domain Sockets * IPv6 Tag: admin::benchmarking, hardware::TODO, implemented-in::c, interface::commandline, network::client, network::server, protocol::ethernet, protocol::ip, protocol::ipv6, protocol::tcp, protocol::udp, role::program, scope::utility, use::TODO, use::analysing, use::checking, use::monitor, works-with::network-traffic debian/copyright0000664000000000000000000001656412142540007011132 0ustar This package was debianized by Erik Wenzel erik@debian.org on Wed, 30 Jan 2002 10:15:17 +0200 It was downloaded from: ftp://ftp.netperf.org/netperf Upstream Authors: Copyright 1993-2007 Hewlett-Packard Company Rick Jones Responsible for initial packaging and release of netperf and "editorial" continuity for subsequent releases. Karen Choy Code to allow netserver to run as a standalone daemon. Dave Shield Wrote the first revision of the netperf and netserver manpages. Sarr Blumson Fixes for AIX 3.1 and 3.2. Also fixes for Solaris 2.1 without realizing it ;-) Jeff Smits Fixes for TCP_RR and UDP_RR on sytems with an htonl that is not a no-op. Warren Burnett Example code for DLPI tests. Several Folks Code to tell SunOS 4 to *not* restart system calls on receipt of a signal. Fore Systems Inc. Manpages for the FORE API and question answering David Channin Access to systems running the Fore ATM API Jonathan Stone Include file fixes for Ultrix Bruce Barnett Bunches of warnings fixes and lint picks for Solaris 2.3 Herman Dierks et al Code to calculate confidence intervals for tests Hal Murray Helpful suggestions for the scripts to make them more compatible with the netperf database (http://www.cup.hp.com/netperf/NetperfPage.html). His prompting finally got me off my whatever to put the confidence interval stuff from the guys at IBM into netperf Peter Skopp pds@cs.columbia.edu Fixes to make netperf more secure. Tom Wilson A fix to send_udp_rr to correct bogus throughput values. Thorsten Lockert A bunch of clean-up for the *BSD OSes Serge Pachkovsky Code for low-priority soaker process for AIX and SGI The fine folks at Adaptec The initial port of netperf (1.9PL4) to Windows NT 3.51. Robin Callender The PPC binaries for the 1.9PL4 port of netperf to NT and for assorted code clean-ups and help with CPU utilization measurements. "Todd J. Derr" For offering to take-on support of the Fore ATM API files with 2.1 and for his help in making the tar files and such more user-friendly Michael Shuldman Improvements to the makefile and additional checks for OpenBSD Kris Corwin discovery of a debug statement outside of if (debug) that may have been the cause of all the nasty connection refused errors in random UDP_RR tests... Charles Harris Initial prototype of the TCP_SENDFILE test support Philip Pishioneri of Cornel Conversion of the netperf.ps manul to PDF format. The Hewlett-Packard OpenVMS folks Assistance with the port to OpenVMS Munechika SUMIKAWA @ KAME Project / FreeBSD.org IPv6 fixes Jan Iven of CERN initial mods for sendfile() under Linux Fabrice Bacchella for pointing-out that Solaris 9 has a copy of Linux sendfile() Andrew Gallatin for assistance with the FreeBSD sysctl() stuff, and later making it calibration-free Mark Cooper pointing-out the need for -lresolv when compiling -DDO_DNS on RedHat 7.1 Carl Mascott finding some cut-and-paste erors in create_data_socket error logging Fabrice Bacchella Fixes for -DHISTOGRAM and -DUNIX on Mac OS X, updates to usage strings Spencer Frink Fixes and Cleanup for WIN32. Many over many years. Nicholas Thomas Fixes for DLPI on SVR4 Streams under Linux Dave Craig Fixes for getaddrinfo error returns David Mosberger of HP Workaround for the Linux getsockopt() bug that returns more than that for which one asked. Stephen Burger of HP Code to implement the netserver CPU binding. Vladislav "Vlad" Yasevich of HP Initial SCTP tests. Enhancements to the configure.ac sources to show the way to make many of the LIBS="foo" before ./configure unnecessary. Padmanabhan "Paddu" S N of HP Patches for /proc/stat CPU util and recv_tcp_rr. Cary Coutant and other hp-mac-users of HP Access to Mac OS X systems for porting netperf 2.4.0 Chris Bertin of HP Access to AIX for initial porting of netperf 2.4.0 James Carlson Assistance finding the right magic to compile SCTP on Solaris 10. Gavin Pointers on Solaris 10 Microstate accounting. Brent Draney Getting netcpu_perfstat.c in running order on AIX and other misc fixups in places such as BSD. Samuel Ying Change struct sockaddr to struct sockaddr storage in netserver.c Rodolpho Boer Fix for default message size in UDP_STREAM when defualt SO_SNDBUF size is > max UDP datagram size. Michael Dorff Getting netperf/netserver to compile under Windows with MS Visual Studio 2003 George Davis Changes to deal with different floating-point formats. Anonymous Changes to retrieve CPU util on MacOS X. Dickon Reed Patches to attend to some windows in TCP_CRR and TCP_CC under Windows Bret McKee Fixes to get netcpu_looper compiling and working after the "netcpu" split Hans Blom Improvements to closing/redirecting stdin/stdout/stderr in netserver Martin Brown RPM support in the form of netperf.spec.in and related configure.ac etc changes Shilpi Agarwal Changes to allow UDP_STREAM to use connected sockets on both sides. Steve Reinhardt Fixes for buffer filling. Gisle Vanem Fixes for Windows compilation under MingW/gcc. Scott Weitzenkamp Patches to enable demo mode in the UDP_STREAM test COPYRIGHT: Copyright (C) 1993 Hewlett-Packard Company ALL RIGHTS RESERVED. The enclosed software and documentation includes copyrighted works of Hewlett-Packard Co. For as long as you comply with the following limitations, you are hereby authorized to (i) use, reproduce, and modify the software and documentation, and to (ii) distribute the software and documentation, including modifications, for non-commercial purposes only. 1. The enclosed software and documentation is made available at no charge in order to advance the general development of high-performance networking products. 2. You may not delete any copyright notices contained in the software or documentation. All hard copies, and copies in source code or object code form, of the software or documentation (including modifications) must contain at least one of the copyright notices. 3. The enclosed software and documentation has not been subjected to testing and quality control and is not a Hewlett-Packard Co. product. At a future time, Hewlett-Packard Co. may or may not offer a version of the software and documentation as a product. 4. THE SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS". HEWLETT-PACKARD COMPANY DOES NOT WARRANT THAT THE USE, REPRODUCTION, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE A THIRD PARTY'S INTELLECTUAL PROPERTY RIGHTS. HP DOES NOT WARRANT THAT THE SOFTWARE OR DOCUMENTATION IS ERROR FREE. HP DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, WITH REGARD TO THE SOFTWARE AND THE DOCUMENTATION. HP SPECIFICALLY DISCLAIMS ALL WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 5. HEWLETT-PACKARD COMPANY WILL NOT IN ANY EVENT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS) RELATED TO ANY USE, REPRODUCTION, MODIFICATION, OR DISTRIBUTION OF THE SOFTWARE OR DOCUMENTATION. debian/dirs0000664000000000000000000000004612142540007010047 0ustar etc/init.d usr/bin usr/share/man/man1 debian/docs0000664000000000000000000000003512142540007010034 0ustar README AUTHORS Release_Notes debian/examples0000664000000000000000000000035712142540007010731 0ustar doc/examples/packet_byte_script doc/examples/sctp_stream_script doc/examples/snapshot_script doc/examples/tcp_range_script doc/examples/tcp_rr_script doc/examples/tcp_stream_script doc/examples/udp_rr_script doc/examples/udp_stream_script debian/init.d0000664000000000000000000000423012142540007010272 0ustar #!/bin/sh # # # Written by Miquel van Smoorenburg . # Modified for Debian GNU/Linux by Ian Murdock . # Modified for Debian by Christoph Lameter ### BEGIN INIT INFO # Provides: netperf # Required-Start: $remote_fs $local_fs $time # Required-Stop: $remote_fs $local_fs $time # Should-Start: $network $named # Should-Stop: $network $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: network benchmark ### END INIT INFO PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/bin/netserver test -f $DAEMON || exit 0 # Read configuration variable file if it is present [ -r /etc/default/netperf ] && . /etc/default/netperf # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions case "$1" in start) if [ x"NETSERVER_ENABLE" = xno ] then log_warning_msg "netperf daemon not enabled in /etc/default/netperf, not starting..." return 0 fi log_begin_msg "Starting network benchmark server" start-stop-daemon --start --quiet --exec $DAEMON < /dev/null > /dev/null 2>&1 log_end_msg $? ;; stop) log_begin_msg "Stopping network benchmark server" start-stop-daemon --stop --quiet --exec $DAEMON log_end_msg $? ;; #reload) # # If the daemon can reload its config files on the fly # for example by sending it SIGHUP, do it here. # # If the daemon responds to changes in its config file # directly anyway, make this a do-nothing entry. # # start-stop-daemon --stop --signal 1 --verbose --exec $DAEMON # ;; restart|force-reload) # # If the "reload" option is implemented, move the "force-reload" # option to the "reload" entry above. If not, "force-reload" is # just the same as "restart". # log_begin_msg "Restarting network benchmark server" start-stop-daemon --stop --verbose --exec $DAEMON sleep 1 start-stop-daemon --start --verbose --exec $DAEMON < /dev/null > /dev/null 2>&1 log_end_msg $? ;; *) echo "Usage: /etc/init.d/netperf {start|stop|restart|force-reload}" exit 1 ;; esac exit 0 debian/netperf.default0000664000000000000000000000006112142540007012171 0ustar # Run netserver at startup? NETSERVER_ENABLE=YES debian/patches/0000775000000000000000000000000012142540007010612 5ustar debian/patches/10_man_fix_unknown_macro.diff0000664000000000000000000000056412142540007016332 0ustar --- a/doc/netserver.man +++ b/doc/netserver.man @@ -18,12 +18,12 @@ .SH DESCRIPTION .B Netserver listens for connections from a -.C netperf +.BR netperf benchmark, and responds accordingly. It can either be run from -.C inetd +.BR inetd or as a standalone daemon (with the -p flag). If run from -.C inetd +.BR inetd the -p option should not be used. .SS OPTIONS debian/patches/20_fix_debug_file_location.diff0000664000000000000000000000040512142540007016567 0ustar --- a/src/netserver.c +++ b/src/netserver.c @@ -162,7 +162,7 @@ #elif defined(ANDROID) #define DEBUG_LOG_FILE_DIR "/data/local/tmp/" #else -#define DEBUG_LOG_FILE_DIR "/tmp/" +#define DEBUG_LOG_FILE_DIR "/var/log/" #endif #endif /* DEBUG_LOG_FILE_DIR */ debian/patches/series0000664000000000000000000000007612142540007012032 0ustar 20_fix_debug_file_location.diff 10_man_fix_unknown_macro.diff debian/postinst0000664000000000000000000000003212142540007010764 0ustar #! /bin/sh -e #DEBHELPER# debian/postrm0000664000000000000000000000003212142540007010425 0ustar #! /bin/sh -e #DEBHELPER# debian/prerm0000664000000000000000000000003212142540007010226 0ustar #! /bin/sh -e #DEBHELPER# debian/rules0000775000000000000000000000106712142540007010247 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_EXTRA_FLAGS := --enable-demo build/netperf:: cd doc && make netperf.pdf netperf.html binary-post-install/netperf:: rm debian/$(cdbs_curpkg)/usr/share/doc/netperf/changelog rm -rf debian/$(cdbs_curpkg)/usr/share/info cp COPYING debian/$(cdbs_curpkg)/usr/share/doc/netperf/copyright cp doc/netperf.pdf debian/$(cdbs_curpkg)/usr/share/doc/netperf/netperf.pdf cp doc/netperf.html debian/$(cdbs_curpkg)/usr/share/doc/netperf/netperf.html debian/source/0000775000000000000000000000000012142540007010463 5ustar debian/source/format0000664000000000000000000000001412142540007011671 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000007612142540007010217 0ustar version=3 ftp://ftp.netperf.org/netperf/netperf-(.*)\.tar\.gz