- Update to version 4.5.1:

* AF_XDP socket support - if you have a newer Linux kernel, you will be able to transmit at line rates without having to install 3rd party kernel modules (e.g. netmap, PF_RING)
  * -w tcpreplay option - this overrides the -i option, and allows you to write to a PCAP file rather than an interface
  * --include and --exclude tcpreplay options - allows replay of a list of specific packet numbers to replay. This may slow things down, so consider using in combination with -w.
  * --fixhdrlen tcpreplay option - added to control action on packet length changes
  * -W tcpreplay option - suppress warnings when replaying
  * SLL2( Linux "cooked" capture encapsulation v2)
  * Haiku support

OBS-URL: https://build.opensuse.org/package/show/network:utilities/tcpreplay?expand=0&rev=34
This commit is contained in:
Martin Pluskal
2024-12-23 08:17:41 +00:00
committed by Git OBS Bridge
commit 4d859c2aad
9 changed files with 475 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
tcpreplay-4.4.4.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ff9753cc43bb15e77832cee657e3030dbcdd957fa247e6abacc605689e24051
size 748344

View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQFKBAABCgA0FiEEhOT6IVyTSn2X3HbV6eIUl5O94X4FAmSGDcIWHHRjcHJlcGxh
eUBhcHBuZXRhLmNvbQAKCRDp4hSXk73hfkScB/kBMmRAe/4PSAzX6olgFxcG2A2q
zqVi3UZrpdHROZ80Bar9ZFOYTSovJihW8VuH4+TyF/wUJjC0Lj/6tcULeRTL2eU6
Qpkez+EpdSi/pa+p+gkix8YdMEqhI5Vydejf5wuA1GGwnnBwxAHKl9ctUeKRId4M
3XtYA3P9kuu/cohSmj9G5eu8RT2gxVpihOPrWQQAKhzLOSH9fy8ypnKbaXNbyEdE
zc0l2RKdFRn1FKMdCnYDZzTH93XSKdI6mIGijd4/KWdVk19RW8nwG9k3uHWzCjsg
exsXHTa8JyOInug8w8uFAm2A5V0sRGLJ5zS2rn9a68EBcBotIQ/tygsbJyTz
=MGgL
-----END PGP SIGNATURE-----

3
tcpreplay-4.5.1.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5126613f783062b43f514b05ad981376050a8fee35b03c8de4445ddeefd95049
size 809628

View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQFKBAABCgA0FiEEhOT6IVyTSn2X3HbV6eIUl5O94X4FAmaRZg8WHHRjcHJlcGxh
eUBhcHBuZXRhLmNvbQAKCRDp4hSXk73hfh5sCACqaugyOq9STWcTzkV0m6L8wT/S
awhvtcgBtiyLqNdElBDz+DhpliuM28CR16QSb9eeOTGY8ZWlmjkfaTFDMDDoAaAX
RelktELsFAdoMrn7fGLH1TXTsNaBMPdZO60kSQ/46PA1r+ntS1rICv9LGGf4gEji
8owgm+DdsIk72yY0vrmXeMTvxsnudBVWzSSQtNf5DLcj4yTmjuboTJa70Hi0JJh2
Wu0Pty4IFyl9k+EAPwbE8SIjbkR6p2msHM7+1SNiSLDLAYpX2OTx7qk/B+OmCE/J
/aByP/u1aNeWgl5ub96Tk96JT4UAmKQnyAIZWs4leWDKVrdT2jbwKzveIBhr
=cY1S
-----END PGP SIGNATURE-----

322
tcpreplay.changes Normal file
View File

