summaryrefslogtreecommitdiffstats
path: root/examples/nft-rule-del.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-10-28 20:42:23 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2012-11-03 12:19:13 +0100
commitdd9eba1ee70ffad0db15d3be5d314221c098494b (patch)
tree120f0e93d4e7b777b95c75c9b3a4a05bea8b14f4 /examples/nft-rule-del.c
parentcf810e904888099bfb1a6d9f010e290c7825b199 (diff)
rule: use 64-bits handle instead of 16-bits
5c4d30c nf_tables: use 64-bits rule handle instead of 16-bits Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-rule-del.c')
-rw-r--r--examples/nft-rule-del.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nft-rule-del.c b/examples/nft-rule-del.c
index 4678b4e..5ddfd50 100644
--- a/examples/nft-rule-del.c
+++ b/examples/nft-rule-del.c
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
/* If no handle is specified, delete all rules in the chain */
if (argc == 5)
- nft_rule_attr_set_u16(r, NFT_RULE_ATTR_HANDLE, atoi(argv[4]));
+ nft_rule_attr_set_u64(r, NFT_RULE_ATTR_HANDLE, atoi(argv[4]));
char tmp[1024];
nft_rule_snprintf(tmp, sizeof(tmp), r, 0, 0);