summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/tcpreplay
Commit message (Collapse)AuthorAgeFilesLines
* tcpreplay: fix build error with gcc-15mark.yang2025-04-103-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two types of errors: 1. Linker errors for txring.c TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket': /usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:328:(.text+0x1be): undefined reference to `txring_put' TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket_open_pf': /usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:1088:(.text+0x7ea): undefined reference to `txring_init' TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket': /usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:328:(.text+0x1be): undefined reference to `txring_put' TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket_open_pf': /usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:1088:(.text+0x7ea): undefined reference to `txring_init' TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket': /usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:328:(.text+0x1be): undefined reference to `txring_put' TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket_open_pf': /usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:1088:(.text+0x7ea): undefined reference to `txring_init' The txring file needs to include config.h to build properly. Surprisingly, in the same environment with gcc14, HAVE_TX_RING is not declared in config.h because it fails during the configure stage. The config.log below is from the same environment with gcc14. configure:26549: result: no configure:26557: checking for TX_RING socket sending support configure:26579: conftest.c >&5 In file included from conftest.c:130: /linux/if_packet.h:14:8: error: redefinition of 'struct sockaddr_ll' 14 | struct sockaddr_ll { | ^~~~~~~~~~~ Therefore, it seems that the linker error did not occur previously. 2. Incompatible type assignment in txring.c when allocating memory for txring_t structure Signed-off-by: mark.yang <mark.yang@lge.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.4.4 -> 4.5.1Yi Zhao2024-08-014-164/+1
| | | | | | | | | | ChangeLog: https://github.com/appneta/tcpreplay/releases/tag/v4.5.1 Drop patches that have been merged upstream. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: Fix CVE-2023-4256Poonam Jadhav2024-07-252-0/+28
| | | | | | | | | | | Add patch to fix tcpreplay CVE-2023-4256 dlt_jnpr_ether_cleanup: check config before cleanup Links: https://github.com/appneta/tcpreplay/pull/851 https://github.com/appneta/tcpreplay/issues/813#issuecomment-2245557093 Signed-off-by: Poonam Jadhav <poonam.jadhav@kpit.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcprelay: fix a minor cross compilation do_configure issueChen Qi2024-03-082-0/+52
| | | | | | | | | | | | | | | | We're seeing errors like below in log.do_configure: ./conftest: cannot execute binary file: Exec format error The tcprelay's configure have two places to execute ./conftest. And the result happens to be correct even with the error above. Instead of leaving the errors as they are, we explicitly skip running ./conftest in case of cross compiling. The build will continue to succeed and result will remain the same. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: fix pcap detection with /usr/lib32 multilibMartin Jansa2023-09-032-4/+87
| | | | | | | | | | | * use BPN, BP where useful * use prefix instead of hardcoding /usr * add patch to search also in lib32 subdir of --with-libpcap value to fix: checking for libpcap... configure: error: "Unable to find matching library for header file in TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-tcpreplay/4.4.4-r0/lib32-recipe-sysroot/usr" Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.4.3 -> 4.4.4Archana Polampalli2023-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This release contains bug fixes only. The following CVEs have been addressed: CVE-2023-27783 CVE-2023-27784 CVE-2023-27785 CVE-2023-27786 CVE-2023-27787 CVE-2023-27788 CVE-2023-27789 Changelog: ========= dlt_jnpr_ether_cleanup: check subctx before cleanup by @Marsman1996 in #781 Bug #780 assert tcpedit dlt cleanup by @fklassen in #800 Fix bugs caused by strtok_r by @Marsman1996 in #783 Bug #782 #784 #785 #786 #787 #788 strtok r isuses by @fklassen in #801 Update en10mb.c by @david-guti in #793 PR #793 ip6 unicast flood by @fklassen in #802 Bug #719 fix overflow check for parse_mpls() by @fklassen in #804 PR #793 - update tests for corrected IPv6 MAC by @fklassen in #805 PR #793 - update tests for vlandel by @fklassen in #806 Feature #773 gh actions ci by @fklassen in #807 Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: 4.4.2 -> 4.4.3Yi Zhao2023-03-231-1/+1
| | | | | | | | ChangeLog: https://github.com/appneta/tcpreplay/releases/tag/v4.4.3 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: fix buildpaths issueYi Zhao2022-08-302-1/+51
| | | | | | | | | | | | | | | | | | POSIX_SHELL is specified a host tool path as it searches path on build host using `which` when configure. Set it to a fixed path '/bin/sh'. Fixes: QA Issue: File /usr/bin/tcpbridge in package tcpreplay contains reference to TMPDIR File /usr/bin/tcpliveplay in package tcpreplay contains reference to TMPDIR File /usr/bin/tcprewrite in package tcpreplay contains reference to TMPDIR File /usr/bin/tcpcapinfo in package tcpreplay contains reference to TMPDIR File /usr/bin/tcpreplay in package tcpreplay contains reference to TMPDIR File /usr/bin/tcpprep in package tcpreplay contains reference to TMPDIR File /usr/bin/tcpreplay-edit in package tcpreplay contains reference to TMPDIR [buildpaths] QA Issue: File /usr/src/debug/tcpreplay/4.4.2-r0/src/defines.h in package tcpreplay-src contains reference to TMPDIR [buildpaths] Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.4.1 -> 4.4.2Wang Mingyu2022-08-291-1/+1
| | | | | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.4.0 -> 4.4.1Wang Mingyu2022-02-241-1/+1
| | | | | | | | | | | | | Changelog: ========= Bug #708 fix support for feeding PCAP files from STDIN Bug #705 fix Debian/kfreebsd build Bug #704 fix typos Bug #703 safeguard against corrupt packet lengths in checksum functions Bug #702 fix double free in Juniper DLT Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: update HOMEPAGEYi Zhao2022-02-091-1/+2
| | | | | | | The official site was moved to https://tcpreplay.appneta.com/. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.3.4 -> 4.4.0wangmy2022-02-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Changelog: ========= Update strlcpy.c and strlcat.c PR #636 Apply #616 fix to flows.c, fix #665 Bug #670: update Travis CI to focal Bug #669: LINUX installed netmap auto detection Feature #626 - Support for Q-in-Q VLAN tags Bug #677 skipbroadcast Bug #689: add security policy document Directories of pcaps as arguments PR #682 Bug #679 fix PPS calc for long-running sessions Bug #668 Improve SDK selection Bug #696 fix directory include feature Bug #695 mac os tests fail Bug #674 - Revert "send_packet: Avoid clock drift by using time since first packet" Feature #563 mac update on multicast Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.3.3 -> 4.3.4zangrc2021-05-141-3/+3
| | | | | | | -License-Update: URL changed from HTTP to HTTPS. Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade 4.3.2 -> 4.3.3Andreas Müller2020-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | >From [1] * Increase cache buffers size to accomodate VLAN edits (#594) * Correct L2 header length to correct IP header offset (#583) * Fix warnings from gcc version 10 (#580) * Heap Buffer Overflow in randomize_iparp (#579) * Use after free in get_ipv6_next (#578) * Heap Buffer Overflow in git_ipv6_next (#576) * Call pcap_freecode() on pcap_compile() (#572) * Increase max snaplen to 262144 (#571) * Fix divide by zero in fuzzing (#570) * Unique IP repeats at very high iteration counts (#566) * Fails to compile on FreeBSD amd64 13.0 (#558) * Heap Buffer Overflow in do_checksum (#556) (#577) * Attempt to correct corrupt pcap files, if possible (#557) * Fix GCC v10 warnings (#555) * Remove some duplicated SOURCES entries (#551) * Expand /dev/bpfX hard limit to fix macOS Mojave (#550) * Implement --loopdelay-ms when using --loop=0 (#546) * Heap overflow packet2tree and get_l2len (#530) [1] https://github.com/appneta/tcpreplay/releases Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: fix upstream check URLPierre-Jean Texier2020-06-081-0/+2
| | | | | | | | | | | | Fixes: $: devtool check-upgrade-status tcpreplay <...> INFO: tcpreplay 4.3.2 UNKNOWN_BROKEN None Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: update to version 4.3.2Slater, Joseph2019-04-061-2/+2
| | | | | | | Includes fixes for CVE-20198376, -8377, and -8381. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* tcpreplay: upgrade to 4.2.6dengke.du@windriver.com2017-09-121-3/+3
| | | | | | Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* tcpreplay: upgrade to 4.1.2Oleksandr Kravchuk2017-01-191-4/+4
| | | | | Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* tcpreplay: upgrade to 4.1.1Mingli Yu2016-09-146-180/+19
| | | | | | | | | | | | | | | * Upgrade tcpreplay from 3.4.4 to 4.1.1 * Update the LICENSE file checksum as the LICENSE updated to implement GPLv3 license * Remove the backport and unapplicable patches - tcpreplay-3.4.4-cross-compile.patch - tcpreplay-3.4.4-no-bfp-support.patch - tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch - tcpreplay-3.4.4-improve-search-for-libpcap.patch are Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* meta-networking: standardize SECTION valuesJoe MacDonald2015-06-051-1/+1
| | | | | | | SECTION has been used inconsistently throughout the recipes in this layer. Convert them to all use the same convention. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* tcpreplay: improve search for libpcapJoe Slater2014-12-192-0/+34
| | | | | | | | | Add a test to find libpcap if testdir/.. is a sysroot. Upstream-Status: Pending Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* tcpreplay: inherit autotools-brokensepRobert Yang2014-06-151-1/+1
| | | | | | | | | It needs autotools-brokensep, otherwise do_compile error: src/defines.h:5:18: fatal error: tcpr.h: No such file or directory Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* tcpreplay: add recipeZongchun Yu2013-11-284-0/+146
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 <Zongchun.Yu@freescale.com> Signed-off-by: Joe MacDonald <joe@deserted.net>