Skip to content

Commit efaea94

Browse files
committed
netfilter: nft_ct: keep counters away from CONFIG_NF_CONNTRACK_LABELS
This is accidental, they don't depend on the label infrastructure. Fixes: 48f66c9 ("netfilter: nft_ct: add byte/packet counter support") Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Acked-by: Florian Westphal <fw@strlen.de>
1 parent f90d2d3 commit efaea94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_ct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ static void nft_ct_get_eval(const struct nft_expr *expr,
127127
NF_CT_LABELS_MAX_SIZE - size);
128128
return;
129129
}
130+
#endif
130131
case NFT_CT_BYTES: /* fallthrough */
131132
case NFT_CT_PKTS: {
132133
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,
138139
memcpy(dest, &count, sizeof(count));
139140
return;
140141
}
141-
#endif
142142
default:
143143
break;
144144
}

0 commit comments

Comments
 (0)