Home
last modified time | relevance | path

Searched refs:nlattr (Results 1 – 25 of 42) sorted by relevance

12

/linux-4.19.296/include/net/
Dnetlink.h246 int nla_validate(const struct nlattr *head, int len, int maxtype,
249 int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
253 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
254 size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize);
255 char *nla_strdup(const struct nlattr *nla, gfp_t flags);
256 int nla_memcpy(void *dest, const struct nlattr *src, int count);
257 int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
258 int nla_strcmp(const struct nlattr *nla, const char *str);
259 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
260 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
[all …]
Drtnetlink.h71 int (*validate)(struct nlattr *tb[],
72 struct nlattr *data[],
77 struct nlattr *tb[],
78 struct nlattr *data[],
81 struct nlattr *tb[],
82 struct nlattr *data[],
101 struct nlattr *tb[],
102 struct nlattr *data[],
148 const struct nlattr *attr);
150 const struct nlattr *attr);
[all …]
Dact_api.h92 int (*init)(struct net *net, struct nlattr *nla,
93 struct nlattr *est, struct tc_action **act, int ovr,
150 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
171 int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
172 struct nlattr *est, char *name, int ovr, int bind,
176 struct nlattr *nla, struct nlattr *est,
Dlwtunnel.h40 int (*build_state)(struct nlattr *encap,
117 int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int len,
120 struct nlattr *encap,
204 static inline int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int len, in lwtunnel_valid_encap_type_attr()
214 struct nlattr *encap, in lwtunnel_build_state()
Dgen_stats.h20 struct nlattr * tail;
63 seqcount_t *running, struct nlattr *opt);
69 seqcount_t *running, struct nlattr *opt);
Dnexthop.h24 static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) in rtnh_attrs()
26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs()
Dgenetlink.h59 struct nlattr ** attrbuf; /* private */
68 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
88 struct nlattr ** attrs;
107 struct nlattr *attr) in genl_err_attr()
170 struct nlattr *tb[], int maxtype, in genlmsg_parse()
Dfib_rules.h78 struct nlattr **,
83 struct nlattr **);
149 static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) in frh_get_table()
/linux-4.19.296/lib/
Dnlattr.c47 static int validate_nla_bitfield32(const struct nlattr *nla, in validate_nla_bitfield32()
71 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla()
175 int nla_validate(const struct nlattr *head, int len, int maxtype, in nla_validate()
179 const struct nlattr *nla; in nla_validate()
240 int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, in nla_parse()
244 const struct nlattr *nla; in nla_parse()
247 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in nla_parse()
262 tb[type] = (struct nlattr *)nla; in nla_parse()
284 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) in nla_find()
286 const struct nlattr *nla; in nla_find()
[all …]
/linux-4.19.296/include/linux/netfilter/ipset/
Dip_set.h167 int (*uadt)(struct ip_set *set, struct nlattr *tb[],
217 struct nlattr *tb[], u32 flags);
336 extern int ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr);
337 extern int ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr);
338 extern size_t ip_set_elem_len(struct ip_set *set, struct nlattr *tb[],
340 extern int ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[],
350 ip_set_get_hostipaddr4(struct nlattr *nla, u32 *ipaddr) in ip_set_get_hostipaddr4()
380 ip_set_attr_netorder(struct nlattr *tb[], int type) in ip_set_attr_netorder()
386 ip_set_optattr_netorder(struct nlattr *tb[], int type) in ip_set_optattr_netorder()
393 ip_set_get_h32(const struct nlattr *attr) in ip_set_get_h32()
[all …]
/linux-4.19.296/include/net/netfilter/
Dnf_conntrack_l4proto.h66 int (*to_nlattr)(struct sk_buff *skb, struct nlattr *nla,
70 int (*from_nlattr)(struct nlattr *tb[], struct nf_conn *ct);
76 int (*nlattr_to_tuple)(struct nlattr *tb[],
81 int (*nlattr_to_obj)(struct nlattr *tb[],
135 int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[],
Dnf_tables.h162 const struct nlattr * const *nla;
177 struct nft_data_desc *desc, const struct nlattr *nla);
193 int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest);
196 int nft_parse_register_load(const struct nlattr *attr, u8 *sreg, u32 len);
198 const struct nlattr *attr, u8 *dreg,
344 u64 (*privsize)(const struct nlattr * const nla[],
351 const struct nlattr * const nla[]);
451 const struct nlattr *nla_set_name,
452 const struct nlattr *nla_set_id,
722 const struct nlattr * const tb[]);
[all …]
Dnf_nat_l4proto.h41 int (*nlattr_to_range)(struct nlattr *tb[],
79 int nf_nat_l4proto_nlattr_to_range(struct nlattr *tb[],
Dnf_conntrack_helper.h47 int (*from_nlattr)(struct nlattr *attr, struct nf_conn *ct);
95 int (*from_nlattr)(struct nlattr *attr,
Dnft_masq.h15 const struct nlattr * const tb[]);
Dnft_redir.h15 const struct nlattr * const tb[]);
Dnft_reject.h18 const struct nlattr * const tb[]);
/linux-4.19.296/include/linux/
Dinet_diag.h14 struct nlattr *bc);
47 struct nlattr *bc);
56 int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
Dif_macvlan.h62 struct nlattr *tb[], struct nlattr *data[],
Dnetfilter.h341 struct nlattr;
346 const struct nlattr *attr);
438 struct nlattr;
447 int (*parse)(const struct nlattr *attr, struct nf_conn *ct);
448 int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct,
Dgenl_magic_func.h134 static struct nlattr *nested_attr_tb[128];
143 struct nlattr *tla = info->attrs[tag_number]; \
144 struct nlattr **ntb = nested_attr_tb; \
145 struct nlattr *nla; \
325 struct nlattr *tla = nla_nest_start(skb, tag_number); \
Drtnetlink.h119 struct nlattr *tb[],
125 struct nlattr *tb[],
/linux-4.19.296/crypto/
Dcrypto_user.c261 struct nlattr **attrs) in crypto_report()
336 struct nlattr **attrs) in crypto_update_alg()
340 struct nlattr *priority = attrs[CRYPTOCFGA_PRIORITY_VAL]; in crypto_update_alg()
372 struct nlattr **attrs) in crypto_del_alg()
409 struct nlattr **attrs) in crypto_add_alg()
415 struct nlattr *priority = attrs[CRYPTOCFGA_PRIORITY_VAL]; in crypto_add_alg()
457 struct nlattr **attrs) in crypto_del_rng()
481 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
497 struct nlattr *attrs[CRYPTOCFGA_MAX+1]; in crypto_user_rcv_msg()
/linux-4.19.296/include/linux/netfilter/
Dnfnetlink.h13 const struct nlattr * const cda[],
17 const struct nlattr * const cda[],
21 const struct nlattr * const cda[],
/linux-4.19.296/include/uapi/linux/
Dnetlink.h210 struct nlattr { struct
231 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) argument

12