1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 07:29:33 +02:00

add ttcp utility

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@793 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-05-03 15:15:24 +00:00
parent 9b4a8958c5
commit d2385b1b90
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/fprobe/Config.in"
source "package/maradns/Config.in"
source "package/ttcp/Config.in"
comment "Libraries"
source "package/libpthread/Config.in"

View File

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

5
package/ttcp/Config.in Normal file
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

31
package/ttcp/Makefile Normal file
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
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