/third_party/libnl/lib/genl/ |
D | genl.c | 226 int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument 230 nlh = (const struct nlmsghdr *)((const unsigned char *) gnlh - NLMSG_HDRLEN); in genlmsg_len() 244 void *genlmsg_user_hdr(const struct genlmsghdr *gnlh) in genlmsg_user_hdr() argument 246 return genlmsg_data(gnlh); in genlmsg_user_hdr() 261 void *genlmsg_user_data(const struct genlmsghdr *gnlh, const int hdrlen) in genlmsg_user_data() argument 263 return (char *) genlmsg_user_hdr(gnlh) + NLMSG_ALIGN(hdrlen); in genlmsg_user_data() 275 int genlmsg_user_datalen(const struct genlmsghdr *gnlh, const int hdrlen) in genlmsg_user_datalen() argument 277 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen); in genlmsg_user_datalen() 289 struct nlattr *genlmsg_attrdata(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrdata() argument 291 return genlmsg_user_data(gnlh, hdrlen); in genlmsg_attrdata() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_nl80211_capa.c | 26 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() 917 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in dfs_info_handler() local 920 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dfs_info_handler() 921 genlmsg_attrlen(gnlh, 0), NULL); in dfs_info_handler() 1036 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in get_akm_suites_handler() local [all …]
|
D | driver_nl80211_scan.c | 35 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()
|
D | driver_nl80211.c | 469 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 …]
|
D | driver_nl80211_event.c | 2642 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_global_event() local 2651 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_global_event() 2652 genlmsg_attrlen(gnlh, 0), NULL); in process_global_event() 2674 do_process_drv_event(bss, gnlh->cmd, tb); in process_global_event() 2680 gnlh->cmd, nl80211_command_to_string(gnlh->cmd), in process_global_event() 2691 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_bss_event() local 2694 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_bss_event() 2695 genlmsg_attrlen(gnlh, 0), NULL); in process_bss_event() 2698 gnlh->cmd, nl80211_command_to_string(gnlh->cmd), in process_bss_event() 2701 switch (gnlh->cmd) { in process_bss_event() [all …]
|
D | driver_macsec_linux.c | 515 struct genlmsghdr *gnlh = (struct genlmsghdr *) nlmsg_data(ret_hdr); in dump_callback() local 521 err = nla_parse(tb_msg, MACSEC_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dump_callback() 522 genlmsg_attrlen(gnlh, 0), main_policy); in dump_callback()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_nl80211_capa.c | 27 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in protocol_feature_handler() local 29 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in protocol_feature_handler() 30 genlmsg_attrlen(gnlh, 0), NULL); in protocol_feature_handler() 852 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in wiphy_info_handler() local 857 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in wiphy_info_handler() 858 genlmsg_attrlen(gnlh, 0), NULL); in wiphy_info_handler() 1164 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in dfs_info_handler() local 1167 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dfs_info_handler() 1168 genlmsg_attrlen(gnlh, 0), NULL); in dfs_info_handler() 1224 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in features_info_handler() local [all …]
|
D | driver_nl80211_scan.c | 35 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() 702 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in nl80211_parse_bss_info() local 725 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_parse_bss_info() 726 genlmsg_attrlen(gnlh, 0), NULL); in nl80211_parse_bss_info() 1060 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in scan_cookie_handler() local 1063 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in scan_cookie_handler() 1064 genlmsg_attrlen(gnlh, 0), NULL); in scan_cookie_handler()
|
D | driver_nl80211.c | 570 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local 574 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler() 575 genlmsg_attrlen(gnlh, 0), NULL); in family_handler() 709 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in netdev_info_handler() local 712 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in netdev_info_handler() 713 genlmsg_attrlen(gnlh, 0), NULL); in netdev_info_handler() 844 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_beacon_event() local 848 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_beacon_event() 849 genlmsg_attrlen(gnlh, 0), NULL); in process_beacon_event() 851 if (gnlh->cmd != NL80211_CMD_FRAME) { in process_beacon_event() [all …]
|
D | driver_nl80211_event.c | 333 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in qca_drv_connect_fail_reason_code_handler() local 337 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in qca_drv_connect_fail_reason_code_handler() 338 genlmsg_attrlen(gnlh, 0), NULL); in qca_drv_connect_fail_reason_code_handler() 3115 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_global_event() local 3124 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_global_event() 3125 genlmsg_attrlen(gnlh, 0), NULL); in process_global_event() 3147 do_process_drv_event(bss, gnlh->cmd, tb); in process_global_event() 3153 gnlh->cmd, nl80211_command_to_string(gnlh->cmd), in process_global_event() 3164 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_bss_event() local 3167 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_bss_event() [all …]
|
D | driver_macsec_linux.c | 513 struct genlmsghdr *gnlh = (struct genlmsghdr *) nlmsg_data(ret_hdr); in dump_callback() local 519 err = nla_parse(tb_msg, MACSEC_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dump_callback() 520 genlmsg_attrlen(gnlh, 0), main_policy); in dump_callback()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/ |
D | driver_nl80211_hisi.c | 74 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in get_power_mode_handler() local 77 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in get_power_mode_handler() 78 genlmsg_attrlen(gnlh, 0), NULL); in get_power_mode_handler()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/ |
D | driver_nl80211_hisi.c | 72 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in get_power_mode_handler() local 75 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in get_power_mode_handler() 76 genlmsg_attrlen(gnlh, 0), NULL); in get_power_mode_handler()
|