Merge e0dbda9f26
("netfilter: ctnetlink: compile ctnetlink_label_size with CONFIG_NF_CONNTRACK_EVENTS") into android12-5.10-lts
Steps on the way to 5.10.227 Change-Id: I0b10c995547c8a307f9f22bfec8158d76554904f Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
commit
f6317d304f
@ -365,7 +365,7 @@ static int ctnetlink_dump_secctx(struct sk_buff *skb, const struct nf_conn *ct)
|
||||
#define ctnetlink_dump_secctx(a, b) (0)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NF_CONNTRACK_LABELS
|
||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||
static inline int ctnetlink_label_size(const struct nf_conn *ct)
|
||||
{
|
||||
struct nf_conn_labels *labels = nf_ct_labels_find(ct);
|
||||
@ -374,6 +374,7 @@ static inline int ctnetlink_label_size(const struct nf_conn *ct)
|
||||
return 0;
|
||||
return nla_total_size(sizeof(labels->bits));
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
ctnetlink_dump_labels(struct sk_buff *skb, const struct nf_conn *ct)
|
||||
@ -394,10 +395,6 @@ ctnetlink_dump_labels(struct sk_buff *skb, const struct nf_conn *ct)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#define ctnetlink_dump_labels(a, b) (0)
|
||||
#define ctnetlink_label_size(a) (0)
|
||||
#endif
|
||||
|
||||
#define master_tuple(ct) &(ct->master->tuplehash[IP_CT_DIR_ORIGINAL].tuple)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user