Home
last modified time | relevance | path

Searched refs:nla_put (Results 1 – 11 of 11) sorted by relevance

/external/libnl/lib/
Dattr.c840 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) in nla_put() function
872 return nla_put(msg, attrtype, nl_data_get_size(data), in nla_put_data()
887 return nla_put(msg, attrtype, nl_addr_get_len(addr), in nla_put_addr()
908 return nla_put(msg, attrtype, sizeof(uint8_t), &value); in nla_put_u8()
933 return nla_put(msg, attrtype, sizeof(uint16_t), &value); in nla_put_u16()
958 return nla_put(msg, attrtype, sizeof(uint32_t), &value); in nla_put_u32()
983 return nla_put(msg, attrtype, sizeof(uint64_t), &value); in nla_put_u64()
1018 return nla_put(msg, attrtype, strlen(str) + 1, str); in nla_put_string()
1053 return nla_put(msg, attrtype, 0, NULL); in nla_put_flag()
1116 return nla_put(msg, attrtype, nlmsg_len(nested->nm_nlh), in nla_put_nested()
[all …]
/external/iw/
Dbitrate.c226 nla_put(msg, NL80211_TXRATE_LEGACY, n_legacy_24, legacy_24); in handle_bitrates()
228 nla_put(msg, NL80211_TXRATE_HT, n_ht_mcs_24, ht_mcs_24); in handle_bitrates()
230 nla_put(msg, NL80211_TXRATE_VHT, sizeof(txrate_vht_24), &txrate_vht_24); in handle_bitrates()
243 nla_put(msg, NL80211_TXRATE_LEGACY, n_legacy_5, legacy_5); in handle_bitrates()
245 nla_put(msg, NL80211_TXRATE_HT, n_ht_mcs_5, ht_mcs_5); in handle_bitrates()
247 nla_put(msg, NL80211_TXRATE_VHT, sizeof(txrate_vht_5), &txrate_vht_5); in handle_bitrates()
Dmesh.c39 return nla_put(n, mesh_param_num, sizeof(uint8_t), &value->u.as_8); in _my_nla_put_u8()
44 return nla_put(n, mesh_param_num, sizeof(uint16_t), &value->u.as_16); in _my_nla_put_u16()
49 return nla_put(n, mesh_param_num, sizeof(uint32_t), &value->u.as_32); in _my_nla_put_u32()
/external/android-clat/
Dsetif.c66 if(nla_put(msg, IFA_LOCAL, addr_size, address) < 0) { in add_address()
72 if(nla_put(msg, IFA_ADDRESS, addr_size, address) < 0) { in add_address()
78 if(nla_put(msg, IFA_BROADCAST, addr_size, broadcast) < 0) { in add_address()
120 if(nla_put(msg, IFLA_MTU, 4, &mtu) < 0) { in if_up()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_scan.c140 if (nla_put(msg, i + 1, params->ssids[i].ssid_len, in nl80211_scan_common()
152 if (nla_put(msg, NL80211_ATTR_IE, params->extra_ies_len, in nl80211_scan_common()
195 if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, in nl80211_scan_common()
203 if (nla_put(msg, NL80211_ATTR_MAC_MASK, ETH_ALEN, in nl80211_scan_common()
259 if (nla_put(msg, NL80211_BAND_2GHZ, 8, in wpa_driver_nl80211_scan()
271 if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, params->bssid)) in wpa_driver_nl80211_scan()
456 nla_put(msg, NL80211_ATTR_SCHED_SCAN_MATCH_SSID, in wpa_driver_nl80211_sched_scan()
952 if (nla_put(msg, i + 1, params->ssids[i].ssid_len, in wpa_driver_nl80211_vendor_scan()
962 if (nla_put(msg, QCA_WLAN_VENDOR_ATTR_SCAN_IE, in wpa_driver_nl80211_vendor_scan()
1003 if (nla_put(msg, QCA_WLAN_VENDOR_ATTR_SCAN_MAC, in wpa_driver_nl80211_vendor_scan()
[all …]
Ddriver_nl80211.c1274 nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, drv->bssid)) { in nl80211_get_link_signal()
1831 nla_put(msg, NL80211_ATTR_FRAME_MATCH, match_len, match)) { in nl80211_register_frame()
2617 nla_put(msg, NL80211_ATTR_VENDOR_DATA, key_len, key)) { in issue_key_mgmt_set_key()
2684 nla_put(msg, NL80211_ATTR_KEY_DATA, key_len, key) || in wpa_driver_nl80211_set_key()
2691 if (nla_put(msg, NL80211_ATTR_KEY_SEQ, seq_len, seq)) in wpa_driver_nl80211_set_key()
2698 if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) in wpa_driver_nl80211_set_key()
2807 nla_put(msg, NL80211_KEY_SEQ, seq_len, seq)) || in nl_add_key()
2808 nla_put(msg, NL80211_KEY_DATA, key_len, key)) in nl_add_key()
2851 nla_put(msg, NL80211_KEY_DATA, params->wep_key_len[i], in nl80211_set_conn_keys()
2879 (addr && nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) || in wpa_driver_nl80211_mlme()
[all …]
/external/libnl/lib/netfilter/
Dlog.c46 if (nla_put(msg, NFULA_CFG_CMD, sizeof(cmd), &cmd) < 0) in build_log_cmd_request()
134 if (nla_put(msg, NFULA_CFG_MODE, sizeof(mode), &mode) < 0) in nfnl_log_build_request()
172 if (nla_put(*result, NFULA_CFG_CMD, sizeof(cmd), &cmd) < 0) in nfnl_log_build_create_request()
Dqueue.c68 if (nla_put(msg, NFQA_CFG_CMD, sizeof(cmd), &cmd) < 0) in build_queue_cmd_request()
148 if (nla_put(msg, NFQA_CFG_PARAMS, sizeof(params), &params) < 0) in nfnl_queue_build_request()
Dqueue_msg.c178 if (nla_put(nlmsg, NFQA_VERDICT_HDR, sizeof(verdict), &verdict) < 0) in nfnl_queue_msg_build_verdict()
/external/libnl/include/netlink/
Dattr.h96 extern int nla_put(struct nl_msg *, int, int, const void *);
145 if (nla_put(msg, attrtype, attrlen, data) < 0) \
/external/libnl/lib/route/sch/
Dhtb.c250 nla_put(msg, TCA_HTB_INIT, sizeof(opts), &opts); in htb_qdisc_get_opts()
333 nla_put(msg, TCA_HTB_PARMS, sizeof(opts), &opts); in htb_class_get_opts()
338 nla_put(msg, TCA_HTB_RTAB, sizeof(rtable), &rtable); in htb_class_get_opts()
343 nla_put(msg, TCA_HTB_CTAB, sizeof(ctable), &ctable); in htb_class_get_opts()