summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv6.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-09-12 10:58:44 +0200
committerFlorian Westphal <fw@strlen.de>2022-09-13 14:14:38 +0200
commitb4fd0f682b53609c747e6dd69cc5024545d4b90c (patch)
tree22ffb65b47917d61393b42d6171dbb96b0ae22ce /iptables/nft-ipv6.c
parent0da2d1a35bd70d37f72d594927c0649d1dea4f7c (diff)
nft: support ttl/hoplimit dissection
xlate raw "nft ... ttl eq 1" and so on to the ttl/hl matches. Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r--iptables/nft-ipv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c
index 9a29d18b..0ab1f971 100644
--- a/iptables/nft-ipv6.c
+++ b/iptables/nft-ipv6.c
@@ -169,6 +169,9 @@ static void nft_ipv6_parse_payload(struct nft_xt_ctx *ctx,
cs->fw6.ipv6.proto = proto;
if (inv)
cs->fw6.ipv6.invflags |= IP6T_INV_PROTO;
+ case offsetof(struct ip6_hdr, ip6_hlim):
+ nft_parse_hl(ctx, e, cs);
+ break;
default:
DEBUGP("unknown payload offset %d\n", ctx->payload.offset);
break;