This adds nft-side support for the hook dump feature. First patch adds scope for 'list' so that the new "hooks" keyword won't interfere with table/rule parsing. Second patch is the dump feature. Last patch adds a LISTING section to the man page. There is no libnftnl integration since the hook dump is technically not related to nftables. Florian Westphal (3): scanner: add list cmd parser scope src: add support for base hook dumping doc: add LISTING section doc/nft.txt | 13 ++ include/linux/netfilter/nf_tables.h | 4 + include/mnl.h | 3 + include/parser.h | 1 + include/rule.h | 1 + src/evaluate.c | 10 ++ src/mnl.c | 269 +++++++++++++++++++++++++++- src/parser_bison.y | 51 +++++- src/rule.c | 13 ++ src/scanner.l | 16 +- 10 files changed, 371 insertions(+), 10 deletions(-) -- 2.26.3