2010-05-16 13:13:18 +00:00
|
|
|
#
|
2014-03-08 00:56:57 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2010-05-16 13:13:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=jtg
|
|
|
|
PKG_VERSION:=1.95
|
2014-03-08 00:56:57 +00:00
|
|
|
PKG_RELEASE:=2
|
2010-05-16 13:13:18 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
2010-06-11 19:38:04 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.netlab.tkk.fi/~jmanner/jtg
|
2010-05-16 13:13:18 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/jtg
|
|
|
|
TITLE:=Jugi's Traffic Generator
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-05-17 02:26:23 +00:00
|
|
|
MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
|
2010-05-16 13:13:18 +00:00
|
|
|
URL:=https://hoslab.cs.helsinki.fi/savane/projects/jtg/
|
|
|
|
endef
|
|
|
|
|
2014-03-08 00:56:57 +00:00
|
|
|
define Package/jtg/Description
|
2010-05-16 13:13:18 +00:00
|
|
|
The JTG generator is a simple, yet powerful and, if required, accurate
|
|
|
|
traffic generator. jtg differs from other traffic generators in that one
|
|
|
|
instance of a jtg process only sends one stream (e.g. MGEN can send tens
|
|
|
|
of streams) and the characteristics of the stream are given only with
|
|
|
|
command line arguments. On the other hand, a receiving jtg process can
|
|
|
|
be set to loop and receive several streams but, again, only one at a
|
|
|
|
time. The received packets can be logged and the log files can be
|
|
|
|
analyzed with jtg_calc (see later in this file for instructions). jtg6
|
|
|
|
is the binary for IPv6 networks.
|
|
|
|
endef
|
|
|
|
|
2014-03-08 00:56:57 +00:00
|
|
|
MAKE_VARS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -DLinuxTCP"
|
2010-05-16 13:13:18 +00:00
|
|
|
|
|
|
|
define Package/jtg/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/jtg $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,jtg))
|