mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
netfilter: conntrack: fix extension size table
[ Upstream commit4908d5af16] The size table is incorrect due to copypaste error, this reserves more size than needed. TSTAMP reserved 32 instead of 16 bytes. TIMEOUT reserved 16 instead of 8 bytes. Fixes:5f31edc067("netfilter: conntrack: move extension sizes into core") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
09424e8812
commit
f5a75b3d31
@@ -40,10 +40,10 @@ static const u8 nf_ct_ext_type_len[NF_CT_EXT_NUM] = {
|
|||||||
[NF_CT_EXT_ECACHE] = sizeof(struct nf_conntrack_ecache),
|
[NF_CT_EXT_ECACHE] = sizeof(struct nf_conntrack_ecache),
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NF_CONNTRACK_TIMESTAMP
|
#ifdef CONFIG_NF_CONNTRACK_TIMESTAMP
|
||||||
[NF_CT_EXT_TSTAMP] = sizeof(struct nf_conn_acct),
|
[NF_CT_EXT_TSTAMP] = sizeof(struct nf_conn_tstamp),
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NF_CONNTRACK_TIMEOUT
|
#ifdef CONFIG_NF_CONNTRACK_TIMEOUT
|
||||||
[NF_CT_EXT_TIMEOUT] = sizeof(struct nf_conn_tstamp),
|
[NF_CT_EXT_TIMEOUT] = sizeof(struct nf_conn_timeout),
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NF_CONNTRACK_LABELS
|
#ifdef CONFIG_NF_CONNTRACK_LABELS
|
||||||
[NF_CT_EXT_LABELS] = sizeof(struct nf_conn_labels),
|
[NF_CT_EXT_LABELS] = sizeof(struct nf_conn_labels),
|
||||||
|
|||||||
Reference in New Issue
Block a user