Home
last modified time | relevance | path

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

12345678910>>...20

/openbmc/qemu/linux-user/
H A Dfd-trans.c415 static abi_long host_to_target_for_each_nlattr(struct nlattr *nlattr, in host_to_target_for_each_nlattr() argument
432 nlattr->nla_len = tswap16(nlattr->nla_len); in host_to_target_for_each_nlattr()
433 nlattr->nla_type = tswap16(nlattr->nla_type); in host_to_target_for_each_nlattr()
443 nlattr = (struct nlattr *)(((char *)nlattr) + aligned_nla_len); in host_to_target_for_each_nlattr()
636 static abi_long host_to_target_data_tun_nlattr(struct nlattr *nlattr, in host_to_target_data_tun_nlattr() argument
731 static abi_long host_to_target_data_inet_nlattr(struct nlattr *nlattr, in host_to_target_data_inet_nlattr() argument
804 static abi_long host_to_target_data_spec_nlattr(struct nlattr *nlattr, in host_to_target_data_spec_nlattr() argument
824 static abi_long host_to_target_data_xdp_nlattr(struct nlattr *nlattr, in host_to_target_data_xdp_nlattr() argument
1300 nlattr->nla_len = tswap16(nlattr->nla_len); in target_to_host_for_each_nlattr()
1301 nlattr->nla_type = tswap16(nlattr->nla_type); in target_to_host_for_each_nlattr()
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dnlattr.h84 static inline void *libbpf_nla_data(const struct nlattr *nla) in libbpf_nla_data()
118 static inline int libbpf_nla_len(const struct nlattr *nla) in libbpf_nla_len()
123 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head,
125 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,
126 struct nlattr *nla,
131 static inline struct nlattr *nla_data(struct nlattr *nla) in nla_data()
133 return (struct nlattr *)((void *)nla + NLA_HDRLEN); in nla_data()
136 static inline struct nlattr *req_tail(struct libbpf_nla_req *req) in req_tail()
144 struct nlattr *nla; in nlattr_add()
162 struct nlattr *tail; in nlattr_begin_nested()
[all …]
H A Dnlattr.c25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next()
30 return (struct nlattr *)((void *)nla + totlen); in nla_next()
33 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok()
40 static int nla_type(const struct nlattr *nla) in nla_type()
45 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla()
104 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse()
107 struct nlattr *nla; in libbpf_nla_parse()
110 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse()
150 struct nlattr *nla, in libbpf_nla_parse_nested()
164 struct nlattr *tb[NLMSGERR_ATTR_MAX + 1], *attr; in libbpf_nla_dump_errormsg()
[all …]
/openbmc/linux/include/net/
H A Dnetlink.h516 int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
520 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
663 const struct nlattr *head, int len, in nla_parse()
713 const struct nlattr *head, in nla_parse_deprecated_strict()
735 struct nlattr *tb[], int maxtype, in __nlmsg_parse()
782 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated()
1217 static inline struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next()
1232 static inline struct nlattr *
1249 const struct nlattr *nla, in nla_parse_nested()
1273 const struct nlattr *nla, in nla_parse_nested_deprecated()
[all …]
H A Drtnetlink.h111 int (*validate)(struct nlattr *tb[],
112 struct nlattr *data[],
117 struct nlattr *tb[],
118 struct nlattr *data[],
121 struct nlattr *tb[],
122 struct nlattr *data[],
141 struct nlattr *tb[],
142 struct nlattr *data[],
188 const struct nlattr *attr,
205 struct nlattr *tb[],
[all …]
/openbmc/linux/net/openvswitch/
H A Dflow_netlink.h35 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[],
38 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1],
46 const struct nlattr *key, const struct nlattr *mask,
52 bool ovs_nla_get_ufid(struct sw_flow_id *, const struct nlattr *, bool log);
53 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid,
55 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr);
57 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
62 int ovs_nla_put_actions(const struct nlattr *attr,
68 int nsh_key_from_nlattr(const struct nlattr *attr, struct ovs_key_nsh *nsh,
70 int nsh_hdr_from_nlattr(const struct nlattr *attr, struct nshhdr *nh,
H A Dflow_netlink.c55 struct nlattr *nla; in actions_may_change_flow()
589 struct nlattr *a; in vxlan_tun_opt_from_nlattr()
676 struct nlattr *a; in ip_tun_from_nlattr()
859 struct nlattr *nla; in vxlan_opt_to_nlattr()
950 struct nlattr *nla; in ip_tun_to_nlattr()
1298 struct nlattr *a; in nsh_hdr_from_nlattr()
1352 struct nlattr *a; in nsh_key_from_nlattr()
1393 struct nlattr *a; in nsh_key_put_from_nlattr()
2497 struct nlattr *a; in __add_action()
2516 struct nlattr *a; in ovs_nla_add_action()
[all …]
H A Dvport-vxlan.c31 struct nlattr *exts; in vxlan_get_options()
51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts()
54 struct nlattr *exts[OVS_VXLAN_EXT_MAX + 1]; in vxlan_configure_exts()
57 if (nla_len(attr) < sizeof(struct nlattr)) in vxlan_configure_exts()
74 struct nlattr *options = parms->options; in vxlan_tnl_create()
77 struct nlattr *a; in vxlan_tnl_create()
H A Dvport.h37 int ovs_vport_set_options(struct vport *, struct nlattr *options);
40 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
105 struct nlattr *options;
110 struct nlattr *upcall_portids;
136 int (*set_options)(struct vport *, struct nlattr *);
/openbmc/linux/tools/bpf/bpftool/
H A Dnetlink_dumper.c14 static void xdp_dump_prog_id(struct nlattr **tb, int attr, in xdp_dump_prog_id()
32 struct nlattr *tb[IFLA_XDP_MAX + 1]; in do_xdp_dump_one()
72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump()
81 static int do_bpf_dump_one_act(struct nlattr *attr) in do_bpf_dump_one_act()
83 struct nlattr *tb[TCA_ACT_BPF_MAX + 1]; in do_bpf_dump_one_act()
102 static int do_dump_one_act(struct nlattr *attr) in do_dump_one_act()
104 struct nlattr *tb[TCA_ACT_MAX + 1]; in do_dump_one_act()
119 static int do_bpf_act_dump(struct nlattr *attr) in do_bpf_act_dump()
121 struct nlattr *tb[TCA_ACT_MAX_PRIO + 1]; in do_bpf_act_dump()
138 static int do_bpf_filter_dump(struct nlattr *attr) in do_bpf_filter_dump()
[all …]
/openbmc/linux/drivers/block/drbd/
H A 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()
44 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested()
H A 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);
/openbmc/linux/lib/
H A Dnlattr.c94 const struct nlattr *entry; in nla_validate_array()
283 const struct nlattr *nla, in nla_validate_int_range_signed()
318 const struct nlattr *nla, in nla_validate_int_range()
344 const struct nlattr *nla, in nla_validate_mask()
588 const struct nlattr *nla; in __nla_validate_parse()
723 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) in nla_find()
725 const struct nlattr *nla; in nla_find()
730 return (struct nlattr *)nla; in nla_find()
882 struct nlattr *nla; in __nla_reserve()
1016 struct nlattr *nla; in __nla_put()
[all …]
/openbmc/linux/net/bridge/
H A Dbr_mrp_netlink.c34 struct nlattr *tb[IFLA_BRIDGE_MRP_INSTANCE_MAX + 1]; in br_mrp_instance_parse()
76 struct nlattr *attr, in br_mrp_port_state_parse()
79 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_STATE_MAX + 1]; in br_mrp_port_state_parse()
105 struct nlattr *attr, in br_mrp_port_role_parse()
108 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_ROLE_MAX + 1]; in br_mrp_port_role_parse()
171 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_ROLE_MAX + 1]; in br_mrp_ring_role_parse()
251 struct nlattr *tb[IFLA_BRIDGE_MRP_IN_STATE_MAX + 1]; in br_mrp_in_state_parse()
287 struct nlattr *tb[IFLA_BRIDGE_MRP_IN_ROLE_MAX + 1]; in br_mrp_in_role_parse()
325 struct nlattr *attr, in br_mrp_start_in_test_parse()
359 struct nlattr *tb[IFLA_BRIDGE_MRP_MAX + 1]; in br_mrp_parse()
[all …]
H A Dbr_cfm_netlink.c93 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CREATE_MAX + 1]; in br_mep_create_parse()
133 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_DELETE_MAX + 1]; in br_mep_delete_parse()
156 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MAX + 1]; in br_mep_config_parse()
198 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CONFIG_MAX + 1]; in br_cc_config_parse()
239 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1]; in br_cc_peer_mep_add_parse()
266 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1]; in br_cc_peer_mep_remove_parse()
293 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_RDI_MAX + 1]; in br_cc_rdi_parse()
320 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CCM_TX_MAX + 1]; in br_cc_ccm_tx_parse()
382 struct nlattr *tb[IFLA_BRIDGE_CFM_MAX + 1]; in br_cfm_parse()
459 struct nlattr *tb; in br_cfm_config_fill_info()
[all …]
/openbmc/linux/net/tipc/
H A Dnetlink_compat.c428 struct nlattr *prop; in tipc_nl_compat_bearer_enable()
429 struct nlattr *bearer; in tipc_nl_compat_bearer_enable()
503 struct nlattr *prop[], struct nlattr *stats[]) in __fill_bc_link_stat()
724 struct nlattr *prop; in tipc_nl_compat_media_set()
725 struct nlattr *media; in tipc_nl_compat_media_set()
751 struct nlattr *prop; in tipc_nl_compat_bearer_set()
778 struct nlattr *prop; in __tipc_nl_compat_link_set()
779 struct nlattr *link; in __tipc_nl_compat_link_set()
842 struct nlattr *link; in tipc_nl_compat_link_reset_stats()
1000 struct nlattr *nest; in tipc_nl_compat_publ_dump()
[all …]
/openbmc/linux/net/ethtool/
H A Dbitset.c236 struct nlattr *nest; in ethnl_put_bitset32()
237 struct nlattr *attr; in ethnl_put_bitset32()
270 struct nlattr *bits; in ethnl_put_bitset32()
330 struct nlattr *tb[ARRAY_SIZE(bitset_policy)]; in ethnl_bitset_is_compact()
382 struct nlattr *tb[ARRAY_SIZE(bit_policy)]; in ethnl_parse_bit()
430 const struct nlattr *attr, struct nlattr **tb, in ethnl_update_bitset32_verbose()
434 struct nlattr *bit_attr; in ethnl_update_bitset32_verbose()
481 const struct nlattr *nest, in ethnl_compact_sanity_checks()
482 struct nlattr **tb, in ethnl_compact_sanity_checks()
487 const struct nlattr *test_attr; in ethnl_compact_sanity_checks()
[all …]
H A Dbitset.h10 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact);
24 const struct nlattr *attr, ethnl_string_array_t names,
27 const struct nlattr *attr, ethnl_string_array_t names,
30 unsigned int nbits, const struct nlattr *attr,
H A Dnetlink.h14 const struct nlattr *nest, struct net *net,
51 struct nlattr *attr; in ethnl_put_strz()
73 static inline void ethnl_update_u32(u32 *dst, const struct nlattr *attr, in ethnl_update_u32()
99 static inline void ethnl_update_u8(u8 *dst, const struct nlattr *attr, in ethnl_update_u8()
125 static inline void ethnl_update_bool32(u32 *dst, const struct nlattr *attr, in ethnl_update_bool32()
151 static inline void ethnl_update_bool(bool *dst, const struct nlattr *attr, in ethnl_update_bool()
179 const struct nlattr *attr, bool *mod) in ethnl_update_binary()
202 static inline void ethnl_update_bitfield32(u32 *dst, const struct nlattr *attr, in ethnl_update_bitfield32()
354 struct nlattr **tb,
/openbmc/linux/tools/accounting/
H A Dprocacct.c129 struct nlattr *na; in send_cmd()
143 na = (struct nlattr *) GENLMSG_DATA(&msg); in send_cmd()
178 struct nlattr *na; in get_family_id()
193 na = (struct nlattr *) GENLMSG_DATA(&ans); in get_family_id()
194 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id()
224 void handle_aggr(int mother, struct nlattr *na, int fd) in handle_aggr()
230 na = (struct nlattr *) NLA_DATA(na); in handle_aggr()
257 na = (struct nlattr *)((char *)na + in handle_aggr()
268 struct nlattr *na; in main()
374 na = (struct nlattr *) GENLMSG_DATA(&msg); in main()
[all …]
/openbmc/linux/net/8021q/
H A Dvlan_netlink.c31 static inline int vlan_validate_qos_map(struct nlattr *attr) in vlan_validate_qos_map()
39 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[], in vlan_validate()
104 static int vlan_changelink(struct net_device *dev, struct nlattr *tb[], in vlan_changelink()
105 struct nlattr *data[], in vlan_changelink()
110 struct nlattr *attr; in vlan_changelink()
141 struct nlattr *tb[], struct nlattr *data[], in vlan_newlink()
207 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size()
228 struct nlattr *nest; in vlan_fill_info()
/openbmc/linux/net/dcb/
H A Ddcbnl.c468 struct nlattr *app_nest; in dcbnl_getapp()
589 struct nlattr *pg_tb[DCB_PG_ATTR_MAX + 1]; in __dcbnl_pg_getcfg()
803 struct nlattr *pg_tb[DCB_PG_ATTR_MAX + 1]; in __dcbnl_pg_setcfg()
907 struct nlattr *bcn_nest; in dcbnl_bcn_getcfg()
1034 struct nlattr *app; in dcbnl_build_peer_app()
1068 struct nlattr *apptrust; in dcbnl_getapptrust()
1113 struct nlattr *attr_itr; in dcbnl_app_table_setdel()
1142 struct nlattr *ieee, *app, *rewr; in dcbnl_ieee_fill()
1365 struct nlattr *cee, *app; in dcbnl_cee_fill()
1645 struct nlattr *attr; in dcbnl_ieee_set()
[all …]
/openbmc/linux/include/linux/netfilter/ipset/
H A Dip_set.h163 int (*uadt)(struct ip_set *set, struct nlattr *tb[],
231 struct nlattr *tb[], u32 flags);
333 extern int ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr);
347 ip_set_get_hostipaddr4(struct nlattr *nla, u32 *ipaddr) in ip_set_get_hostipaddr4()
377 ip_set_attr_netorder(struct nlattr *tb[], int type) in ip_set_attr_netorder()
383 ip_set_optattr_netorder(struct nlattr *tb[], int type) in ip_set_optattr_netorder()
390 ip_set_get_h32(const struct nlattr *attr) in ip_set_get_h32()
396 ip_set_get_h16(const struct nlattr *attr) in ip_set_get_h16()
403 struct nlattr *__nested = nla_nest_start(skb, type); in nla_put_ipaddr4()
417 struct nlattr *__nested = nla_nest_start(skb, type); in nla_put_ipaddr6()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_netlink.c72 struct nlattr *nest_parms; in ctnetlink_dump_tuples_proto()
113 struct nlattr *nest_parms; in ctnetlink_dump_tuples_ip()
201 struct nlattr *nest_proto; in ctnetlink_dump_protoinfo()
225 struct nlattr *nest_helper; in ctnetlink_dump_helpinfo()
262 struct nlattr *nest_count; in dump_counters()
310 struct nlattr *nest_count; in ctnetlink_dump_timestamp()
358 struct nlattr *nest_secctx; in ctnetlink_dump_secctx()
419 struct nlattr *nest_parms; in ctnetlink_dump_master()
440 struct nlattr *nest_parms; in dump_ct_seq_adj()
489 struct nlattr *nest_parms; in ctnetlink_dump_ct_synproxy()
[all …]
H A Dnfnetlink_cthelper.c73 const struct nlattr *attr) in nfnl_cthelper_parse_tuple()
76 struct nlattr *tb[NFCTH_TUPLE_MAX+1]; in nfnl_cthelper_parse_tuple()
138 const struct nlattr *attr) in nfnl_cthelper_expect_policy()
141 struct nlattr *tb[NFCTH_POLICY_MAX+1]; in nfnl_cthelper_expect_policy()
173 const struct nlattr *attr) in nfnl_cthelper_parse_expect_policy()
177 struct nlattr *tb[NFCTH_POLICY_SET_MAX+1]; in nfnl_cthelper_parse_expect_policy()
290 const struct nlattr *attr) in nfnl_cthelper_update_policy_one()
292 struct nlattr *tb[NFCTH_POLICY_MAX + 1]; in nfnl_cthelper_update_policy_one()
361 const struct nlattr *attr) in nfnl_cthelper_update_policy()
420 const struct nlattr * const tb[]) in nfnl_cthelper_new()
[all …]

12345678910>>...20