add ttcp utility

SVN-Revision: 793
lede-17.01
Felix Fietkau 2005-05-03 15:15:24 +00:00
parent d5fbd28ccd
commit b02ade9d19
6 changed files with 2418 additions and 0 deletions

View File

@ -59,6 +59,7 @@ source "package/l2tpd/Config.in"
source "package/tinc/Config.in" source "package/tinc/Config.in"
source "package/fprobe/Config.in" source "package/fprobe/Config.in"
source "package/maradns/Config.in" source "package/maradns/Config.in"
source "package/ttcp/Config.in"
comment "Libraries" comment "Libraries"
source "package/libpthread/Config.in" source "package/libpthread/Config.in"

View File

@ -65,6 +65,7 @@ package-$(BR2_PACKAGE_SPEEX) += speex
package-$(BR2_PACKAGE_STRACE) += strace package-$(BR2_PACKAGE_STRACE) += strace
package-$(BR2_PACKAGE_TCPDUMP) += tcpdump package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
package-$(BR2_PACKAGE_TINC) += tinc package-$(BR2_PACKAGE_TINC) += tinc
package-$(BR2_PACKAGE_TTCP) += ttcp
package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++ package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++
package-$(BR2_PACKAGE_USBUTILS) += usbutils package-$(BR2_PACKAGE_USBUTILS) += usbutils
package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools

View File

@ -0,0 +1,5 @@
config BR2_PACKAGE_TTCP
tristate "ttcp"
default m if CONFIG_DEVEL
help
A small utility to test TCP connection performance

View File

@ -0,0 +1,31 @@
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=ttcp
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
PKG_IPK_DIR:=$(PKG_BUILD_DIR)
PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_RELEASE)_$(ARCH).ipk
$(PKG_BUILD_DIR)/usr/bin/ttcp:
mkdir -p $(PKG_BUILD_DIR)/usr/bin
$(TARGET_CC) -o $@ ttcp.c
$(STRIP) $@
$(PKG_IPK): $(PKG_BUILD_DIR)/usr/bin/ttcp
$(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
$(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
$(IPKG_STATE_DIR)/info/$(PKG_NAME).list:
$(IPKG) install $(PKG_IPK)
source:
prepare:
compile: $(PKG_IPK)
install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
clean:
rm -rf $(PKG_BUILD_DIR)
rm -f $(PKG_IPK)

2374
openwrt/package/ttcp/ttcp.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
Package: ttcp
Priority: optional
Section: net
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
Source: buildroot internal
Description: A small utility to test TCP connection performance