Home
last modified time | relevance | path

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

12345

/third_party/libnl/include/netlink/
Dattr.h24 struct nlattr;
86 extern int nla_type(const struct nlattr *);
87 extern void * nla_data(const struct nlattr *);
88 extern int nla_len(const struct nlattr *);
89 extern int nla_ok(const struct nlattr *, int);
90 extern struct nlattr * nla_next(const struct nlattr *, int *);
91 extern int nla_parse(struct nlattr **, int, struct nlattr *,
93 extern int nla_validate(const struct nlattr *, int, int,
95 extern struct nlattr * nla_find(const struct nlattr *, int, int);
98 extern int nla_memcpy(void *, const struct nlattr *, int);
[all …]
/third_party/libnl/lib/
Dattr.c110 int nla_type(const struct nlattr *nla) in nla_type()
121 void *nla_data(const struct nlattr *nla) in nla_data()
132 int nla_len(const struct nlattr *nla) in nla_len()
149 int nla_ok(const struct nlattr *nla, int remaining) in nla_ok()
172 struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next()
177 return (struct nlattr *) ((char *) nla + totlen); in nla_next()
189 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla()
243 int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, in nla_parse()
246 struct nlattr *nla; in nla_parse()
249 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in nla_parse()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_nl80211_event.c27 struct nlattr *ack, struct nlattr *cookie);
225 static void nl80211_parse_wmm_params(struct nlattr *wmm_attr, in nl80211_parse_wmm_params()
228 struct nlattr *wmm_info[NL80211_STA_WME_MAX + 1]; in nl80211_parse_wmm_params()
246 const u8 *frame, size_t len, struct nlattr *wmm, in mlme_event_assoc()
247 struct nlattr *req_ie) in mlme_event_assoc()
331 struct nlattr *tb[NL80211_ATTR_MAX + 1]; in qca_drv_connect_fail_reason_code_handler()
332 struct nlattr *tb_sta_info[QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX + 1]; in qca_drv_connect_fail_reason_code_handler()
415 enum nl80211_commands cmd, struct nlattr *status, in mlme_event_connect()
416 struct nlattr *addr, struct nlattr *req_ie, in mlme_event_connect()
417 struct nlattr *resp_ie, in mlme_event_connect()
[all …]
Ddriver_nl80211_capa.c26 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in protocol_feature_handler()
107 struct nlattr *tb) in wiphy_info_supported_iftypes()
109 struct nlattr *nl_mode; in wiphy_info_supported_iftypes()
142 struct nlattr *nl_combi) in wiphy_info_iface_comb_process()
144 struct nlattr *tb_comb[NUM_NL80211_IFACE_COMB]; in wiphy_info_iface_comb_process()
145 struct nlattr *tb_limit[NUM_NL80211_IFACE_LIMIT]; in wiphy_info_iface_comb_process()
146 struct nlattr *nl_limit, *nl_mode; in wiphy_info_iface_comb_process()
207 struct nlattr *tb) in wiphy_info_iface_comb()
209 struct nlattr *nl_combi; in wiphy_info_iface_comb()
223 struct nlattr *tb) in wiphy_info_supp_cmds()
[all …]
Ddriver_nl80211_scan.c34 struct nlattr *tb[NL80211_ATTR_MAX + 1]; in get_noise_for_scan_results()
36 struct nlattr *sinfo[NL80211_SURVEY_INFO_MAX + 1]; in get_noise_for_scan_results()
112 struct nlattr *params; in nl80211_abort_vendor_scan()
192 struct nlattr *ssids; in nl80211_scan_common()
219 struct nlattr *freqs; in nl80211_scan_common()
339 struct nlattr *rates; in wpa_driver_nl80211_scan()
427 struct nlattr *plans; in nl80211_sched_scan_add_scan_plans()
436 struct nlattr *plan = nla_nest_start(msg, i + 1); in nl80211_sched_scan_add_scan_plans()
536 struct nlattr *match_sets; in wpa_driver_nl80211_sched_scan()
542 struct nlattr *match_set_ssid; in wpa_driver_nl80211_sched_scan()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_nl80211_event.c189 static void nl80211_parse_wmm_params(struct nlattr *wmm_attr, in nl80211_parse_wmm_params()
192 struct nlattr *wmm_info[NL80211_STA_WME_MAX + 1]; in nl80211_parse_wmm_params()
210 const u8 *frame, size_t len, struct nlattr *wmm, in mlme_event_assoc()
211 struct nlattr *req_ie) in mlme_event_assoc()
291 enum nl80211_commands cmd, struct nlattr *status, in mlme_event_connect()
292 struct nlattr *addr, struct nlattr *req_ie, in mlme_event_connect()
293 struct nlattr *resp_ie, in mlme_event_connect()
294 struct nlattr *timed_out, in mlme_event_connect()
295 struct nlattr *timeout_reason, in mlme_event_connect()
296 struct nlattr *authorized, in mlme_event_connect()
[all …]
Ddriver_nl80211_capa.c25 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in protocol_feature_handler()
102 struct nlattr *tb) in wiphy_info_supported_iftypes()
104 struct nlattr *nl_mode; in wiphy_info_supported_iftypes()
137 struct nlattr *nl_combi) in wiphy_info_iface_comb_process()
139 struct nlattr *tb_comb[NUM_NL80211_IFACE_COMB]; in wiphy_info_iface_comb_process()
140 struct nlattr *tb_limit[NUM_NL80211_IFACE_LIMIT]; in wiphy_info_iface_comb_process()
141 struct nlattr *nl_limit, *nl_mode; in wiphy_info_iface_comb_process()
202 struct nlattr *tb) in wiphy_info_iface_comb()
204 struct nlattr *nl_combi; in wiphy_info_iface_comb()
218 struct nlattr *tb) in wiphy_info_supp_cmds()
[all …]
Ddriver_nl80211_scan.c34 struct nlattr *tb[NL80211_ATTR_MAX + 1]; in get_noise_for_scan_results()
36 struct nlattr *sinfo[NL80211_SURVEY_INFO_MAX + 1]; in get_noise_for_scan_results()
111 struct nlattr *params; in nl80211_abort_vendor_scan()
194 struct nlattr *ssids; in nl80211_scan_common()
221 struct nlattr *freqs; in nl80211_scan_common()
336 struct nlattr *rates; in wpa_driver_nl80211_scan()
424 struct nlattr *plans; in nl80211_sched_scan_add_scan_plans()
433 struct nlattr *plan = nla_nest_start(msg, i + 1); in nl80211_sched_scan_add_scan_plans()
533 struct nlattr *match_sets; in wpa_driver_nl80211_sched_scan()
539 struct nlattr *match_set_ssid; in wpa_driver_nl80211_sched_scan()
[all …]
/third_party/libnl/python/netlink/route/qdisc/
Dhtb.py21 @netlink.nlattr(type=int)
30 @netlink.nlattr('r2q', type=int)
54 @netlink.nlattr(type=str)
64 @netlink.nlattr(type=str)
74 @netlink.nlattr(type=str)
84 @netlink.nlattr(type=str)
94 @netlink.nlattr(type=int)
103 @netlink.nlattr(type=int)
112 @netlink.nlattr(type=int)
/third_party/libnl/python/netlink/route/
Daddress.py90 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
104 @netlink.nlattr(type=str, fmt=util.string)
128 @netlink.nlattr(type=str, fmt=util.string)
138 @netlink.nlattr(type=str, fmt=util.string)
173 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
187 @netlink.nlattr(type=int, fmt=util.num)
200 @netlink.nlattr(type=str, immutable=True, fmt=util.addr)
217 @netlink.nlattr(type=str, fmt=util.addr)
229 @netlink.nlattr(type=str, fmt=util.addr)
241 @netlink.nlattr(type=str, fmt=util.addr)
[all …]
Dlink.py183 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
198 @netlink.nlattr(type=str, fmt=util.bold)
215 @netlink.nlattr(type=str, fmt=util.string)
248 @netlink.nlattr(type=int, fmt=util.num)
258 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
268 @netlink.nlattr(type=str, fmt=util.addr)
279 @netlink.nlattr(type=str, fmt=util.addr)
290 @netlink.nlattr(type=str, immutable=True, fmt=util.string)
300 @netlink.nlattr(type=int, fmt=util.num)
310 @netlink.nlattr(type=str, immutable=True, fmt=util.string)
[all …]
/third_party/libnl/include/netlink-private/route/link/
Dapi.h43 struct nlattr *,
44 struct nlattr *);
110 struct nlattr *, void *);
115 struct nlattr *, void *);
125 struct nlattr *, void *);
/third_party/libnl/python/netlink/route/links/
Dinet.py77 @netlink.nlattr(type=bool, fmt=util.boolean)
87 @netlink.nlattr(type=bool, fmt=util.boolean)
97 @netlink.nlattr(type=bool, fmt=util.boolean)
106 @netlink.nlattr(type=bool, fmt=util.boolean)
115 @netlink.nlattr(type=bool, fmt=util.boolean)
124 @netlink.nlattr(type=bool, fmt=util.boolean)
133 @netlink.nlattr(type=bool, fmt=util.boolean)
Dbridge.py38 @netlink.nlattr(type=int)
50 @netlink.nlattr(type=int)
65 @netlink.nlattr(type=int)
80 @netlink.nlattr(type=str)
/third_party/libnl/lib/netfilter/
Dct.c102 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_ip()
104 struct nlattr *tb[CTA_IP_MAX+1]; in ct_parse_ip()
157 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_proto()
159 struct nlattr *tb[CTA_PROTO_MAX+1]; in ct_parse_proto()
200 static int ct_parse_tuple(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_tuple()
202 struct nlattr *tb[CTA_TUPLE_MAX+1]; in ct_parse_tuple()
224 static int ct_parse_protoinfo_tcp(struct nfnl_ct *ct, struct nlattr *attr) in ct_parse_protoinfo_tcp()
226 struct nlattr *tb[CTA_PROTOINFO_TCP_MAX+1]; in ct_parse_protoinfo_tcp()
241 static int ct_parse_protoinfo(struct nfnl_ct *ct, struct nlattr *attr) in ct_parse_protoinfo()
243 struct nlattr *tb[CTA_PROTOINFO_MAX+1]; in ct_parse_protoinfo()
[all …]
Dexp.c78 static int exp_parse_ip(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_ip()
80 struct nlattr *tb[CTA_IP_MAX+1]; in exp_parse_ip()
133 static int exp_parse_proto(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_proto()
135 struct nlattr *tb[CTA_PROTO_MAX+1]; in exp_parse_proto()
165 static int exp_parse_tuple(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_tuple()
167 struct nlattr *tb[CTA_TUPLE_MAX+1]; in exp_parse_tuple()
189 static int exp_parse_nat(struct nfnl_exp *exp, struct nlattr *attr) in exp_parse_nat()
191 struct nlattr *tb[CTA_EXPECT_NAT_MAX+1]; in exp_parse_nat()
228 struct nlattr *tb[CTA_MAX+1]; in nfnlmsg_exp_parse()
353 struct nlattr *tuple, *ip, *proto; in nfnl_exp_build_tuple()
[all …]
/third_party/libnl/lib/route/link/
Dveth.c41 static int veth_parse(struct rtnl_link *link, struct nlattr *data, in veth_parse()
42 struct nlattr *xstats) in veth_parse()
44 struct nlattr *tb[VETH_INFO_MAX+1]; in veth_parse()
45 struct nlattr *peer_tb[IFLA_MAX + 1]; in veth_parse()
55 struct nlattr *nla_peer; in veth_parse()
66 err = nla_parse(peer_tb, IFLA_MAX, (struct nlattr *) in veth_parse()
122 struct nlattr *data, *info_peer; in veth_put_attrs()
Dppp.c60 static int ppp_parse(struct rtnl_link *link, struct nlattr *data, in ppp_parse()
61 struct nlattr *xstats) in ppp_parse()
63 struct nlattr *tb[IFLA_PPP_MAX+1]; in ppp_parse()
114 struct nlattr *data; in ppp_put_attrs()
Dvrf.c70 static int vrf_parse(struct rtnl_link *link, struct nlattr *data, in vrf_parse()
71 struct nlattr *xstats) in vrf_parse()
73 struct nlattr *tb[IFLA_VRF_MAX+1]; in vrf_parse()
124 struct nlattr *data; in vrf_put_attrs()
Dipvlan.c67 static int ipvlan_parse(struct rtnl_link *link, struct nlattr *data, in ipvlan_parse()
68 struct nlattr *xstats) in ipvlan_parse()
70 struct nlattr *tb[IFLA_IPVLAN_MAX+1]; in ipvlan_parse()
132 struct nlattr *data; in ipvlan_put_attrs()
/third_party/libnl/python/netlink/
Dcapi.i207 extern struct nlattr * nlmsg_attrdata(const struct nlmsghdr *, int);
214 extern int nlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
216 extern struct nlattr * nlmsg_find_attr(struct nlmsghdr *, int, int);
441 extern struct nl_addr *nl_addr_alloc_attr(struct nlattr *, int);
812 extern void *nla_data(struct nlattr *);
814 extern int nla_type(const struct nlattr *);
830 extern uint8_t nla_get_u8(struct nlattr *);
832 extern uint16_t nla_get_u16(struct nlattr *);
834 extern uint32_t nla_get_u32(struct nlattr *);
836 extern uint64_t nla_get_u64(struct nlattr *);
[all …]
/third_party/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c126 struct nlattr *na; in send_cmd()
140 na = (struct nlattr *)GENLMSG_DATA(&msg); in send_cmd()
174 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()
262 struct nlattr *na; in main()
435 na = (struct nlattr *)GENLMSG_DATA(&msg); in main()
446 na = (struct nlattr *)NLA_DATA(na); in main()
498 na = (struct nlattr *)((char *)na + in main()
512 na = (struct nlattr *)(GENLMSG_DATA(&msg) + len); in main()
/third_party/libnl/include/netlink-private/route/
Dnexthop-encap.h8 int (*parse_msg)(struct nlattr *nla, struct rtnl_nexthop *rtnh);
23 int nh_encap_parse_msg(struct nlattr *encap, struct nlattr *encap_type,
/third_party/libnl/lib/route/
Dact.c83 struct nlattr *nest; in rtnl_act_fill_one()
95 struct nlattr *opts; in rtnl_act_fill_one()
119 struct nlattr *nest; in rtnl_act_fill()
396 int rtnl_act_parse(struct rtnl_act **head, struct nlattr *tb) in rtnl_act_parse()
400 struct nlattr *tb2[TCA_ACT_MAX + 1]; in rtnl_act_parse()
401 struct nlattr *nla[TCA_ACT_MAX_PRIO + 1]; in rtnl_act_parse()
474 struct nlattr *tb[TCAA_MAX + 1]; in rtnl_act_msg_parse()
/third_party/libnl/lib/genl/
Dctrl.c65 static int parse_mcast_grps(struct genl_family *family, struct nlattr *grp_attr) in parse_mcast_grps()
67 struct nlattr *nla; in parse_mcast_grps()
74 struct nlattr *tb[CTRL_ATTR_MCAST_GRP_MAX+1]; in parse_mcast_grps()
151 struct nlattr *nla, *nla_ops; in ctrl_msg_parser()
156 struct nlattr *tb[CTRL_ATTR_OP_MAX+1]; in ctrl_msg_parser()
206 struct nlattr *tb[CTRL_ATTR_MAX+1]; in probe_response()

12345