2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/appneta
/tcpreplay
/releases
/download
/v
$(PKG_VERSION
)
16 PKG_MD5SUM
:=a2864f466fe17715baa49d44d5a91eb4
17 PKG_HASH
:=224b519e561d969b4bdb0e700c2283e036620e3cb5895d5aab2a7e4f27d21a79
20 PKG_LICENSE_FILES
:=docs
/LICENSE
25 include $(INCLUDE_DIR
)/package.mk
28 tcpbridge tcpcapinfo tcpliveplay tcpprep \
29 tcpreplay tcpreplay-edit tcprewrite
31 define Package
/tcpreplay
/default
35 URL
:=http
://tcpreplay.appneta.com
/
36 MAINTAINER
:=Alexandru Ardelean
<ardeleanalex@gmail.com
>
37 DEPENDS
:=+librt
+libpcap
40 define Package
/tcpbridge
41 $(call Package
/tcpreplay
/default
)
42 TITLE
:=Bridge network traffic across two interfaces
45 define Package
/tcpcapinfo
46 $(call Package
/tcpreplay
/default
)
47 TITLE
:=Pcap file dissector for debugging broken pcap files
50 define Package
/tcpliveplay
51 $(call Package
/tcpreplay
/default
)
52 TITLE
:=Replays network traffic stored in a pcap file on live networks using new TCP connections
55 define Package
/tcpprep
56 $(call Package
/tcpreplay
/default
)
57 TITLE
:=Create a tcpreplay cache file from a pcap file
60 define Package
/tcpreplay
61 $(call Package
/tcpreplay
/default
)
62 TITLE
:=Replay network traffic stored in pcap files
65 define Package
/tcpreplay-edit
66 $(call Package
/tcpreplay
/default
)
67 TITLE
:=Replay network traffic stored in pcap files
70 define Package
/tcprewrite
71 $(call Package
/tcpreplay
/default
)
72 TITLE
:=Rewrite the packets in a pcap file
75 define Package
/tcpreplay-all
76 $(call Package
/tcpreplay
/default
)
77 TITLE
:=Pcap editing and replaying utilities
78 DEPENDS
:=$(foreach m
,$(TCPREPLAY_MODULES
),+$(m
))
81 define Package
/tcpbridge
/description
82 tcpbridge is a tool for selectively briding network traffic across two
83 interfaces and optionally modifying the packets in between
86 define Package
/tcpcapinfo
/description
87 tcpcapinfo is a tool for decoding the structure of a pcap
(3) file with a
88 focus on finding broken pcap files and determining how two related pcap
92 define Package
/tcpliveplay
/description
93 This program
, 'tcpliveplay' replays a captured set of packets using new TCP
94 connections with the captured TCP payloads against a remote host in order
95 to do comprehensive vulnerability testings.
98 define Package
/tcpprep
/description
99 tcpprep is a
``pcap
(3)'' file pre-processor which creates a cache file
100 which provides
"rules" for
``tcprewrite
(1)'' and
``tcpreplay
(1)'' on how to
101 process and send packets.
104 define Package
/tcpreplay
/description
105 tcpreplay is a tool for replaying network traffic from files saved with
106 tcpdump or other tools which write pcap
(3) files.
109 define Package
/tcpreplay-edit
/description
110 tcpreplay-edit includes
all the functionality of both tcpreplay
114 define Package
/tcprewrite
/description
115 Rewrite
/edit the packets in a pcap file
118 define Package
/tcpreplay-all
/description
119 Tcpreplay is a suite of free Open Source utilities for
120 editing and replaying previously captured network traffic.
121 Originally designed to replay malicious traffic patterns to
122 Intrusion Detection
/Prevention Systems
, it has seen many evolutions
123 including capabilities to replay to web servers.
125 Version
4.0.0 introduces features and performance enhancements
126 to support switches
, routers
, and IP Flow
/NetFlow appliances.
130 ac_cv_lib_nl_nl_cache_alloc
=no \
131 ac_cv_lib_nl_genl_3_genl_connect
=no \
132 ac_cv_lib_nl_3_nl_cache_alloc
=no \
133 ac_cv_lib_dbus_1_dbus_malloc
=no
137 --enable-dynamic-link \
138 --prefix="$(PKG_INSTALL_DIR)/usr" \
139 --exec-prefix
="$(PKG_INSTALL_DIR)/usr" \
140 --with-libpcap
="$(STAGING_DIR)/usr"
142 define tcpreplayTemplate
143 define Package
/$(1)/install
144 $(INSTALL_DIR
) $$(1)/usr
/bin
; \
145 $(CP
) $$(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
149 define Package
/tcpreplay-all
/install
153 $(foreach m
, $(TCPREPLAY_MODULES
), \
154 $(eval
$(call tcpreplayTemplate
,$(m
))) \
155 $(eval
$(call BuildPackage
,$(m
))) \
158 $(eval
$(call BuildPackage
,tcpreplay-all
))