diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-10-28 22:47:55 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-01 11:30:20 +0300 |
commit | b5bdc6f9c24db9a0adf8bd00c0e935b184654f00 (patch) | |
tree | bcdd60d50967115fb4dbce2ea7d1dc62da7da199 /net/netfilter/nft_meta.c | |
parent | 56fa95014a0447f798444e626091cbeb3176af24 (diff) | |
download | linux-b5bdc6f9c24db9a0adf8bd00c0e935b184654f00.tar.xz |
netfilter: nf_tables: convert pktinfo->tprot_set to flags field
Generalize boolean field to store more flags on the pktinfo structure.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_meta.c')
-rw-r--r-- | net/netfilter/nft_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_meta.c b/net/netfilter/nft_meta.c index 516e74635bae..fe91ff5f8fbe 100644 --- a/net/netfilter/nft_meta.c +++ b/net/netfilter/nft_meta.c @@ -333,7 +333,7 @@ void nft_meta_get_eval(const struct nft_expr *expr, nft_reg_store8(dest, nft_pf(pkt)); break; case NFT_META_L4PROTO: - if (!pkt->tprot_set) + if (!(pkt->flags & NFT_PKTINFO_L4PROTO)) goto err; nft_reg_store8(dest, pkt->tprot); break; |