On Wed, Jul 20, 2016 at 03:36:58PM +0200, jalvarez wrote: > Add example (based on nft-get-rule.c) to demonstrate selective rule dumping > when table and / or chain attributes are set in a rule dump request. > Used to test the changes made in "[PATCH nf-next] netfilter: nf_tables: > allow to filter out rules by table and chain" > (http://marc.info/?t=146237901200004&r=1&w=2). > > Signed-off-by: Josue Alvarez <jalvarez@xxxxxxxxxxxxxxxxxxxx> > -- > diff --git a/examples/Makefile.am b/examples/Makefile.am > index e002d36..73450c2 100644 > --- a/examples/Makefile.am > +++ b/examples/Makefile.am > @@ -13,6 +13,7 @@ check_PROGRAMS = nft-table-add \ > nft-rule-parse-add \ > nft-rule-del \ > nft-rule-get \ > + nft-rule-selective-get \ Would you rework this to integrate these changes into nft-rule-get? I'd suggest you make the invocation look like this below. Usage: nft-rule-get <family> [<table> <chain>] [<xml|json>] So table and chain must be specified at the same time to keep it simple, it is less flexible than what we actually support but I think this is fine for an example. Thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html