libnftnl: upgrade 1.2.6 -> 1.2.7
PATCH 1/2 libnftnl: upgrade 1.2.6 -> 1.2.7
Signed-off-by Yi Zhao <[email protected]>
---
.../libnftnl/{libnftnl_1.2.6.bb => libnftnl_1.2.7.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-filter/libnftnl/{libnftnl_1.2.6.bb => libnftnl_1.2.7.bb} (95%)meta-networking/recipes-filter/libnftnl/libnftnl_1.2.7.bb renamed from meta-networking/recipes-filter/libnftnl/libnftnl_1.2.6.bb +1 -1
@@ -7,7 +7,7 @@ SRC_URI = "git://git.netfilter.org/libnftnl;branch=master \ file://0001-configure.ac-Add-serial-tests.patch \ file://run-ptest \ " -SRCREV = "83dd4dc316b4189d16ead54cd30bfc89e5160cfd" +SRCREV = "116e95aa7b6358c917de8c69f6f173874030b46b" S = "${WORKDIR}/git"
Signature · 1 line
2.25.1
PATCH 2/2 nftables: upgrade 1.0.9 -> 1.1.0
ChangeLog:
https://www.netfilter.org/projects/nftables/files/changes-nftables-1.1.0.txt
* Drop backport patches.
Signed-off-by Yi Zhao <[email protected]>
---
...sets-reset_command_0-for-current-ker.patch | 53 -------------------
...-secmark-tests-if-kernel-does-not-su.patch | 46 ----------------
.../{nftables_1.0.9.bb => nftables_1.1.0.bb} | 4 +-
3 files changed, 1 insertion(+), 102 deletions(-)
delete mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch
delete mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch
rename meta-networking/recipes-filter/nftables/{nftables_1.0.9.bb => nftables_1.1.0.bb} (94%)meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch deleted +0 -53
@@ -1,53 +0,0 @@ -From 7a6089a400a573b9a4fd92f29c00a6be7b8ef269 Mon Sep 17 00:00:00 2001 -From: Phil Sutter <[email protected]> -Date: Thu, 2 Nov 2023 16:02:14 +0100 -Subject: [PATCH] tests: shell: Fix sets/reset_command_0 for current kernels - -Since kernel commit 4c90bba60c26 ("netfilter: nf_tables: do not refresh -timeout when resetting element"), element reset won't touch expiry -anymore. Invert the one check to make sure it remains unaltered, drop -the other testing behaviour for per-element timeouts. - -Signed-off-by: Phil Sutter <[email protected]> - -Upstream-Status: Backport -[https://git.netfilter.org/nftables/commit/?id=7a6089a400a573b9a4fd92f29c00a6be7b8ef269] - -Signed-off-by: William Lyu <[email protected]> ---- - tests/shell/testcases/sets/reset_command_0 | 10 ++-------- - 1 file changed, 2 insertions(+), 8 deletions(-) - -diff --git a/tests/shell/testcases/sets/reset_command_0 b/tests/shell/testcases/sets/reset_command_0 -index e663dac8..d38ddb3f 100755 ---- a/tests/shell/testcases/sets/reset_command_0 -+++ b/tests/shell/testcases/sets/reset_command_0 -@@ -44,10 +44,10 @@ elem='element t s { 1.0.0.1 . udp . 53 }' - grep 'elements = ' | drop_seconds | uniq | wc -l) == 1 ]] - echo OK - --echo -n "counters and expiry are reset: " -+echo -n "counters are reset, expiry left alone: " - NEW=$($NFT "get $elem") - grep -q 'counter packets 0 bytes 0' <<< "$NEW" --[[ $(expires_minutes <<< "$NEW") -gt 20 ]] -+[[ $(expires_minutes <<< "$NEW") -lt 20 ]] - echo OK - - echo -n "get map elem matches reset map elem: " -@@ -80,12 +80,6 @@ OUT=$($NFT reset map t m) - $DIFF -u <(echo "$EXP") <(echo "$OUT") - echo OK - --echo -n "reset command respects per-element timeout: " --VAL=$($NFT get element t s '{ 2.0.0.2 . tcp . 22 }' | expires_minutes) --[[ $VAL -lt 15 ]] # custom timeout applies --[[ $VAL -gt 10 ]] # expires was reset --echo OK -- - echo -n "remaining elements are reset: " - OUT=$($NFT list ruleset) - grep -q '2.0.0.2 . tcp . 22 counter packets 0 bytes 0' <<< "$OUT" --- -2.43.0 -
meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch deleted +0 -46
46 lines not on this page · raw message
meta-networking/recipes-filter/nftables/nftables_1.1.0.bb renamed from meta-networking/recipes-filter/nftables/nftables_1.0.9.bb +1 -3
@@ -12,11 +12,9 @@ DEPENDS = "libmnl libnftnl bison-native \ ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \ - file://0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch \ - file://0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch \ file://run-ptest \ " -SRC_URI[sha256sum] = "a3c304cd9ba061239ee0474f9afb938a9bb99d89b960246f66f0c3a0a85e14cd" +SRC_URI[sha256sum] = "ef3373294886c5b607ee7be82c56a25bc04e75f802f8e8adcd55aac91eb0aa24" inherit autotools manpages pkgconfig ptest
Signature · 1 line
2.25.1