Commit efaea94a authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nft_ct: keep counters away from CONFIG_NF_CONNTRACK_LABELS

This is accidental, they don't depend on the label infrastructure.

Fixes: 48f66c90 ("netfilter: nft_ct: add byte/packet counter support")
Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Acked-by: default avatarFlorian Westphal <fw@strlen.de>
parent f90d2d37
...@@ -127,6 +127,7 @@ static void nft_ct_get_eval(const struct nft_expr *expr, ...@@ -127,6 +127,7 @@ static void nft_ct_get_eval(const struct nft_expr *expr,
NF_CT_LABELS_MAX_SIZE - size); NF_CT_LABELS_MAX_SIZE - size);
return; return;
} }
#endif
case NFT_CT_BYTES: /* fallthrough */ case NFT_CT_BYTES: /* fallthrough */
case NFT_CT_PKTS: { case NFT_CT_PKTS: {
const struct nf_conn_acct *acct = nf_conn_acct_find(ct); const struct nf_conn_acct *acct = nf_conn_acct_find(ct);
...@@ -138,7 +139,6 @@ static void nft_ct_get_eval(const struct nft_expr *expr, ...@@ -138,7 +139,6 @@ static void nft_ct_get_eval(const struct nft_expr *expr,
memcpy(dest, &count, sizeof(count)); memcpy(dest, &count, sizeof(count));
return; return;
} }
#endif
default: default:
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment