From 330ca1cddd63762aa3127af0c9748d87964e789f Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado Gomez" Date: Mon, 27 Jul 2020 12:31:08 +0200 Subject: examples: add support for NF_PROTO_INET family Add missing support for "inet" family for a handful of examples where applicable. Signed-off-by: Jose M. Guisado Gomez Signed-off-by: Pablo Neira Ayuso --- examples/nft-table-upd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/nft-table-upd.c') diff --git a/examples/nft-table-upd.c b/examples/nft-table-upd.c index 1c7f9b3..663d09f 100644 --- a/examples/nft-table-upd.c +++ b/examples/nft-table-upd.c @@ -51,6 +51,8 @@ int main(int argc, char *argv[]) family = NFPROTO_IPV4; else if (strcmp(argv[1], "ip6") == 0) family = NFPROTO_IPV6; + else if (strcmp(argv[1], "inet") == 0) + family = NFPROTO_INET; else if (strcmp(argv[1], "bridge") == 0) family = NFPROTO_BRIDGE; else if (strcmp(argv[1], "arp") == 0) @@ -59,7 +61,7 @@ int main(int argc, char *argv[]) family = NFPROTO_NETDEV; else { fprintf(stderr, - "Unknown family: ip, ip6, bridge, arp, netdev\n"); + "Unknown family: ip, ip6, inet, bridge, arp, netdev\n"); exit(EXIT_FAILURE); } -- cgit v1.2.3