!25 master 选型 升级到1.0.0
From: @quanhongfei Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
c99bcc650e
@ -1,34 +0,0 @@
|
|||||||
From 790889957b48f4d28dc1699bd6c193617f2141b3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Florian Westphal <fw@strlen.de>
|
|
||||||
Date: Wed, 2 Jun 2021 12:47:24 +0200
|
|
||||||
Subject: json: fix base chain output
|
|
||||||
|
|
||||||
nft-test.py -j fails with
|
|
||||||
python: json.c:243: chain_print_json: Assertion `__out' failed.
|
|
||||||
|
|
||||||
The member was changed from char * to a struct, pass the name again.
|
|
||||||
|
|
||||||
Fixes: 5008798157e2114f ("libnftables: location-based error reporting for chain type")
|
|
||||||
Signed-off-by: Florian Westphal <fw@strlen.de>
|
|
||||||
(cherry picked from commit cabe8992b3ee4eb0001a07075b317d966df6bcbd)
|
|
||||||
---
|
|
||||||
src/json.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
(limited to 'src/json.c')
|
|
||||||
|
|
||||||
diff --git a/src/json.c b/src/json.c
|
|
||||||
index a3d1008f..e588ef4c 100644
|
|
||||||
--- a/src/json.c
|
|
||||||
+++ b/src/json.c
|
|
||||||
@@ -241,7 +241,7 @@ static json_t *chain_print_json(const struct chain *chain)
|
|
||||||
mpz_export_data(&policy, chain->policy->value,
|
|
||||||
BYTEORDER_HOST_ENDIAN, sizeof(int));
|
|
||||||
tmp = json_pack("{s:s, s:s, s:i, s:s}",
|
|
||||||
- "type", chain->type,
|
|
||||||
+ "type", chain->type.str,
|
|
||||||
"hook", hooknum2str(chain->handle.family,
|
|
||||||
chain->hook.num),
|
|
||||||
"prio", priority,
|
|
||||||
--
|
|
||||||
cgit v1.2.3
|
|
||||||
Binary file not shown.
BIN
nftables-1.0.0.tar.bz2
Normal file
BIN
nftables-1.0.0.tar.bz2
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
Name: nftables
|
Name: nftables
|
||||||
Version: 0.9.9
|
Version: 1.0.0
|
||||||
Release: 3
|
Release: 1
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A subsystem of the Linux kernel processing network data
|
Summary: A subsystem of the Linux kernel processing network data
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -8,7 +8,6 @@ URL: https://netfilter.org/projects/nftables/
|
|||||||
Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
|
Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
|
||||||
Source1: nftables.service
|
Source1: nftables.service
|
||||||
Source2: nftables.conf
|
Source2: nftables.conf
|
||||||
Patch0: backport-json-fix-base-chain-output.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc flex bison libmnl-devel gmp-devel readline-devel libnftnl-devel docbook2X systemd
|
BuildRequires: gcc flex bison libmnl-devel gmp-devel readline-devel libnftnl-devel docbook2X systemd
|
||||||
BuildRequires: iptables-devel jansson-devel python3-devel
|
BuildRequires: iptables-devel jansson-devel python3-devel
|
||||||
@ -105,6 +104,12 @@ echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|||||||
%{python3_sitelib}/nftables/
|
%{python3_sitelib}/nftables/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 19 2022 quanhongfei <quanhongfei@h-partners.com> - 1:1.0.0-1
|
||||||
|
- Type:requirement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update nftables to 1.0.0
|
||||||
|
|
||||||
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 1:0.9.9-3
|
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 1:0.9.9-3
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user