tcpdump, tcpreplay:relocate tcpdump and add tcpreplay recipe
PATCH v2 1/1 tcpdump, tcpreplay:relocate tcpdump and add tcpreplay recipe
From: Zongchun Yu <[email protected]>
*mv tcpdump from meta-oe to meta-networking
*add tcpreplay - a suite of GPLv3 licensed tools for UNIX operating systems which gives you the ability to use previously captured traffic in libpcap format to test a variety of network devices.
---
.../0001-minimal-IEEE802.15.4-allowed.patch | 0
.../tcpdump/tcpdump-4.3.0/configure.patch | 0
.../tcpdump/tcpdump-4.3.0/ipv6-cross.patch | 0
.../tcpdump-4.3.0/tcpdump_configure_no_-O2.patch | 0
.../recipes-support/tcpdump/tcpdump_4.3.0.bb | 0
.../files/tcpreplay-3.4.4-cross-compile.patch | 92 ++++++++++++++++++++
...ay-3.4.4-fix-unable-to-link-libpcap-issue.patch | 17 ++++
.../files/tcpreplay-3.4.4-no-bfp-support.patch | 15 +++
.../recipes-support/tcpreplay/tcpreplay_3.4.4.bb | 22 +++++
.../packagegroups/packagegroup-cli-tools.bb | 1 -
10 files changed, 146 insertions(+), 1 deletions(-)
rename {meta-oe => meta-networking}/recipes-support/tcpdump/tcpdump-4.3.0/0001-minimal-IEEE802.15.4-allowed.patch (100%)
rename {meta-oe => meta-networking}/recipes-support/tcpdump/tcpdump-4.3.0/configure.patch (100%)
rename {meta-oe => meta-networking}/recipes-support/tcpdump/tcpdump-4.3.0/ipv6-cross.patch (100%)
rename {meta-oe => meta-networking}/recipes-support/tcpdump/tcpdump-4.3.0/tcpdump_configure_no_-O2.patch (100%)
rename {meta-oe => meta-networking}/recipes-support/tcpdump/tcpdump_4.3.0.bb (100%)
create mode 100755 meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch
create mode 100644 meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch
create mode 100644 meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-no-bfp-support.patch
create mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay_3.4.4.bbmeta-networking/recipes-support/tcpdump/tcpdump-4.3.0/0001-minimal-IEEE802.15.4-allowed.patch renamed from meta-oe/recipes-support/tcpdump/tcpdump-4.3.0/0001-minimal-IEEE802.15.4-allowed.patch +0 -0
meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/configure.patch renamed from meta-oe/recipes-support/tcpdump/tcpdump-4.3.0/configure.patch +0 -0
meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/ipv6-cross.patch renamed from meta-oe/recipes-support/tcpdump/tcpdump-4.3.0/ipv6-cross.patch +0 -0
meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/tcpdump_configure_no_-O2.patch renamed from meta-oe/recipes-support/tcpdump/tcpdump-4.3.0/tcpdump_configure_no_-O2.patch +0 -0
meta-networking/recipes-support/tcpdump/tcpdump_4.3.0.bb renamed from meta-oe/recipes-support/tcpdump/tcpdump_4.3.0.bb +0 -0
meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch new file +92 -0
92 lines not on this page · raw message
meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch new file +17 -0
@@ -0,0 +1,17 @@ +Uptream-Status: Pending + +Signed-off-by: Zongchun Yu <[email protected]> + +Index: tcpreplay-3.4.4/configure.ac +=================================================================== +--- tcpreplay-3.4.4.orig/configure.ac ++++ tcpreplay-3.4.4/configure.ac +@@ -389,7 +389,7 @@ CFLAGS="$CFLAGS -I$LPCAPINCDIR" + AC_SEARCH_LIBS([pcap_close], [pcap], + LPCAPLIB="$LIBS", + AC_ERROR([Unable to link libpcap in ${foundpcap}]), +- -lnl) ++ -lnl-3) + + AC_SUBST(LPCAPINC) + AC_SUBST(LPCAPLIB)
meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-no-bfp-support.patch new file +15 -0
@@ -0,0 +1,15 @@ +Uptream-Status: Pending + +Signed-off-by: Zongchun Yu <[email protected]> + +--- a/configure.ac ++++ b/configure.ac +@@ -758,6 +758,8 @@ + AC_MSG_RESULT(no) + ]) + ++ac_cv_have_bpf=no ++ + have_bpf=no + dnl Check for BSD's BPF + AC_CACHE_CHECK([for BPF device sending support], ac_cv_have_bpf,
meta-networking/recipes-support/tcpreplay/tcpreplay_3.4.4.bb new file +22 -0
@@ -0,0 +1,22 @@ +SUMMARY = "Use previously captured traffic to test network devices" + +HOMEPAGE = "http://tcpreplay.synfin.net/" +SECTION = "console/network" + +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=c33cccf72cc1603e8a72a84811ae3ac8" + +SRC_URI = "http://prdownloads.sourceforge.net/tcpreplay/${PV}/tcpreplay-${PV}.tar.gz \ + file://tcpreplay-3.4.4-cross-compile.patch \ + file://tcpreplay-3.4.4-no-bfp-support.patch \ + file://tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch \ + " +SRC_URI[md5sum] = "22725feb9b2590809f9350308ec65180" +SRC_URI[sha256sum] = "7a809c58ddec86407fd6e5597ac883d7874a19bea81d716bb2b1c6e3b0e7b58f" + +DEPENDS = "libpcap" + +EXTRA_OECONF += "--with-libpcap=${STAGING_DIR_HOST}/usr" + +inherit siteinfo autotools +
meta-oe/recipes-core/packagegroups/packagegroup-cli-tools.bb +0 -1
@@ -45,7 +45,6 @@ RDEPENDS_${PN}-debug = "\ s3c64xx-gpio \ serial-forward \ strace \ - tcpdump \ " RRECOMMENDS_${PN}-debug = "\
Signature · 1 line
1.7.0.4
Quoted 8 lines · On Mon, Nov 25, 2013 at 6:00 AM, <[email protected]> wrote:
From: Zongchun Yu <[email protected]>
*mv tcpdump from meta-oe to meta-networking
*add tcpreplay - a suite of GPLv3 licensed tools for UNIX operating systems which gives you the ability to use previously captured traffic in libpcap format to test a variety of network devices.Signed-off-by Zongchun Yu <[email protected]>
Please split the patch in two, one for the move for meta-networking and another to add the tcpreplay utility.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 1 line
Please split the patch in two, one for the move for meta-networking and
another to add the tcpreplay utility.
Thanks for your comments. I have resent the patches. Please review.