summaryrefslogtreecommitdiffstats
path: root/examples/nft-flowtable-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-flowtable-get.c')
-rw-r--r--examples/nft-flowtable-get.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/nft-flowtable-get.c b/examples/nft-flowtable-get.c
index 37cfadf..1a034ce 100644
--- a/examples/nft-flowtable-get.c
+++ b/examples/nft-flowtable-get.c
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
seq = time(NULL);
if (argc < 2 || argc > 5) {
- fprintf(stderr, "Usage: %s <family> [<table> <flowtable>] [json]\n",
+ fprintf(stderr, "Usage: %s <family> [<table> <flowtable>]\n",
argv[0]);
exit(EXIT_FAILURE);
}
@@ -84,9 +84,6 @@ int main(int argc, char *argv[])
NLM_F_DUMP, seq);
}
- if (strcmp(argv[argc-1], "json") == 0)
- type = NFTNL_OUTPUT_JSON;
-
nl = mnl_socket_open(NETLINK_NETFILTER);
if (nl == NULL) {
perror("mnl_socket_open");