summaryrefslogtreecommitdiffstats
path: root/tests/nft-expr_redir-test.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-06-10 16:56:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-06-15 13:26:33 +0200
commit30f73a954d630729e3618d57c4e5d47a39300a15 (patch)
tree2860964b05e8b60cbadeb729ac576d6f78020cf7 /tests/nft-expr_redir-test.c
parent50b175dbd598e80a0e67606645d1fa3c9be6ce01 (diff)
tests: shuffle values that are injected
Shuffle value that are used to set attributes, this variability should help us catch more problems in the future. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nft-expr_redir-test.c')
-rw-r--r--tests/nft-expr_redir-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/nft-expr_redir-test.c b/tests/nft-expr_redir-test.c
index 978cac6..6c8caec 100644
--- a/tests/nft-expr_redir-test.c
+++ b/tests/nft-expr_redir-test.c
@@ -56,9 +56,9 @@ int main(int argc, char *argv[])
if (ex == NULL)
print_err("OOM");
- nftnl_expr_set_u32(ex, NFTNL_EXPR_REDIR_REG_PROTO_MIN, 0x1234568);
- nftnl_expr_set_u32(ex, NFTNL_EXPR_REDIR_REG_PROTO_MAX, 0x23456);
- nftnl_expr_set_u32(ex, NFTNL_EXPR_REDIR_FLAGS, 0x1234568);
+ nftnl_expr_set_u32(ex, NFTNL_EXPR_REDIR_REG_PROTO_MIN, 0x12345678);
+ nftnl_expr_set_u32(ex, NFTNL_EXPR_REDIR_REG_PROTO_MAX, 0x56781234);
+ nftnl_expr_set_u32(ex, NFTNL_EXPR_REDIR_FLAGS, 0x12003400);
nftnl_rule_add_expr(a, ex);