/external/iw/ |
D | event.c | 34 chan->center_freq = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_FREQ]); in parse_beacon_hint_chan() 124 rssi_event = nla_get_u32(cqm[NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT]); in parse_cqm_event() 148 frames = nla_get_u32(cqm[NL80211_ATTR_CQM_PKT_LOSS_EVENT]); in parse_cqm_event() 195 nla_get_u32(attrs[NL80211_ATTR_KEY_TYPE]); in parse_mic_failure() 228 nla_get_u32(tb[NL80211_WOWLAN_TRIG_PKT_PATTERN])); in parse_wowlan_wake_event() 257 printf(" %d", nla_get_u32(freq)); in parse_wowlan_wake_event() 327 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), ifname); in print_event() 328 printf("%s (phy #%d): ", ifname, nla_get_u32(tb[NL80211_ATTR_WIPHY])); in print_event() 332 nla_get_u32(tb[NL80211_ATTR_WIPHY])); in print_event() 334 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), ifname); in print_event() [all …]
|
D | info.c | 123 if (nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]) == phy_id) in print_phy_handler() 127 phy_id = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); in print_phy_handler() 161 print_vht_info(nla_get_u32(tb_band[NL80211_BAND_ATTR_VHT_CAPA]), in print_phy_handler() 175 freq = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_FREQ]); in print_phy_handler() 180 printf(" (%.1f dBm)", 0.01 * nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_MAX_TX_POWER])); in print_phy_handler() 205 enum nl80211_dfs_state state = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_STATE]); in print_phy_handler() 210 time = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_TIME]); in print_phy_handler() 216 nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_CAC_TIME])); in print_phy_handler() 229 printf("\t\t\t* %2.1f Mbps", 0.1 * nla_get_u32(tb_rate[NL80211_BITRATE_ATTR_RATE])); in print_phy_handler() 257 frag = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FRAG_THRESHOLD]); in print_phy_handler() [all …]
|
D | reg.c | 153 printf("phy#%d%s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]), in print_reg_handler() 173 flags = nla_get_u32(tb_rule[NL80211_ATTR_REG_RULE_FLAGS]); in print_reg_handler() 174 start_freq_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_START]); in print_reg_handler() 175 end_freq_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_END]); in print_reg_handler() 176 max_bw_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_MAX_BW]); in print_reg_handler() 177 max_ant_gain_mbi = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN]); in print_reg_handler() 178 max_eirp_mbm = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_EIRP]); in print_reg_handler() 192 printf(", (%u ms)", nla_get_u32(tb_rule[NL80211_ATTR_DFS_CAC_TIME])); in print_reg_handler()
|
D | link.c | 64 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in link_bss_handler() 66 switch (nla_get_u32(bss[NL80211_BSS_STATUS])) { in link_bss_handler() 89 nla_get_u32(bss[NL80211_BSS_FREQUENCY])); in link_bss_handler() 91 if (nla_get_u32(bss[NL80211_BSS_STATUS]) != NL80211_BSS_STATUS_ASSOCIATED) in link_bss_handler() 155 nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES]), in print_link_sta() 156 nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS])); in print_link_sta() 159 nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES]), in print_link_sta() 160 nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS])); in print_link_sta()
|
D | station.c | 28 enum nl80211_mesh_power_mode pm = nla_get_u32(a); in print_power_mode() 66 rate = nla_get_u32(rinfo[NL80211_RATE_INFO_BITRATE32]); in parse_bitrate() 174 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_sta_handler() 179 nla_get_u32(sinfo[NL80211_STA_INFO_INACTIVE_TIME])); in print_sta_handler() 182 nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES])); in print_sta_handler() 185 nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS])); in print_sta_handler() 188 nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES])); in print_sta_handler() 191 nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS])); in print_sta_handler() 194 nla_get_u32(sinfo[NL80211_STA_INFO_TX_RETRIES])); in print_sta_handler() 197 nla_get_u32(sinfo[NL80211_STA_INFO_TX_FAILED])); in print_sta_handler() [all …]
|
D | mpath.c | 65 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_mpath_handler() 69 nla_get_u32(pinfo[NL80211_MPATH_INFO_SN])); in print_mpath_handler() 72 nla_get_u32(pinfo[NL80211_MPATH_INFO_METRIC])); in print_mpath_handler() 75 nla_get_u32(pinfo[NL80211_MPATH_INFO_FRAME_QLEN])); in print_mpath_handler() 78 nla_get_u32(pinfo[NL80211_MPATH_INFO_EXPTIME])); in print_mpath_handler() 81 nla_get_u32(pinfo[NL80211_MPATH_INFO_DISCOVERY_TIMEOUT])); in print_mpath_handler()
|
D | interface.c | 317 unsigned int thiswiphy = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); in print_iface_handler() 329 printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX])); in print_iface_handler() 345 printf("%s\ttype %s\n", indent, iftype_name(nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE]))); in print_iface_handler() 347 printf("%s\twiphy %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_WIPHY])); in print_iface_handler() 349 uint32_t freq = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]); in print_iface_handler() 356 channel_width_name(nla_get_u32(tb_msg[NL80211_ATTR_CHANNEL_WIDTH]))); in print_iface_handler() 359 nla_get_u32(tb_msg[NL80211_ATTR_CENTER_FREQ1])); in print_iface_handler() 362 nla_get_u32(tb_msg[NL80211_ATTR_CENTER_FREQ2])); in print_iface_handler() 366 channel_type = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_CHANNEL_TYPE]); in print_iface_handler()
|
D | mesh.c | 152 printf("%d", nla_get_u32(a)); in _print_u32() 157 printf("%u milliseconds", nla_get_u32(a)); in _print_u32_timeout() 162 printf("%d seconds", nla_get_u32(a)); in _print_u32_in_seconds() 167 printf("%d TUs", nla_get_u32(a)); in _print_u32_in_TUs() 172 unsigned long v = nla_get_u32(a); in _print_u32_power_mode() 192 printf("%d dBm", (int32_t) nla_get_u32(a)); in _print_s32_in_dBm()
|
D | survey.c | 31 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_survey_handler() 48 nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]), in print_survey_handler()
|
D | coalesce.c | 223 delay = nla_get_u32(ruleattr[NL80211_ATTR_COALESCE_RULE_DELAY]); in print_coalesce_handler() 225 nla_get_u32(ruleattr[NL80211_ATTR_COALESCE_RULE_CONDITION]); in print_coalesce_handler() 252 pkt_offset = nla_get_u32(patattr[NL80211_PKTPAT_OFFSET]); in print_coalesce_handler()
|
D | wowlan.c | 397 nla_get_u32(nd[NL80211_ATTR_SCHED_SCAN_INTERVAL])); in print_wowlan_handler() 401 nla_get_u32(nd[NL80211_ATTR_SCHED_SCAN_DELAY])); in print_wowlan_handler() 423 printf(" %d", nla_get_u32(freq)); in print_wowlan_handler() 450 nla_get_u32(patattr[NL80211_PKTPAT_OFFSET]); in print_wowlan_handler()
|
/external/libnl/lib/netfilter/ |
D | log_msg.c | 97 nfnl_log_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 111 nfnl_log_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 115 nfnl_log_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 119 nfnl_log_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 123 nfnl_log_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 148 nfnl_log_msg_set_uid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 152 nfnl_log_msg_set_gid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 156 nfnl_log_msg_set_seq(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 160 nfnl_log_msg_set_seq_global(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
|
D | queue_msg.c | 97 nfnl_queue_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse() 111 nfnl_queue_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse() 115 nfnl_queue_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse() 119 nfnl_queue_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse() 123 nfnl_queue_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
|
D | ct.c | 291 ntohl(nla_get_u32(tb[CTA_COUNTERS32_PACKETS]))); in ct_parse_counters() 297 ntohl(nla_get_u32(tb[CTA_COUNTERS32_BYTES]))); in ct_parse_counters() 372 nfnl_ct_set_status(ct, ntohl(nla_get_u32(tb[CTA_STATUS]))); in nfnlmsg_ct_parse() 374 nfnl_ct_set_timeout(ct, ntohl(nla_get_u32(tb[CTA_TIMEOUT]))); in nfnlmsg_ct_parse() 376 nfnl_ct_set_mark(ct, ntohl(nla_get_u32(tb[CTA_MARK]))); in nfnlmsg_ct_parse() 378 nfnl_ct_set_use(ct, ntohl(nla_get_u32(tb[CTA_USE]))); in nfnlmsg_ct_parse() 380 nfnl_ct_set_id(ct, ntohl(nla_get_u32(tb[CTA_ID]))); in nfnlmsg_ct_parse()
|
D | exp.c | 198 nfnl_exp_set_nat_dir(exp, nla_get_u32(tb[CTA_EXPECT_NAT_DIR])); in exp_parse_nat() 266 nfnl_exp_set_class(exp, ntohl(nla_get_u32(tb[CTA_EXPECT_CLASS]))); in nfnlmsg_exp_parse() 272 nfnl_exp_set_timeout(exp, ntohl(nla_get_u32(tb[CTA_EXPECT_TIMEOUT]))); in nfnlmsg_exp_parse() 275 nfnl_exp_set_id(exp, ntohl(nla_get_u32(tb[CTA_EXPECT_ID]))); in nfnlmsg_exp_parse() 284 nfnl_exp_set_flags(exp, ntohl(nla_get_u32(tb[CTA_EXPECT_FLAGS]))); in nfnlmsg_exp_parse()
|
/external/libnl/python/examples/ |
D | iface.py | 16 thiswiphy = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_WIPHY]) 21 print("\tifindex %d" % nl.nla_get_u32(attr[nl80211.NL80211_ATTR_IFINDEX])) 29 iftype = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_IFTYPE]) 32 freq = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_WIPHY_FREQ]) 37 chanw = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_CHANNEL_WIDTH]) 41 nl.nla_get_u32(attr[nl80211.NL80211_ATTR_CENTER_FREQ1])) 44 nl.nla_get_u32(attr[nl80211.NL80211_ATTR_CENTER_FREQ2])) 46 channel_type = nl.nla_get_u32(attr[nl80211.NL80211_ATTR_WIPHY_CHANNEL_TYPE])
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_capa.c | 32 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); in protocol_feature_handler() 190 nla_get_u32(tb_comb[NL80211_IFACE_COMB_NUM_CHANNELS]); in wiphy_info_iface_comb_process() 227 switch (nla_get_u32(nl_cmd)) { in wiphy_info_supp_cmds() 314 capa->max_remain_on_chan = nla_get_u32(tb); in wiphy_info_max_roc() 416 flags = nla_get_u32(tb); in wiphy_info_feature_flags() 487 protocols = nla_get_u32(tb); in wiphy_info_probe_resp_offload() 546 capa->iftype = nla_get_u32(tb1[NL80211_ATTR_IFTYPE]); in wiphy_info_extended_capab() 603 drv->wiphy_idx = nla_get_u32(tb[NL80211_ATTR_WIPHY]); in wiphy_info_handler() 621 nla_get_u32(tb[NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS]); in wiphy_info_handler() 624 nla_get_u32(tb[NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL]); in wiphy_info_handler() [all …]
|
D | driver_nl80211_event.c | 348 reason = nla_get_u32(timeout_reason); in mlme_event_connect() 537 ifidx = nla_get_u32(ifindex); in mlme_event_ch_switch() 546 enum nl80211_channel_type ch_type = nla_get_u32(type); in mlme_event_ch_switch() 564 chan_offset = calculate_chan_offset(nla_get_u32(bw), in mlme_event_ch_switch() 565 nla_get_u32(freq), in mlme_event_ch_switch() 566 nla_get_u32(cf1), in mlme_event_ch_switch() 567 cf2 ? nla_get_u32(cf2) : 0); in mlme_event_ch_switch() 573 data.ch_switch.freq = nla_get_u32(freq); in mlme_event_ch_switch() 577 data.ch_switch.ch_width = convert2width(nla_get_u32(bw)); in mlme_event_ch_switch() 579 data.ch_switch.cf1 = nla_get_u32(cf1); in mlme_event_ch_switch() [all …]
|
/external/libnl/lib/route/qdisc/ |
D | fq_codel.c | 57 fq_codel->fq_target = nla_get_u32(tb[TCA_FQ_CODEL_TARGET]); in fq_codel_msg_parser() 62 fq_codel->fq_interval = nla_get_u32(tb[TCA_FQ_CODEL_INTERVAL]); in fq_codel_msg_parser() 67 fq_codel->fq_limit = nla_get_u32(tb[TCA_FQ_CODEL_LIMIT]); in fq_codel_msg_parser() 72 fq_codel->fq_quantum = nla_get_u32(tb[TCA_FQ_CODEL_QUANTUM]); in fq_codel_msg_parser() 77 fq_codel->fq_flows = nla_get_u32(tb[TCA_FQ_CODEL_FLOWS]); in fq_codel_msg_parser() 82 fq_codel->fq_ecn = nla_get_u32(tb[TCA_FQ_CODEL_ECN]); in fq_codel_msg_parser()
|
/external/libnl/lib/genl/ |
D | ctrl.c | 86 id = nla_get_u32(tb[CTRL_ATTR_MCAST_GRP_ID]); in parse_mcast_grps() 135 uint32_t version = nla_get_u32(info->attrs[CTRL_ATTR_VERSION]); in ctrl_msg_parser() 140 uint32_t hdrsize = nla_get_u32(info->attrs[CTRL_ATTR_HDRSIZE]); in ctrl_msg_parser() 145 uint32_t maxattr = nla_get_u32(info->attrs[CTRL_ATTR_MAXATTR]); in ctrl_msg_parser() 168 id = nla_get_u32(tb[CTRL_ATTR_OP_ID]); in ctrl_msg_parser() 171 flags = nla_get_u32(tb[CTRL_ATTR_OP_FLAGS]); in ctrl_msg_parser()
|
/external/libnl/lib/route/link/ |
D | ipvti.c | 91 ipvti->link = nla_get_u32(tb[IFLA_VTI_LINK]); in ipvti_parse() 96 ipvti->ikey = nla_get_u32(tb[IFLA_VTI_IKEY]); in ipvti_parse() 101 ipvti->okey = nla_get_u32(tb[IFLA_VTI_OKEY]); in ipvti_parse() 106 ipvti->local = nla_get_u32(tb[IFLA_VTI_LOCAL]); in ipvti_parse() 111 ipvti->remote = nla_get_u32(tb[IFLA_VTI_REMOTE]); in ipvti_parse()
|
D | ipgre.c | 106 ipgre->link = nla_get_u32(tb[IFLA_GRE_LINK]); in ipgre_parse() 121 ipgre->ikey = nla_get_u32(tb[IFLA_GRE_IKEY]); in ipgre_parse() 126 ipgre->okey = nla_get_u32(tb[IFLA_GRE_OKEY]); in ipgre_parse() 131 ipgre->local = nla_get_u32(tb[IFLA_GRE_LOCAL]); in ipgre_parse() 136 ipgre->remote = nla_get_u32(tb[IFLA_GRE_LOCAL]); in ipgre_parse()
|
/external/libnl/lib/route/ |
D | rule.c | 120 rule->r_table = nla_get_u32(tb[FRA_TABLE]); in rule_msg_parser() 135 rule->r_prio = nla_get_u32(tb[FRA_PRIORITY]); in rule_msg_parser() 140 rule->r_mark = nla_get_u32(tb[FRA_FWMARK]); in rule_msg_parser() 145 rule->r_mask = nla_get_u32(tb[FRA_FWMASK]); in rule_msg_parser() 150 rule->r_goto = nla_get_u32(tb[FRA_GOTO]); in rule_msg_parser() 171 rule->r_flow = nla_get_u32(tb[FRA_FLOW]); in rule_msg_parser()
|
D | neightbl.c | 154 ntbl->nt_gc_thresh1 = nla_get_u32(tb[NDTA_THRESH1]); in neightbl_msg_parser() 159 ntbl->nt_gc_thresh2 = nla_get_u32(tb[NDTA_THRESH2]); in neightbl_msg_parser() 164 ntbl->nt_gc_thresh3 = nla_get_u32(tb[NDTA_THRESH3]); in neightbl_msg_parser() 169 ntbl->nt_gc_interval = nla_get_u32(tb[NDTA_GC_INTERVAL]); in neightbl_msg_parser() 195 p->ntp_ ##var = nla_get_u32(tbp[NDTPA_ ##name]); \ in neightbl_msg_parser()
|
/external/libnl/lib/route/cls/ |
D | fw.c | 54 f->cf_classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_msg_parser() 78 f->cf_fwmask = nla_get_u32(tb[TCA_FW_MASK]); in fw_msg_parser()
|