From 0e7b6c4983af4ddd3a50c3ce756638af157c7130 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 7 Sep 2015 18:02:50 +0200 Subject: src: get rid of _ATTR_ infix in new nfntl_ definitions The constant names are already large, trim off the _ATTR_ infix in the attribute definitions. Signed-off-by: Pablo Neira Ayuso --- examples/nft-rule-del.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/nft-rule-del.c') diff --git a/examples/nft-rule-del.c b/examples/nft-rule-del.c index 5927c61..d25d5e9 100644 --- a/examples/nft-rule-del.c +++ b/examples/nft-rule-del.c @@ -74,12 +74,12 @@ int main(int argc, char *argv[]) } seq = time(NULL); - nftnl_rule_attr_set(r, NFTNL_RULE_ATTR_TABLE, argv[2]); - nftnl_rule_attr_set(r, NFTNL_RULE_ATTR_CHAIN, argv[3]); + nftnl_rule_attr_set(r, NFTNL_RULE_TABLE, argv[2]); + nftnl_rule_attr_set(r, NFTNL_RULE_CHAIN, argv[3]); /* If no handle is specified, delete all rules in the chain */ if (argc == 5) - nftnl_rule_attr_set_u64(r, NFTNL_RULE_ATTR_HANDLE, atoi(argv[4])); + nftnl_rule_attr_set_u64(r, NFTNL_RULE_HANDLE, atoi(argv[4])); batch = mnl_nlmsg_batch_start(buf, sizeof(buf)); -- cgit v1.2.3