]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
tests: masq: Fix wrong expression creation
authorCarlos Falgueras García <carlosfg@riseup.net>
Fri, 12 Aug 2016 20:17:20 +0000 (22:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 13 Aug 2016 10:28:30 +0000 (12:28 +0200)
The expression should be "masq" not "nat.

Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/nft-expr_masq-test.c

index f0302e22f7b69b8f35665f5cee732e2963545858..3f9903ddfdd1e96b511e03b906614c82c745a25b 100644 (file)
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
        b = nftnl_rule_alloc();
        if (a == NULL || b == NULL)
                print_err("OOM");
-       ex = nftnl_expr_alloc("nat");
+       ex = nftnl_expr_alloc("masq");
        if (ex == NULL)
                print_err("OOM");