Home
last modified time | relevance | path

Searched refs:gnlh (Results 1 – 25 of 28) sorted by relevance

12

/external/libnl/lib/genl/
Dgenl.c224 int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument
228 nlh = (const struct nlmsghdr *)((const unsigned char *) gnlh - NLMSG_HDRLEN); in genlmsg_len()
242 void *genlmsg_user_hdr(const struct genlmsghdr *gnlh) in genlmsg_user_hdr() argument
244 return genlmsg_data(gnlh); in genlmsg_user_hdr()
259 void *genlmsg_user_data(const struct genlmsghdr *gnlh, const int hdrlen) in genlmsg_user_data() argument
261 return genlmsg_user_hdr(gnlh) + NLMSG_ALIGN(hdrlen); in genlmsg_user_data()
273 int genlmsg_user_datalen(const struct genlmsghdr *gnlh, const int hdrlen) in genlmsg_user_datalen() argument
275 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen); in genlmsg_user_datalen()
287 struct nlattr *genlmsg_attrdata(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrdata() argument
289 return genlmsg_user_data(gnlh, hdrlen); in genlmsg_attrdata()
[all …]
/external/iw/
Dlink.c27 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in link_bss_handler() local
43 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in link_bss_handler()
44 genlmsg_attrlen(gnlh, 0), NULL); in link_bss_handler()
116 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_link_sta() local
139 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_link_sta()
140 genlmsg_attrlen(gnlh, 0), NULL); in print_link_sta()
Dps.c48 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_power_save_handler() local
51 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_power_save_handler()
52 genlmsg_attrlen(gnlh, 0), NULL); in print_power_save_handler()
Dmpp.c19 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_mpp_handler() local
22 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_mpp_handler()
23 genlmsg_attrlen(gnlh, 0), NULL); in print_mpp_handler()
Devent.c296 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_event() local
323 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_event()
324 genlmsg_attrlen(gnlh, 0), NULL); in print_event()
342 switch (gnlh->cmd) { in print_event()
352 if (gnlh->cmd == NL80211_CMD_SCAN_ABORTED) in print_event()
613 gnlh->cmd, command_name(gnlh->cmd)); in print_event()
631 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in wait_event() local
635 if (gnlh->cmd == wait->cmds[i]) { in wait_event()
636 wait->cmd = gnlh->cmd; in wait_event()
Dsurvey.c19 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_survey_handler() local
28 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_survey_handler()
29 genlmsg_attrlen(gnlh, 0), NULL); in print_survey_handler()
Dgenl.c39 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local
43 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler()
44 genlmsg_attrlen(gnlh, 0), NULL); in family_handler()
Dhwsim.c39 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_hwsim_ps_handler() local
41 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_hwsim_ps_handler()
42 genlmsg_attrlen(gnlh, 0), NULL); in print_hwsim_ps_handler()
Dmpath.c30 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_mpath_handler() local
43 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_mpath_handler()
44 genlmsg_attrlen(gnlh, 0), NULL); in print_mpath_handler()
Dreg.c124 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_reg_handler() local
139 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_reg_handler()
140 genlmsg_attrlen(gnlh, 0), NULL); in print_reg_handler()
Dcoalesce.c201 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_coalesce_handler() local
207 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_coalesce_handler()
208 genlmsg_attrlen(gnlh, 0), NULL); in print_coalesce_handler()
Dinfo.c81 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_phy_handler() local
119 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_phy_handler()
120 genlmsg_attrlen(gnlh, 0), NULL); in print_phy_handler()
688 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_feature_handler() local
692 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_feature_handler()
693 genlmsg_attrlen(gnlh, 0), NULL); in print_feature_handler()
Dinterface.c308 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_iface_handler() local
313 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_iface_handler()
314 genlmsg_attrlen(gnlh, 0), NULL); in print_iface_handler()
Dwowlan.c352 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_wowlan_handler() local
356 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_wowlan_handler()
357 genlmsg_attrlen(gnlh, 0), NULL); in print_wowlan_handler()
Dstation.c124 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_sta_handler() local
153 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_sta_handler()
154 genlmsg_attrlen(gnlh, 0), NULL); in print_sta_handler()
Dmesh.c377 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_mesh_param_handler() local
380 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_mesh_param_handler()
381 genlmsg_attrlen(gnlh, 0), NULL); in print_mesh_param_handler()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_capa.c26 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in protocol_feature_handler() local
28 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in protocol_feature_handler()
29 genlmsg_attrlen(gnlh, 0), NULL); in protocol_feature_handler()
626 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in wiphy_info_handler() local
631 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in wiphy_info_handler()
632 genlmsg_attrlen(gnlh, 0), NULL); in wiphy_info_handler()
916 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in dfs_info_handler() local
919 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dfs_info_handler()
920 genlmsg_attrlen(gnlh, 0), NULL); in dfs_info_handler()
1035 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in get_akm_suites_handler() local
[all …]
Ddriver_nl80211_scan.c35 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in get_noise_for_scan_results() local
46 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in get_noise_for_scan_results()
47 genlmsg_attrlen(gnlh, 0), NULL); in get_noise_for_scan_results()
699 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in nl80211_parse_bss_info() local
722 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_parse_bss_info()
723 genlmsg_attrlen(gnlh, 0), NULL); in nl80211_parse_bss_info()
1042 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in scan_cookie_handler() local
1045 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in scan_cookie_handler()
1046 genlmsg_attrlen(gnlh, 0), NULL); in scan_cookie_handler()
Ddriver_nl80211.c469 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local
473 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler()
474 genlmsg_attrlen(gnlh, 0), NULL); in family_handler()
599 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in netdev_info_handler() local
602 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in netdev_info_handler()
603 genlmsg_attrlen(gnlh, 0), NULL); in netdev_info_handler()
712 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_beacon_event() local
716 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_beacon_event()
717 genlmsg_attrlen(gnlh, 0), NULL); in process_beacon_event()
719 if (gnlh->cmd != NL80211_CMD_FRAME) { in process_beacon_event()
[all …]
Ddriver_nl80211_event.c2600 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_global_event() local
2609 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_global_event()
2610 genlmsg_attrlen(gnlh, 0), NULL); in process_global_event()
2632 do_process_drv_event(bss, gnlh->cmd, tb); in process_global_event()
2638 gnlh->cmd, ifidx, (long long unsigned int) wdev_id); in process_global_event()
2648 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_bss_event() local
2651 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_bss_event()
2652 genlmsg_attrlen(gnlh, 0), NULL); in process_bss_event()
2655 gnlh->cmd, nl80211_command_to_string(gnlh->cmd), in process_bss_event()
2658 switch (gnlh->cmd) { in process_bss_event()
[all …]
/external/strace/tests-m32/
Dnetlink_generic.c51 struct genlmsghdr gnlh; in test_nlmsg_type() member
58 .gnlh = { in test_nlmsg_type()
/external/strace/tests/
Dnetlink_generic.c51 struct genlmsghdr gnlh; in test_nlmsg_type() member
58 .gnlh = { in test_nlmsg_type()
/external/strace/tests-mx32/
Dnetlink_generic.c51 struct genlmsghdr gnlh; in test_nlmsg_type() member
58 .gnlh = { in test_nlmsg_type()
/external/strace/
Dsocketutils.c611 struct genlmsghdr gnlh; in genl_send_dump_families() member
618 .gnlh = { in genl_send_dump_families()
631 const struct genlmsghdr *const gnlh = data; in genl_parse_families_response() local
633 int rta_len = data_len - NLMSG_LENGTH(sizeof(*gnlh)); in genl_parse_families_response()
641 if (gnlh->cmd != CTRL_CMD_NEWFAMILY) in genl_parse_families_response()
643 if (gnlh->version != 2) in genl_parse_families_response()
646 for (attr = (struct rtattr *) (gnlh + 1); in genl_parse_families_response()
/external/autotest/client/deps/iwcap/src/
Diwcap.c274 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in check_phy_handler() local
301 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in check_phy_handler()
302 genlmsg_attrlen(gnlh, 0), NULL); in check_phy_handler()

12