Merge 8ca5297e7e Merge tag 'kconfig-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild into android-mainline
A tiny step en route to v5.13-rc1 Signed-off-by: Lee Jones <lee.jones@linaro.org> Change-Id: I7eba2160e4a0e04beaf653dcce126a5b2e5a50ac
This commit is contained in:
@@ -124,8 +124,6 @@ struct ip_set_ext {
|
||||
bool target;
|
||||
};
|
||||
|
||||
struct ip_set;
|
||||
|
||||
#define ext_timeout(e, s) \
|
||||
((unsigned long *)(((void *)(e)) + (s)->offset[IPSET_EXT_ID_TIMEOUT]))
|
||||
#define ext_counter(e, s) \
|
||||
|
||||
@@ -7,21 +7,26 @@
|
||||
#include <net/netlink.h>
|
||||
#include <uapi/linux/netfilter/nfnetlink.h>
|
||||
|
||||
struct nfnl_info {
|
||||
struct net *net;
|
||||
struct sock *sk;
|
||||
const struct nlmsghdr *nlh;
|
||||
struct netlink_ext_ack *extack;
|
||||
};
|
||||
|
||||
enum nfnl_callback_type {
|
||||
NFNL_CB_UNSPEC = 0,
|
||||
NFNL_CB_MUTEX,
|
||||
NFNL_CB_RCU,
|
||||
NFNL_CB_BATCH,
|
||||
};
|
||||
|
||||
struct nfnl_callback {
|
||||
int (*call)(struct net *net, struct sock *nl, struct sk_buff *skb,
|
||||
const struct nlmsghdr *nlh,
|
||||
const struct nlattr * const cda[],
|
||||
struct netlink_ext_ack *extack);
|
||||
int (*call_rcu)(struct net *net, struct sock *nl, struct sk_buff *skb,
|
||||
const struct nlmsghdr *nlh,
|
||||
const struct nlattr * const cda[],
|
||||
struct netlink_ext_ack *extack);
|
||||
int (*call_batch)(struct net *net, struct sock *nl, struct sk_buff *skb,
|
||||
const struct nlmsghdr *nlh,
|
||||
const struct nlattr * const cda[],
|
||||
struct netlink_ext_ack *extack);
|
||||
const struct nla_policy *policy; /* netlink attribute policy */
|
||||
const u_int16_t attr_count; /* number of nlattr's */
|
||||
int (*call)(struct sk_buff *skb, const struct nfnl_info *info,
|
||||
const struct nlattr * const cda[]);
|
||||
const struct nla_policy *policy;
|
||||
enum nfnl_callback_type type;
|
||||
__u16 attr_count;
|
||||
};
|
||||
|
||||
enum nfnl_abort_action {
|
||||
@@ -51,12 +56,41 @@ int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
|
||||
unsigned int group, int echo, gfp_t flags);
|
||||
int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
|
||||
int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid);
|
||||
void nfnetlink_broadcast(struct net *net, struct sk_buff *skb, __u32 portid,
|
||||
__u32 group, gfp_t allocation);
|
||||
|
||||
static inline u16 nfnl_msg_type(u8 subsys, u8 msg_type)
|
||||
{
|
||||
return subsys << 8 | msg_type;
|
||||
}
|
||||
|
||||
static inline void nfnl_fill_hdr(struct nlmsghdr *nlh, u8 family, u8 version,
|
||||
__be16 res_id)
|
||||
{
|
||||
struct nfgenmsg *nfmsg;
|
||||
|
||||
nfmsg = nlmsg_data(nlh);
|
||||
nfmsg->nfgen_family = family;
|
||||
nfmsg->version = version;
|
||||
nfmsg->res_id = res_id;
|
||||
}
|
||||
|
||||
static inline struct nlmsghdr *nfnl_msg_put(struct sk_buff *skb, u32 portid,
|
||||
u32 seq, int type, int flags,
|
||||
u8 family, u8 version,
|
||||
__be16 res_id)
|
||||
{
|
||||
struct nlmsghdr *nlh;
|
||||
|
||||
nlh = nlmsg_put(skb, portid, seq, type, sizeof(struct nfgenmsg), flags);
|
||||
if (!nlh)
|
||||
return NULL;
|
||||
|
||||
nfnl_fill_hdr(nlh, family, version, res_id);
|
||||
|
||||
return nlh;
|
||||
}
|
||||
|
||||
void nfnl_lock(__u8 subsys_id);
|
||||
void nfnl_unlock(__u8 subsys_id);
|
||||
#ifdef CONFIG_PROVE_LOCKING
|
||||
|
||||
@@ -158,7 +158,7 @@ struct xt_match {
|
||||
|
||||
/* Called when entry of this type deleted. */
|
||||
void (*destroy)(const struct xt_mtdtor_param *);
|
||||
#ifdef CONFIG_COMPAT
|
||||
#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
|
||||
/* Called when userspace align differs from kernel space one */
|
||||
void (*compat_from_user)(void *dst, const void *src);
|
||||
int (*compat_to_user)(void __user *dst, const void *src);
|
||||
@@ -169,7 +169,7 @@ struct xt_match {
|
||||
const char *table;
|
||||
unsigned int matchsize;
|
||||
unsigned int usersize;
|
||||
#ifdef CONFIG_COMPAT
|
||||
#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
|
||||
unsigned int compatsize;
|
||||
#endif
|
||||
unsigned int hooks;
|
||||
@@ -199,7 +199,7 @@ struct xt_target {
|
||||
|
||||
/* Called when entry of this type deleted. */
|
||||
void (*destroy)(const struct xt_tgdtor_param *);
|
||||
#ifdef CONFIG_COMPAT
|
||||
#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
|
||||
/* Called when userspace align differs from kernel space one */
|
||||
void (*compat_from_user)(void *dst, const void *src);
|
||||
int (*compat_to_user)(void __user *dst, const void *src);
|
||||
@@ -210,7 +210,7 @@ struct xt_target {
|
||||
const char *table;
|
||||
unsigned int targetsize;
|
||||
unsigned int usersize;
|
||||
#ifdef CONFIG_COMPAT
|
||||
#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
|
||||
unsigned int compatsize;
|
||||
#endif
|
||||
unsigned int hooks;
|
||||
@@ -229,6 +229,9 @@ struct xt_table {
|
||||
/* Man behind the curtain... */
|
||||
struct xt_table_info *private;
|
||||
|
||||
/* hook ops that register the table with the netfilter core */
|
||||
struct nf_hook_ops *ops;
|
||||
|
||||
/* Set this to THIS_MODULE if you are a module, otherwise NULL */
|
||||
struct module *me;
|
||||
|
||||
@@ -322,6 +325,7 @@ struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision);
|
||||
int xt_find_revision(u8 af, const char *name, u8 revision, int target,
|
||||
int *err);
|
||||
|
||||
struct xt_table *xt_find_table(struct net *net, u8 af, const char *name);
|
||||
struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
|
||||
const char *name);
|
||||
struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,
|
||||
@@ -448,7 +452,7 @@ xt_get_per_cpu_counter(struct xt_counters *cnt, unsigned int cpu)
|
||||
|
||||
struct nf_hook_ops *xt_hook_ops_alloc(const struct xt_table *, nf_hookfn *);
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
|
||||
#include <net/compat.h>
|
||||
|
||||
struct compat_xt_entry_match {
|
||||
@@ -529,5 +533,5 @@ int xt_compat_check_entry_offsets(const void *base, const char *elems,
|
||||
unsigned int target_offset,
|
||||
unsigned int next_offset);
|
||||
|
||||
#endif /* CONFIG_COMPAT */
|
||||
#endif /* CONFIG_NETFILTER_XTABLES_COMPAT */
|
||||
#endif /* _X_TABLES_H */
|
||||
|
||||
Reference in New Issue
Block a user