libnftnl-1.2.1-1.el9

- Fix debug printing for tcp option reset expression
- new version 1.2.1

Resolves: rhbz#1917399
This commit is contained in:
Phil Sutter 2022-05-18 11:15:05 +02:00
parent d598911971
commit d8aa34485f
4 changed files with 47 additions and 3 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@
/libnftnl-1.1.7.tar.bz2
/libnftnl-1.1.8.tar.bz2
/libnftnl-1.1.9.tar.bz2
/libnftnl-1.2.1.tar.bz2

View File

@ -0,0 +1,37 @@
From 1b07e9c74389dc57d727d8d6628d38a65db5026b Mon Sep 17 00:00:00 2001
From: Florian Westphal <fw@strlen.de>
Date: Sat, 19 Feb 2022 14:39:04 +0100
Subject: [PATCH] exthdr: tcp option reset support
Adds print debug support for tcp reset feature.
Signed-off-by: Florian Westphal <fw@strlen.de>
(cherry picked from commit e2514c0eff4da7e8e0aabd410f7b7d0b7564c880)
---
src/expr/exthdr.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/expr/exthdr.c b/src/expr/exthdr.c
index 1b813b1e47c4d..625dd5d3d0a49 100644
--- a/src/expr/exthdr.c
+++ b/src/expr/exthdr.c
@@ -247,10 +247,15 @@ nftnl_expr_exthdr_snprintf(char *buf, size_t len,
exthdr->offset,
exthdr->flags & NFT_EXTHDR_F_PRESENT ? " present" : "",
exthdr->dreg);
- else
+ else if (e->flags & (1 << NFTNL_EXPR_EXTHDR_SREG))
return snprintf(buf, len, "write%s reg %u => %ub @ %u + %u ",
op2str(exthdr->op), exthdr->sreg, exthdr->len, exthdr->type,
exthdr->offset);
+ else if (exthdr->op == NFT_EXTHDR_OP_TCPOPT && exthdr->len == 0)
+ return snprintf(buf, len, "reset tcpopt %u ", exthdr->type);
+ else
+ return snprintf(buf, len, "op %u len %u type %u offset %u ",
+ exthdr->op, exthdr->len, exthdr->type, exthdr->offset);
}
--
2.34.1

View File

@ -1,12 +1,14 @@
Name: libnftnl
Version: 1.1.9
Release: 4%{?dist}
Version: 1.2.1
Release: 1%{?dist}
Summary: Library for low-level interaction with nftables Netlink's API over libmnl
License: GPLv2+
URL: https://netfilter.org/projects/libnftnl/
Source0: https://www.netfilter.org/pub/libnftnl/libnftnl-%{version}.tar.bz2
Patch01: 0001-exthdr-tcp-option-reset-support.patch
BuildRequires: libmnl-devel
BuildRequires: jansson-devel
BuildRequires: gcc
@ -58,6 +60,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_includedir}/libnftnl
%changelog
* Wed May 18 2022 Phil Sutter <psutter@redhat.com> - 1.2.1-1
- Fix debug printing for tcp option reset expression
- new version 1.2.1
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.9-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688

View File

@ -1 +1 @@
SHA512 (libnftnl-1.1.9.tar.bz2) = 8e2551a902a320769198e0ebce52596501c548e230c3172ba4989e25dcb3dd6c9b97a104af69b93ede4ef298811cff10608758e6f1d274e758d87306c4b50f25
SHA512 (libnftnl-1.2.1.tar.bz2) = cabe6896210c451d7917d1abde5e73a65594d53f011486f75dd7be5b4804c49d10f0e508675e091e1faf0363b82670b3f3a167a85db91d52742dc69445888b6a