search for: nft_reg_1

Displaying 1 result from an estimated 1 matches for "nft_reg_1".

2018 Feb 15
3
[Bug 1226] New: Segmentation fault when printing a rule checking byte zero of NFT_PAYLOAD_LL_HEADER
...HAIN, "my_chain"); nftnl_rule_set_u32(rule, NFTNL_RULE_FAMILY, NFPROTO_INET); payload_expr = nftnl_expr_alloc("payload"); nftnl_expr_set_u32(payload_expr, NFTNL_EXPR_PAYLOAD_BASE, NFT_PAYLOAD_LL_HEADER); nftnl_expr_set_u32(payload_expr, NFTNL_EXPR_PAYLOAD_DREG, NFT_REG_1); nftnl_expr_set_u32(payload_expr, NFTNL_EXPR_PAYLOAD_OFFSET, 0); nftnl_expr_set_u32(payload_expr, NFTNL_EXPR_PAYLOAD_LEN, 6); nftnl_rule_add_expr(rule, payload_expr); cmp_expr = nftnl_expr_alloc("cmp"); nftnl_expr_set_u32(cmp_expr, NFTNL_EXPR_CMP_SREG, NFT_REG_1);...