mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
netfilter: ctnetlink: add zone size to length
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
98ca74f4d5
commit
4a001068d7
@ -596,6 +596,9 @@ ctnetlink_nlmsg_size(const struct nf_conn *ct)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NF_CONNTRACK_MARK
|
#ifdef CONFIG_NF_CONNTRACK_MARK
|
||||||
+ nla_total_size(sizeof(u_int32_t)) /* CTA_MARK */
|
+ nla_total_size(sizeof(u_int32_t)) /* CTA_MARK */
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_NF_CONNTRACK_ZONES
|
||||||
|
+ nla_total_size(sizeof(u_int16_t)) /* CTA_ZONE */
|
||||||
#endif
|
#endif
|
||||||
+ ctnetlink_proto_size(ct)
|
+ ctnetlink_proto_size(ct)
|
||||||
+ ctnetlink_label_size(ct)
|
+ ctnetlink_label_size(ct)
|
||||||
@ -2039,6 +2042,9 @@ ctnetlink_nfqueue_build_size(const struct nf_conn *ct)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NF_CONNTRACK_MARK
|
#ifdef CONFIG_NF_CONNTRACK_MARK
|
||||||
+ nla_total_size(sizeof(u_int32_t)) /* CTA_MARK */
|
+ nla_total_size(sizeof(u_int32_t)) /* CTA_MARK */
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_NF_CONNTRACK_ZONES
|
||||||
|
+ nla_total_size(sizeof(u_int16_t)) /* CTA_ZONE */
|
||||||
#endif
|
#endif
|
||||||
+ ctnetlink_proto_size(ct)
|
+ ctnetlink_proto_size(ct)
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user