BWPing is a small utility for bandwidth measuring. It employs ICMP echo/request packets, and thus does not need additional software on the target host. It uses little CPU and is very well suited to lossy links.
http://bwping.sourceforge.net/ I use it for measuring bandwidth of multi-hop wifi links in mesh networks. The package includes a patch to make BWPing work on the ARM strict alignment big endian plattform I use OpenWRT on.
commit 30923e820238010f2cea49b21b0e7ed35ea6c2bc Author: Florian Sesser <[email protected]> Date: Tue Apr 5 11:49:43 2011 +0200 Add BWPing to /net/ BWPing is a small utility for bandwidth measuring. It employs ICMP echo/request packets, and does not need additional software on the target host. It uses little CPU and is very well suited to lossy links. Signed-off-by: Florian Sesser <[email protected]> diff --git a/net/bwping/Makefile b/net/bwping/Makefile new file mode 100644 index 0000000..492f047 --- /dev/null +++ b/net/bwping/Makefile @@ -0,0 +1,40 @@ +# BWping OpenWRT Makefile +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. + +include $(TOPDIR)/rules.mk + +PKG_NAME:=bwping +PKG_VERSION:=1.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/bwping +PKG_MD5SUM:=4c2215551df7f00de8559fd0cd1ff4db + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/bwping + SECTION:=net + CATEGORY:=Network + TITLE:=Open Source bandwidth measurement tool + URL:=http://bwping.sourceforge.net +endef + +define Package/bwping/description + BWPing + BWPing is a bandwidth measurement tool based on ICMP echo + request/reply. It is especially well suited for lossy links. BWPing + does not not require any special software on the remote host (only + the ability to respond on ICMP echo request messages). +endef + +define Package/bwping/install + $(INSTALL_DIR) $(1)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,bwping)) diff --git a/net/bwping/patches/100-getopt-returns-int.patch b/net/bwping/patches/100-getopt-returns-int.patch new file mode 100644 index 0000000..d0f3eb9 --- /dev/null +++ b/net/bwping/patches/100-getopt-returns-int.patch @@ -0,0 +1,12 @@ +diff -urN bwping-1.2.orig/bwping.c bwping-1.2/bwping.c +--- bwping-1.2.orig/bwping.c 2010-01-22 17:49:29.000000000 +0000 ++++ bwping-1.2/bwping.c 2010-12-07 12:30:26.000000000 +0000 +@@ -221,7 +221,7 @@ + unsigned int bufsize, tos, transmitted_number, received_number; + unsigned long int kbps, pktsize, volume, rperiod, received_volume; + unsigned long long int min_interval, interval, current_interval, integral_error; +- char ch; ++ int ch; + char *ep, *target; + fd_set fds; + struct sockaddr_in to;
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
