diff options
Diffstat (limited to 'examples/nft-chain-add.c')
-rw-r--r-- | examples/nft-chain-add.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c index 4897fc5..0bf8b43 100644 --- a/examples/nft-chain-add.c +++ b/examples/nft-chain-add.c @@ -37,13 +37,15 @@ int main(int argc, char *argv[]) } if (strcmp(argv[1], "ip") == 0) - family = AF_INET; + family = NFPROTO_IPV4; else if (strcmp(argv[1], "ip6") == 0) - family = AF_INET6; + family = NFPROTO_IPV6; else if (strcmp(argv[1], "bridge") == 0) - family = AF_BRIDGE; + family = NFPROTO_BRIDGE; + else if (strcmp(argv[1], "arp") == 0) + family = NFPROTO_ARP; else { - fprintf(stderr, "Unknown family: ip, ip6, bridge\n"); + fprintf(stderr, "Unknown family: ip, ip6, bridge, arp\n"); exit(EXIT_FAILURE); } |