Home
last modified time | relevance | path

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

12345678910>>...16

/Linux-v4.19/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.h69 int (*validate)(struct nlattr *tb[],
70 struct nlattr *data[],
75 struct nlattr *tb[],
76 struct nlattr *data[],
79 struct nlattr *tb[],
80 struct nlattr *data[],
99 struct nlattr *tb[],
100 struct nlattr *data[],
146 const struct nlattr *attr);
148 const struct nlattr *attr);
[all …]
Dact_api.h90 int (*init)(struct net *net, struct nlattr *nla,
91 struct nlattr *est, struct tc_action **act, int ovr,
147 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
168 int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
169 struct nlattr *est, char *name, int ovr, int bind,
173 struct nlattr *nla, struct nlattr *est,
/Linux-v4.19/net/openvswitch/
Dflow_netlink.h49 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[],
52 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1],
60 const struct nlattr *key, const struct nlattr *mask,
66 bool ovs_nla_get_ufid(struct sw_flow_id *, const struct nlattr *, bool log);
67 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid,
69 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr);
71 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
76 int ovs_nla_put_actions(const struct nlattr *attr,
82 int nsh_key_from_nlattr(const struct nlattr *attr, struct ovs_key_nsh *nsh,
84 int nsh_hdr_from_nlattr(const struct nlattr *attr, struct nshhdr *nh,
Dflow_netlink.c64 static bool actions_may_change_flow(const struct nlattr *actions) in actions_may_change_flow()
66 struct nlattr *nla; in actions_may_change_flow()
472 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs()
473 const struct nlattr *a[], in __parse_flow_nlattrs()
476 const struct nlattr *nla; in __parse_flow_nlattrs()
517 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs()
518 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs()
524 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs()
530 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr()
581 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr()
[all …]
Dvport-vxlan.c44 struct nlattr *exts; in vxlan_get_options()
64 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts()
67 struct nlattr *exts[OVS_VXLAN_EXT_MAX + 1]; in vxlan_configure_exts()
70 if (nla_len(attr) < sizeof(struct nlattr)) in vxlan_configure_exts()
87 struct nlattr *options = parms->options; in vxlan_tnl_create()
90 struct nlattr *a; in vxlan_tnl_create()
Dvport.h48 int ovs_vport_set_options(struct vport *, struct nlattr *options);
51 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
110 struct nlattr *options;
115 struct nlattr *upcall_portids;
141 int (*set_options)(struct vport *, struct nlattr *);
Dconntrack.h27 int ovs_ct_copy_action(struct net *, const struct nlattr *,
39 void ovs_ct_free_action(const struct nlattr *a);
57 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action()
104 static inline void ovs_ct_free_action(const struct nlattr *a) { } in ovs_ct_free_action()
/Linux-v4.19/tools/lib/bpf/
Dnlattr.c29 static int nla_len(const struct nlattr *nla) in nla_len()
34 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next()
39 return (struct nlattr *) ((char *) nla + totlen); in nla_next()
42 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok()
49 static void *nla_data(const struct nlattr *nla) in nla_data()
54 static int nla_type(const struct nlattr *nla) in nla_type()
59 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla()
117 static int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, in nla_parse()
120 struct nlattr *nla; in nla_parse()
123 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in nla_parse()
[all …]
/Linux-v4.19/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-v4.19/drivers/block/drbd/
Ddrbd_nla.c7 static int drbd_nla_check_mandatory(int maxtype, struct nlattr *nla) in drbd_nla_check_mandatory()
9 struct nlattr *head = nla_data(nla); in drbd_nla_check_mandatory()
31 int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, in drbd_nla_parse_nested()
43 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested()
Ddrbd_nla.h5 extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
/Linux-v4.19/net/tipc/
Dnetlink_compat.c67 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs);
199 struct nlattr **attrs; in __tipc_nl_compat_dumpit()
286 struct nlattr **attrbuf; in __tipc_nl_compat_doit()
294 sizeof(struct nlattr *), in __tipc_nl_compat_doit()
316 (const struct nlattr *)trans_buf->data, in __tipc_nl_compat_doit()
357 struct nlattr **attrs) in tipc_nl_compat_bearer_dump()
359 struct nlattr *bearer[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_compat_bearer_dump()
379 struct nlattr *prop; in tipc_nl_compat_bearer_enable()
380 struct nlattr *bearer; in tipc_nl_compat_bearer_enable()
413 struct nlattr *bearer; in tipc_nl_compat_bearer_disable()
[all …]
/Linux-v4.19/net/dcb/
Ddcbnl.c219 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getstate()
230 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getpfccfg()
232 struct nlattr *data[DCB_PFC_UP_ATTR_MAX + 1], *nest; in dcbnl_getpfccfg()
274 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getperm_hwaddr()
288 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getcap()
290 struct nlattr *data[DCB_CAP_ATTR_MAX + 1], *nest; in dcbnl_getcap()
332 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getnumtcs()
334 struct nlattr *data[DCB_NUMTCS_ATTR_MAX + 1], *nest; in dcbnl_getnumtcs()
378 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_setnumtcs()
380 struct nlattr *data[DCB_NUMTCS_ATTR_MAX + 1]; in dcbnl_setnumtcs()
[all …]
/Linux-v4.19/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-v4.19/net/8021q/
Dvlan_netlink.c34 static inline int vlan_validate_qos_map(struct nlattr *attr) in vlan_validate_qos_map()
42 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[], in vlan_validate()
106 static int vlan_changelink(struct net_device *dev, struct nlattr *tb[], in vlan_changelink()
107 struct nlattr *data[], in vlan_changelink()
112 struct nlattr *attr; in vlan_changelink()
135 struct nlattr *tb[], struct nlattr *data[], in vlan_newlink()
195 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size()
216 struct nlattr *nest; in vlan_fill_info()
/Linux-v4.19/net/netfilter/
Dnfnetlink_cthelper.c76 const struct nlattr *attr) in nfnl_cthelper_parse_tuple()
79 struct nlattr *tb[NFCTH_TUPLE_MAX+1]; in nfnl_cthelper_parse_tuple()
99 nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct) in nfnl_cthelper_from_nlattr()
137 const struct nlattr *attr) in nfnl_cthelper_expect_policy()
140 struct nlattr *tb[NFCTH_POLICY_MAX+1]; in nfnl_cthelper_expect_policy()
172 const struct nlattr *attr) in nfnl_cthelper_parse_expect_policy()
176 struct nlattr *tb[NFCTH_POLICY_SET_MAX+1]; in nfnl_cthelper_parse_expect_policy()
218 nfnl_cthelper_create(const struct nlattr * const tb[], in nfnl_cthelper_create()
287 const struct nlattr *attr) in nfnl_cthelper_update_policy_one()
289 struct nlattr *tb[NFCTH_POLICY_MAX + 1]; in nfnl_cthelper_update_policy_one()
[all …]
Dnf_conntrack_netlink.c64 struct nlattr *nest_parms; in ctnetlink_dump_tuples_proto()
105 struct nlattr *nest_parms; in ctnetlink_dump_tuples_ip()
184 struct nlattr *nest_proto; in ctnetlink_dump_protoinfo()
208 struct nlattr *nest_helper; in ctnetlink_dump_helpinfo()
242 struct nlattr *nest_count; in dump_counters()
290 struct nlattr *nest_count; in ctnetlink_dump_timestamp()
332 struct nlattr *nest_secctx; in ctnetlink_dump_secctx()
396 struct nlattr *nest_parms; in ctnetlink_dump_master()
417 struct nlattr *nest_parms; in dump_ct_seq_adj()
466 struct nlattr *nest_parms; in ctnetlink_dump_ct_synproxy()
[all …]
Dnft_tunnel.c54 const struct nlattr * const tb[]) in nft_tunnel_get_init()
133 const struct nlattr *attr, in nft_tunnel_obj_ip_init()
136 struct nlattr *tb[NFTA_TUNNEL_KEY_IP_MAX + 1]; in nft_tunnel_obj_ip_init()
162 const struct nlattr *attr, in nft_tunnel_obj_ip6_init()
165 struct nlattr *tb[NFTA_TUNNEL_KEY_IP6_MAX + 1]; in nft_tunnel_obj_ip6_init()
198 static int nft_tunnel_obj_vxlan_init(const struct nlattr *attr, in nft_tunnel_obj_vxlan_init()
201 struct nlattr *tb[NFTA_TUNNEL_KEY_VXLAN_MAX + 1]; in nft_tunnel_obj_vxlan_init()
226 static int nft_tunnel_obj_erspan_init(const struct nlattr *attr, in nft_tunnel_obj_erspan_init()
229 struct nlattr *tb[NFTA_TUNNEL_KEY_ERSPAN_MAX + 1]; in nft_tunnel_obj_erspan_init()
275 const struct nlattr *attr, in nft_tunnel_obj_opts_init()
[all …]
/Linux-v4.19/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[],
/Linux-v4.19/include/linux/
Dinet_diag.h10 struct nlattr;
19 struct nlattr *bc);
52 struct nlattr *bc);
61 int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
/Linux-v4.19/net/sched/
Dact_api.c197 struct nlattr *nest; in tcf_dump_walker()
252 struct nlattr *nest; in tcf_del_walker()
357 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est, in tcf_idr_create()
578 static struct tc_action_ops *tc_lookup_action(struct nlattr *kind) in tc_lookup_action()
705 struct nlattr *nest; in tcf_action_dump_1()
743 struct nlattr *nest; in tcf_action_dump()
765 static struct tc_cookie *nla_memdup_cookie(struct nlattr **tb) in nla_memdup_cookie()
791 struct nlattr *nla, struct nlattr *est, in tcf_action_init_1()
800 struct nlattr *tb[TCA_ACT_MAX + 1]; in tcf_action_init_1()
801 struct nlattr *kind; in tcf_action_init_1()
[all …]
/Linux-v4.19/net/xfrm/
Dxfrm_user.c36 static int verify_one_alg(struct nlattr **attrs, enum xfrm_attr_type_t type) in verify_one_alg()
38 struct nlattr *rt = attrs[type]; in verify_one_alg()
62 static int verify_auth_trunc(struct nlattr **attrs) in verify_auth_trunc()
64 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc()
78 static int verify_aead(struct nlattr **attrs) in verify_aead()
80 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead()
94 static void verify_one_addr(struct nlattr **attrs, enum xfrm_attr_type_t type, in verify_one_addr()
97 struct nlattr *rt = attrs[type]; in verify_one_addr()
103 static inline int verify_sec_ctx_len(struct nlattr **attrs) in verify_sec_ctx_len()
105 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in verify_sec_ctx_len()
[all …]
/Linux-v4.19/tools/accounting/
Dgetdelays.c123 struct nlattr *na; in send_cmd()
137 na = (struct nlattr *) GENLMSG_DATA(&msg); in send_cmd()
172 struct nlattr *na; in get_family_id()
187 na = (struct nlattr *) GENLMSG_DATA(&ans); in get_family_id()
188 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id()
263 struct nlattr *na; in main()
468 na = (struct nlattr *) GENLMSG_DATA(&msg); in main()
479 na = (struct nlattr *) NLA_DATA(na); in main()
518 na = (struct nlattr *)((char *)na + in main()
532 na = (struct nlattr *) (GENLMSG_DATA(&msg) + len); in main()
/Linux-v4.19/net/decnet/
Ddn_fib.c150 static int dn_fib_count_nhs(const struct nlattr *attr) in dn_fib_count_nhs()
164 static int dn_fib_get_nhs(struct dn_fib_info *fi, const struct nlattr *attr, in dn_fib_get_nhs()
182 struct nlattr *gw_attr; in dn_fib_get_nhs()
184 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
267 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct nlattr *attrs[], in dn_fib_create_info()
298 struct nlattr *attr; in dn_fib_create_info()
497 static inline u32 rtm_get_table(struct nlattr *attrs[], u8 table) in rtm_get_table()
511 struct nlattr *attrs[RTA_MAX+1]; in dn_fib_rtm_delroute()
538 struct nlattr *attrs[RTA_MAX+1]; in dn_fib_rtm_newroute()
567 struct nlattr hdr; in fib_magic()
[all …]

12345678910>>...16