@@ -0,0 +1,322 @@
-------------------------------------------------------------------
Tue Dec 10 14:26:51 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
- Update to version 4.5.1:
* AF_XDP socket support - if you have a newer Linux kernel, you will be able to transmit at line rates without having to install 3rd party kernel modules (e.g. netmap, PF_RING)
* -w tcpreplay option - this overrides the -i option, and allows you to write to a PCAP file rather than an interface
* --include and --exclude tcpreplay options - allows replay of a list of specific packet numbers to replay. This may slow things down, so consider using in combination with -w.
* --fixhdrlen tcpreplay option - added to control action on packet length changes
* -W tcpreplay option - suppress warnings when replaying
* SLL2( Linux "cooked" capture encapsulation v2)
* Haiku support
-------------------------------------------------------------------
Tue Jul 11 16:31:05 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Update to 4.4.4:
* overflow check fix for parse_mpls.
* tcpreplay-edit: prevent L2 flooding of ipv6 unicast packets.
* CVE-2023-27786: bugs caused by strtok_r. (boo#1209416)
* CVE-2023-27783 reachable assert in tcpedit_dlt_cleanup
(boo#1209413)
* reachable assert in fast_edit_packet.
-------------------------------------------------------------------
Mon Jan 2 08:44:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 4.4.3:
* upgrade autogen/libopts to version 5.18.16
* avoid implicit int in configure.ac
* remove invalid assert in tree
* program exit after send error
* make libpcap version test more robust
* looping inflates some packet counters
-------------------------------------------------------------------
Sat Dec 3 17:16:21 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 4.4.2:
* This is Tcpreplay suite 4.4.2
* This release contains bug fixes only.
* What's Changed
* Bug #716 heap-buffer-overflow in get_l2len_protocol()
* Bug #721 fixed typo in tcpliveplay.c
* Bug #717 avoid assertion in get_layer4_v6
* Bug #718 improved heap-overflow protection
* Bug #719 better overflow protection in parse_mpls
* Bug #725 FORCE_ALIGN on arm
* Bug #729 tcpreplay_edit: disallow both -K and -l options
* Bug #735 heap-overflow in get_l2len_protocol
* Bug #745 remove autogen.sh from distribution tarballs
-------------------------------------------------------------------
Sun Jul 17 16:06:09 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 4.4.1:
* fix support for feeding PCAP files from STDIN
* fix Debian/kfreebsd build
* fix typos
* safeguard against corrupt packet lengths in checksum functions
* fix double free in Juniper DLT
* fix to flows.c, fix #665
* update Travis CI to focal
* LINUX installed netmap auto detection
* Support for Q-in-Q VLAN tags
* skipbroadcast
* add security policy document
* Directories of pcaps as arguments
* stage PR from @halver94
* fix PPS calc for long-running sessions
* Improve SDK selection
* fix directory include feature
* mac os tests fail
* Revert "send_packet: Avoid clock drift
* mac update on multicast
-------------------------------------------------------------------
Sat May 8 14:22:53 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 4.3.4
* Fixes ASAN reports memory leaks while running tests
* clean up new_cidr_map() string manipulation on error exit
* Fixed invalid --pps value protection
* Fixed packets slowly drift further and further behind when they
should be sent
* Fixed 64 bit rollover can cause pps replay issues after several
hours
* DLT_NULL/DLT_LOOP support for cross-platform PF_INET6
* Fixed heap buffer overflow in tcpreplay fast_edit_packet
* Fixed heap buffer overflow in tcpreplay get_next_packet
* Fixed CVE-2020-24266 heap buffer overflow in tcpprep get_l2len
* Fixed CVE-2020-24265 heap buffer overflow in tcpprep
* handle malformed and unsupported packets as soft errors
* Fixed tcprewrite --fixlen not working on DLT conversion
* Fixed with multiplier option only first file can be sent and hang
* do not create tap0 if device already exists
-------------------------------------------------------------------
Mon Jun 15 10:28:57 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 4.3.3:
* 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)
-------------------------------------------------------------------
Fri Jun 12 05:24:23 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Fix building with gcc10
-------------------------------------------------------------------
Thu Mar 14 05:25:11 UTC 2019 - seanlew@opensuse.org
- Update to version 4.3.2
* CVE-2019-8381 memory access in do_checksum() (#538 bsc#1125753)
* CVE-2019-8376 NULL pointer dereference get_layer4_v6() (#517 bsc#1125755)
* CVE-2019-8377 NULL points dereference get_ipv6_i4proto() (#536 bsc#1125754)
* Rename Ethereal to Wireshark (#545)
-------------------------------------------------------------------
Mon Dec 31 01:29:38 UTC 2018 - sean@suspend.net
- Update to version 4.3.1:
* Fix checkspell detected typos (#531)
* Heap overflow packet2tree and get_l2len (#530)
- Update to version 4.3.0:
* Fix TCP sequence edit seeding (#514)
* Fix issues identified by Codacy (#493)
* CVE-2018-18408 use-after-free in post_args (#489 bsc#1112354)
* CVE-2018-18407 heap-buffer-overflow csum_replace4 (#488 bsc#1112355)
* CVE-2018-17974 heap-buffer-overflow dlt_en10mb_encode (#486 bsc#1110786)
* CVE-2018-17580 heap-buffer-overflow fast_edit_packet (#485 bsc#1110333)
* CVE-2018-17582 heap-buffer-overflow in get_next_acket (#484 bsc#1110285)
* Out-of-tree build (#483)
* CVE-20180-13112 heap-buffer-overflow in get_l2len (#477)
* Closing stdin on pipe (#479)
* Second pcap file hangs on multiplier option (#466)
* TCP sequence edit ACK corruption (#451)
* TCP sequence number edit initial SYN packet should have 0 ACK (#450)
* Travis CI build fails due to new build images (#432)
* Upgrade libopts to 5.18.12 to address version build issues (#430)
* Add ability to change tcp SEQ/ACK numbers (#425)
* Hang using loop and netmap options (#424)
* tcpprep -S not working for large cache files (#423)
* Unable to tcprewrite range of ports with --portmap (#422)
* --maxsleep broken for values less than 1000 (#421)
* -T flag breaks traffic replay timing (#421)
* Respect 2nd packet timing (#418)
* Avoid non-blocking behaviour when using STDIN (#416)
* pcap containing >1020 packets produces invalid cache file (#415)
* manpage typos (#413)
* Fails to open tap0 on Zephyr (#411)
* Heap-buffer-overflow in get_l2protocol (#410)
* Heap-buffer-overflow in packet2tree (#409)
* Heap-buffer-overflow in getl2len (#408)
* Heap-buffer-overflow in flow_decode (#407)
* Rewrite zero IP total length field to match packet length (#406)
* Stack-buffer-overflow in tcapinfo (#405)
* tcpprep --include option does not exclude (#404)
* Negative-size-param memset in dlt_radiotap_get_80211 (#402)
* tcpreplay --verbose option not working (#398)
* Fix replay when using --with-testnic (#178)
-------------------------------------------------------------------
Mon Sep 11 19:09:33 UTC 2017 - jengelh@inai.de
- Trim history recap in description.
-------------------------------------------------------------------
Mon Jul 31 17:49:44 UTC 2017 - mpluskal@suse.com
- Update to version 4.2.6:
* Test fails on sparc64 (#393)
- Changes for version 4.2.5:
* Fix issues found by scan-build (#384)
* Improve --portmap help message (#381)
* AFL detected security crash in fuzz feature (#380)
* Coverity static scan detected issues (#374)
* Fuzz should not be overwritting Layer 3 (#372)
* Add --fuzz-factor option to specify fuzz ratio (#371)
* Warnings when building on old distributions (#368)
* Fix more Lintian detected spelling errors (#365)
* Fuzz test failure on ARM and MIPS (#364)
- Changes for version 4.2.4:
* Fix Lintian detected spelling errors (#362)
- Changes for version 4.2.3:
* Archive (remove) QuickTX until maintainer found (#357)
* Ubuntu precise 32bit_build (#356)
- Changes for version 4.2.2:
* Archive (remove) QuickTX (#357)
* Missing symbol pcap_version on macOS 10.12.4 (#356)
- Changes for version 4.2.1:
* Fix reporting of rates < 1Mbps (#348)
* Option --unique-ip not working properly (#346)
- Changes for version 4.2.0:
* MAC rewriting capabilities (#313)
* Fix several issues identified by Coverity (#305)
* Packet destortion --fuzz-seed option by Gabriel Ganne (#302)
* Add --unique-ip-loops option to modify IPs every few loops
(#296)
* Netmap startup delay increase (#290)
* tcpcapinfo buffer overflow vulnerablily (#278)
* Update git-clone instructions by Kyle McDonald (#277)
* Allow fractions for --pps option (#270)
* Print per-loop stats with --stats=0 (#269)
* Add protection against packet drift by Guillaume Scott (#268)
* Print flow stats periodically with --stats output (#262)
* Include Travis-CI build support by Ilya Shipitsin (#264) (#285)
* tcpreplay won't replay all packets in a pcap file with --netmap
(#255)
* First and last packet times in --stats output (#239)
* Switch to wire speed after 30 minutes at 6 Gbps (#210)
* tcprewrite fix checksum properly for fragmented packets (#190)
- Drop no longer needed patch (already in upstream):
* 278-fail-if-capture-has-a-packet-that-is-too-large.patch
- Use %make_install macro
- Update dependencies to support (libnl3 and dbus-1)
-------------------------------------------------------------------
Thu Mar 16 10:29:56 UTC 2017 - mkubecek@suse.cz
- 278-fail-if-capture-has-a-packet-that-is-too-large.patch:
buffer overflow in tcpcapinfo utility triggered by too large
packet (CVE-2017-6429 bsc#1028234)
-------------------------------------------------------------------
Mon Nov 21 12:23:37 UTC 2016 - mkubecek@suse.cz
- update to version 4.1.2
* increase max packet size to 65549 (CVE-2016-6160 bsc#987846)
* minor build fixes
-------------------------------------------------------------------
Wed Feb 3 14:27:32 UTC 2016 - mkubecek@suse.cz
- add upstream changelog to docs
- minor specfile cleanup
-------------------------------------------------------------------
Sun Jan 31 15:26:20 UTC 2016 - mpluskal@suse.com
- Install LICENSE
- Use url for source
- Add gpg signature
- Make building more verbose
- Cleanup spec file with spec-cleaner
-------------------------------------------------------------------
Thu Jan 28 12:58:28 UTC 2016 - mkubecek@suse.cz
- run specfile through cleaner service to silence check scripts
-------------------------------------------------------------------
Tue Jan 12 08:15:04 UTC 2016 - mkubecek@suse.cz
- update to version 4.1.1
* various fixes
* performance improvements
* add --duration option which lets the user set the number of
seconds to transmit
* do not require --loop for --unique-ip
* tun/tap support
* support multiple CIDR ranges with tcprewrite
-------------------------------------------------------------------
Mon Mar 9 09:18:31 UTC 2015 - mkubecek@suse.cz
- upgrade to version 4.1.0
* Quick TX bypass module for Linux Kernel - allows Tcpreplay to
bypass the kernel network stack and write directly to the
network driver (disabled for now)
* add a flag to customize netmap delay
* add a loop delay option
* fix: segfault in tcpliveplay on x86_64
* fix: sometimes unable to interrupt with Ctrl-C
-------------------------------------------------------------------
Tue Nov 25 10:30:01 UTC 2014 - mkubecek@suse.cz
- upgrade to version 4.0.5
* various bugfixes; for details see
https://github.com/appneta/tcpreplay/releases/tag/v4.0.5
-------------------------------------------------------------------
Wed May 28 07:14:39 UTC 2014 - mkubecek@suse.cz
- upgrade to version 4.0.4
* performance enhancements
* IP flow / Netflow features
* support netmap network drivers
* new API
* ARM support
* new DLT support
- tcpreplay-3.4.4-overflow.patch:
delete (no longer needed)
-------------------------------------------------------------------
Mon Nov 18 14:16:10 UTC 2013 - mkubecek@suse.cz
- dynamic linking of libraries (fix build on >= 12.3)
-------------------------------------------------------------------
Thu Nov 3 13:14:28 UTC 2011 - mkubecek@suse.cz
- initial package
- patch for buffer overflow in cidr2iplist()

36
tcpreplay.keyring Normal file
View File

@@ -0,0 +1,36 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
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
=J/Di
-----END PGP PUBLIC KEY BLOCK-----

65
tcpreplay.spec Normal file
View File

@@ -0,0 +1,65 @@
#
# spec file for package tcpreplay
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: tcpreplay
Version: 4.5.1
Release: 0
Summary: Network analysis and testing tools
License: GPL-3.0-only
Group: Productivity/Networking/Diagnostic
URL: https://tcpreplay.appneta.com/
Source0: https://github.com/appneta/tcpreplay/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/appneta/tcpreplay/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: dbus-1-devel
BuildRequires: libdnet-devel
BuildRequires: libpcap-devel
BuildRequires: tcpdump
Requires: tcpdump
%if 0%{?suse_version} >= 1130
BuildRequires: libnl3-devel
%else
# only needed for suse_version < 1130 (i.e. SLE11)
BuildRequires: xz
%endif
%description
Tcpreplay is a suite of utilities for editing and replaying
previously captured network traffic. It was originally designed to
replay malicious traffic patterns to Intrusion Detection/Prevention
Systems, and is meanwhile capable of replaying to web servers. It
supports switches, routers and IP Flow/NetFlow appliances.
%prep
%setup -q
%build
%configure \
--enable-dynamic-link
%make_build
%install
%make_install
%files
%license docs/LICENSE
%doc docs/CHANGELOG
%{_bindir}/*
%{_mandir}/man1/*
%changelog