diff options
author | Álvaro Neira Ayuso <alvaroneay@gmail.com> | 2014-03-08 16:22:48 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-03-08 17:43:58 +0100 |
commit | bebd736e6091bdba4eff12419f3d041a21cd95be (patch) | |
tree | fffbc65799df330ec45951de337b3d28061f3c22 /examples | |
parent | 498072412c174bfb3e68f1931f5b716a9dc4bbbb (diff) |
examples: nft-rule-del: removed printf rule function
Removed this code because with that we have a strange
output. Example:
we have a rule with handle 4 and we execute
nft-rule-del ip filter input 4
Output: unknown filter input 4 0
Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/nft-rule-del.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/nft-rule-del.c b/examples/nft-rule-del.c index b29c757..cec9440 100644 --- a/examples/nft-rule-del.c +++ b/examples/nft-rule-del.c @@ -81,10 +81,6 @@ int main(int argc, char *argv[]) if (argc == 5) 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); - printf("%s\n", tmp); - batch = mnl_nlmsg_batch_start(buf, sizeof(buf)); nft_mnl_batch_put(mnl_nlmsg_batch_current(batch), |