From eccdc43528891d9b1298a602a8e960b0808efd14 Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Wed, 7 Sep 2016 14:29:45 +0200 Subject: expr: numgen: Rename until attribute by modulus The _modulus_ attribute will be reused as _until_, as it's similar to other expressions with value limits (ex. hash). Renaming is possible according to the kernel module ntf_numgen that has not been released yet. Signed-off-by: Laura Garcia Liebana Signed-off-by: Pablo Neira Ayuso --- tests/nft-expr_numgen-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/nft-expr_numgen-test.c b/tests/nft-expr_numgen-test.c index b78ee76..7092c8d 100644 --- a/tests/nft-expr_numgen-test.c +++ b/tests/nft-expr_numgen-test.c @@ -33,9 +33,9 @@ static void cmp_nftnl_expr(struct nftnl_expr *rule_a, if (nftnl_expr_get_u32(rule_a, NFTNL_EXPR_NG_DREG) != nftnl_expr_get_u32(rule_b, NFTNL_EXPR_NG_DREG)) print_err("Expr NFTNL_EXPR_NG_DREG mismatches"); - if (nftnl_expr_get_u32(rule_a, NFTNL_EXPR_NG_UNTIL) != - nftnl_expr_get_u32(rule_b, NFTNL_EXPR_NG_UNTIL)) - print_err("Expr NFTNL_EXPR_NG_UNTIL mismatches"); + if (nftnl_expr_get_u32(rule_a, NFTNL_EXPR_NG_MODULUS) != + nftnl_expr_get_u32(rule_b, NFTNL_EXPR_NG_MODULUS)) + print_err("Expr NFTNL_EXPR_NG_MODULUS mismatches"); if (nftnl_expr_get_u32(rule_a, NFTNL_EXPR_NG_TYPE) != nftnl_expr_get_u32(rule_b, NFTNL_EXPR_NG_TYPE)) print_err("Expr NFTNL_EXPR_NG_TYPE mismatches"); @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) print_err("OOM"); nftnl_expr_set_u32(ex, NFTNL_EXPR_NG_DREG, 0x1234568); - nftnl_expr_set_u32(ex, NFTNL_EXPR_NG_UNTIL, 0x78123456); + nftnl_expr_set_u32(ex, NFTNL_EXPR_NG_MODULUS, 0x78123456); nftnl_expr_set_u32(ex, NFTNL_EXPR_NG_TYPE, NFT_NG_INCREMENTAL); nftnl_rule_add_expr(a, ex); -- cgit v1.2.3