netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/4] fix list chain x y with anonymous chains
@ 2022-01-12  0:33 Pablo Neira Ayuso
  2022-01-12  0:33 ` [PATCH nft 1/4] src: do not use the nft_cache_filter object from mnl.c Pablo Neira Ayuso
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2022-01-12  0:33 UTC (permalink / raw)
  To: netfilter-devel

Hi,

Patches 1 to 3 are cache preparation work.

Then, patch 4 fixes listing

 # nft list chain x y
 table ip x {
        chain y {
                jump {
                        accept
                }
        }
 }

This is broken in the nftables 1.0.1 release.

See https://bugzilla.netfilter.org/show_bug.cgi?id=1577

Pablo Neira Ayuso (4):
  src: do not use the nft_cache_filter object from mnl.c
  cache: do not set error code twice
  cache: add helper function to fill up the rule cache
  src: 'nft list chain' prints anonymous chains correctly

 include/cache.h                               |   3 +
 include/mnl.h                                 |   2 +-
 include/netlink.h                             |   1 +
 src/cache.c                                   | 113 ++++++++++++------
 src/mnl.c                                     |  12 +-
 src/netlink_delinearize.c                     |   8 ++
 .../testcases/cache/0010_implicit_chain_0     |  19 +++
 7 files changed, 113 insertions(+), 45 deletions(-)
 create mode 100755 tests/shell/testcases/cache/0010_implicit_chain_0

-- 
2.30.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-12  0:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-12  0:33 [PATCH nft 0/4] fix list chain x y with anonymous chains Pablo Neira Ayuso
2022-01-12  0:33 ` [PATCH nft 1/4] src: do not use the nft_cache_filter object from mnl.c Pablo Neira Ayuso
2022-01-12  0:33 ` [PATCH nft 2/4] cache: do not set error code twice Pablo Neira Ayuso
2022-01-12  0:34 ` [PATCH nft 3/4] cache: add helper function to fill up the rule cache Pablo Neira Ayuso
2022-01-12  0:34 ` [PATCH nft 4/4] src: 'nft list chain' prints anonymous chains correctly Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).