diff options
author | Phil Sutter <phil@nwl.cc> | 2017-03-10 18:13:50 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-10 19:01:21 +0100 |
commit | 627be570eff8f05849614a257e6fa45c744f4dbd (patch) | |
tree | bf434417d7d862ab4ee74cb7f330729fa84149fc /src/netlink_linearize.c | |
parent | 9fd9baba43c8ee17f944a1157b77a8e47cb9ba41 (diff) |
exthdr: Add support for exthdr specific flags
This allows to have custom flags in exthdr expression, which is
necessary for upcoming existence checks (of both IPv6 extension headers
as well as TCP options).
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/netlink_linearize.c')
-rw-r--r-- | src/netlink_linearize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netlink_linearize.c b/src/netlink_linearize.c index 293150e2..b2f27b7a 100644 --- a/src/netlink_linearize.c +++ b/src/netlink_linearize.c @@ -178,6 +178,7 @@ static void netlink_gen_exthdr(struct netlink_linearize_ctx *ctx, nftnl_expr_set_u32(nle, NFTNL_EXPR_EXTHDR_LEN, div_round_up(expr->len, BITS_PER_BYTE)); nftnl_expr_set_u8(nle, NFTNL_EXPR_EXTHDR_OP, expr->exthdr.op); + nftnl_expr_set_u32(nle, NFTNL_EXPR_EXTHDR_FLAGS, expr->exthdr.flags); nftnl_rule_add_expr(ctx->nlr, nle); } |