Skip to contentSkip to conversation

tcpreplay: upgrade 4.4.4 -> 4.5.1

PATCH New Yi Zhao 1 participant 3 messages Aug 2, 2024

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 tcpreplay: upgrade 4.4.4 -> 4.5.1

ChangeLog:
https://github.com/appneta/tcpreplay/releases/tag/v4.5.1

Drop patches that have been merged upstream.

---
 ...not-run-conftest-in-case-of-cross-co.patch | 51 ------------
 ...fy-search-dirs-for-pcap-and-add-lib3.patch | 82 -------------------
 .../tcpreplay/tcpreplay/CVE-2023-4256.patch   | 27 ------
 ...{tcpreplay_4.4.4.bb => tcpreplay_4.5.1.bb} |  5 +-
 4 files changed, 1 insertion(+), 164 deletions(-)
 delete mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch
 delete mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch
 delete mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch
 rename meta-networking/recipes-support/tcpreplay/{tcpreplay_4.4.4.bb => tcpreplay_4.5.1.bb} (70%)
meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch deleted +0 -51
deleted file mode 100644
index 08cb3b88f..000000000
@@ -1,51 +0,0 @@
-From 42f7bbc1ce4913fe2c0bc76293c5445d31690f5d Mon Sep 17 00:00:00 2001
-From: Chen Qi <[email protected]>
-Date: Thu, 7 Mar 2024 21:02:07 -0800
-Subject: [PATCH] configure.ac: do not run conftest in case of cross
- compilation
-
-It'll give us nothing but error like below:
-
-  ./conftest: cannot execute binary file: Exec format error
-  ...
-  ./configure: line 23950: test: -eq: unary operator expected
-
-The version check only has effect on Apple systems. We'd better
-avoid error like above when cross compilation.
-
-Also, in case of cross compilation, instead of having the above
-Exec format error and resulting in unaligned_cv_fail to yes, set
-it directly to yes.
-
-Upstream-Status: Submitted [https://github.com/appneta/tcpreplay/pull/849]
-
-Signed-off-by: Chen Qi <[email protected]>
----
- configure.ac | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 387219de..15201601 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -928,7 +928,7 @@ cat >conftest.c <<EOF
- EOF
- ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LPCAPLIB \
-     conftest.c $LIBS >/dev/null 2>&1
--if test -x conftest ; then
-+if test -x conftest -a "$cross_compiling" != "yes"; then
-     full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" ./conftest)
-     libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
-     pcap_version_ok=yes
-@@ -1709,7 +1709,7 @@ case "$host_os" in
- EOF
-         ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
-             conftest.c $LIBS >/dev/null 2>&1
--        if test ! -x conftest ; then
-+        if test ! -x conftest -o "$cross_compiling" = "yes" ; then
-             dnl failed to compile for some reason
-             unaligned_cv_fail=yes
-         else
--- 
-2.42.0
-
meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch deleted +0 -82

82 lines not on this page · raw message

meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch deleted +0 -27
deleted file mode 100644
index 2e4eee025..000000000
@@ -1,27 +0,0 @@
-From 62bc10d4f1d2c9e2833ef2898fb0170e9300a9dd Mon Sep 17 00:00:00 2001
-From: Marsman1996 <[email protected]>
-Date: Tue, 2 Apr 2024 17:29:21 +0800
-Subject: [PATCH] dlt_jnpr_ether_cleanup: check config before cleanup
-
-CVE: CVE-2023-4256
-Upstream-Status: Backport [https://github.com/appneta/tcpreplay/pull/851]
-Signed-off-by: Poonam Jadhav <[email protected]>
----
- src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c
-index c53ec297..9642a2c2 100644
---- a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c
-+++ b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c
-@@ -164,8 +164,9 @@ dlt_jnpr_ether_cleanup(tcpeditdlt_t *ctx)
-         jnpr_ether_config_t *config;
- 
-         config = (jnpr_ether_config_t *)ctx->encoder->config;
--        if (config->subctx != NULL)
-+        if (config != NULL && config->subctx != NULL) {
-             tcpedit_dlt_cleanup(config->subctx);
-+        }
-         safe_free(plugin->config);
-         plugin->config = NULL;
-         plugin->config_size = 0;
meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.1.bb renamed from meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb +1 -4
similarity index 70%
rename from meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
rename to meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.1.bb
index 16cff2f0e..f01bbb95a 100644
@@ -9,12 +9,9 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8"
 
 SRC_URI = "https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar.gz \
     file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \
-    file://0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch \
-    file://0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch \
-    file://CVE-2023-4256.patch \
 "
 
-SRC_URI[sha256sum] = "44f18fb6d3470ecaf77a51b901a119dae16da5be4d4140ffbb2785e37ad6d4bf"
+SRC_URI[sha256sum] = "2de79bfd67ec92ca9ae2ffb50456dd1d53ff40f3fa71b422c65e8062013c9e85"
 
 UPSTREAM_CHECK_URI = "https://github.com/appneta/tcpreplay/releases"
 
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 libdaq: upgrade 3.0.15 -> 3.0.16

ChangeLog:
https://github.com/snort3/libdaq/releases/tag/v3.0.16

---
 .../daq/{libdaq_3.0.15.bb => libdaq_3.0.16.bb}                 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta-networking/recipes-connectivity/daq/{libdaq_3.0.15.bb => libdaq_3.0.16.bb} (91%)
meta-networking/recipes-connectivity/daq/libdaq_3.0.16.bb renamed from meta-networking/recipes-connectivity/daq/libdaq_3.0.15.bb +2 -1
similarity index 91%
rename from meta-networking/recipes-connectivity/daq/libdaq_3.0.15.bb
rename to meta-networking/recipes-connectivity/daq/libdaq_3.0.16.bb
index 9fe1b3823..7834d7555 100644
@@ -11,7 +11,8 @@ inherit autotools pkgconfig
 
 SRC_URI = "git://github.com/snort3/libdaq.git;protocol=https;branch=master \
            file://0001-example-Use-lm-for-the-fst-module.patch"
-SRCREV = "1b20345a3a714d2d0ffb71578ff75bcb207ae92d"
+
+SRCREV = "2ffe084d4d4ccf4ebc5c23ef119aa1ae223ce2ae"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 1/1 snort3: upgrade 3.3.1.0 -> 3.3.2.0

In reply to Yi Zhao

ChangeLog:
https://github.com/snort3/snort3/releases/tag/3.3.2.0

---
 .../snort/{snort3_3.3.1.0.bb => snort3_3.3.2.0.bb}              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-networking/recipes-connectivity/snort/{snort3_3.3.1.0.bb => snort3_3.3.2.0.bb} (95%)
meta-networking/recipes-connectivity/snort/snort3_3.3.2.0.bb renamed from meta-networking/recipes-connectivity/snort/snort3_3.3.1.0.bb +1 -1
similarity index 95%
rename from meta-networking/recipes-connectivity/snort/snort3_3.3.1.0.bb
rename to meta-networking/recipes-connectivity/snort/snort3_3.3.2.0.bb
index a3de086b4..3f66a6b57 100644
@@ -11,7 +11,7 @@ SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \
            file://0001-cmake-Check-for-HP-libunwind.patch \
            file://0001-cmake-Pass-noline-flag-to-flex.patch"
 
-SRCREV = "9533e17796220b599145a0e2eba555af3f31e773"
+SRCREV = "1c574793564fd1256c08be1177b2e595d3592547"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.25.1