Home
last modified time | relevance | path

Searched refs:NLA_PUT (Results 1 – 25 of 39) sorted by relevance

12

/external/libnl/include/netlink/
Dattr.h165 #define NLA_PUT(msg, attrtype, attrlen, data) \ macro
182 NLA_PUT(msg, attrtype, sizeof(type), &__tmp); \
264 NLA_PUT(msg, attrtype, (int) strlen(value) + 1, value)
272 NLA_PUT(msg, attrtype, 0, NULL)
290 NLA_PUT(msg, attrtype, nl_addr_get_len(addr), \
300 NLA_PUT(msg, attrtype, nl_data_get_size(data), \
/external/iw/
Dconnect.c24 NLA_PUT(msg, NL80211_ATTR_SSID, strlen(argv[0]), argv[0]); in iw_conn()
41 NLA_PUT(msg, NL80211_ATTR_MAC, 6, bssid); in iw_conn()
162 NLA_PUT(msg, NL80211_ATTR_SSID, strlen(argv[0]), argv[0]); in iw_auth()
168 NLA_PUT(msg, NL80211_ATTR_MAC, 6, bssid); in iw_auth()
Dwowlan.c85 NLA_PUT(msg, NL80211_WOWLAN_TCP_DST_MAC, in wowlan_parse_tcp_file()
93 NLA_PUT(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD, len, pkt); in wowlan_parse_tcp_file()
104 NLA_PUT(msg, NL80211_WOWLAN_TCP_WAKE_MASK, in wowlan_parse_tcp_file()
106 NLA_PUT(msg, NL80211_WOWLAN_TCP_WAKE_PAYLOAD, in wowlan_parse_tcp_file()
129 NLA_PUT(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ, in wowlan_parse_tcp_file()
163 NLA_PUT(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in wowlan_parse_tcp_file()
291 NLA_PUT(patterns, NL80211_PKTPAT_MASK, in handle_wowlan_enable()
293 NLA_PUT(patterns, NL80211_PKTPAT_PATTERN, patlen, pat); in handle_wowlan_enable()
Dibss.c70 NLA_PUT(msg, NL80211_ATTR_SSID, strlen(argv[0]), argv[0]); in join_ibss()
114 NLA_PUT(msg, NL80211_ATTR_MAC, 6, abssid); in join_ibss()
151 NLA_PUT(msg, NL80211_ATTR_BSS_BASIC_RATES, n_rates, rates); in join_ibss()
Dmpath.c114 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst); in handle_mpath_get()
163 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst); in handle_mpath_set()
164 NLA_PUT(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop); in handle_mpath_set()
Dinterface.c240 NLA_PUT(msg, NL80211_ATTR_MESH_ID, strlen(mesh_id), mesh_id); in handle_interface_add()
242 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_interface_add()
432 NLA_PUT(msg, NL80211_ATTR_MESH_ID, strlen(mesh_id), mesh_id); in handle_interface_meshid()
547 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_interface_wds_peer()
Dstation.c371 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_station_get()
441 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_station_set_plink()
489 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_station_set_vlan()
541 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_station_set_mesh_power_mode()
Dcoalesce.c122 NLA_PUT(msg, NL80211_PKTPAT_MASK, in handle_coalesce_enable()
124 NLA_PUT(msg, NL80211_PKTPAT_PATTERN, patlen, pat); in handle_coalesce_enable()
Dmpp.c60 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst); in handle_mpp_get()
Dscan.c94 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr); in parse_random_mac_addr()
95 NLA_PUT(msg, NL80211_ATTR_MAC_MASK, ETH_ALEN, mask); in parse_random_mac_addr()
247 NLA_PUT(matchset, in parse_sched_scan()
293 NLA_PUT(ssids, in parse_sched_scan()
317 NLA_PUT(ssids, 1, 0, ""); in parse_sched_scan()
430 NLA_PUT(ssids, i, strlen(argv[i]), argv[i]); in handle_scan()
458 NLA_PUT(msg, NL80211_ATTR_IE, ies_len + meshid_len, tmpies); in handle_scan()
463 NLA_PUT(ssids, 1, 0, ""); in handle_scan()
Dvendor.c87 NLA_PUT(msg, NL80211_ATTR_VENDOR_DATA, count, buf); in handle_vendor()
/external/libnl/lib/route/link/
Dsriov.c333 NLA_PUT(msg, IFLA_VF_VLAN, sizeof(vlan), &vlan); in sriov_fill_vf_vlan()
356 NLA_PUT(msg, IFLA_VF_VLAN_INFO, sizeof(vlan), &vlan); in sriov_fill_vf_vlan_list()
397 NLA_PUT(msg, IFLA_VF_MAC, sizeof(vf_mac), &vf_mac); in sriov_fill_vfinfo()
420 NLA_PUT(msg, IFLA_VF_TX_RATE, sizeof(vf_rate), &vf_rate); in sriov_fill_vfinfo()
436 NLA_PUT(msg, IFLA_VF_RATE, sizeof(new_vf_rate), &new_vf_rate); in sriov_fill_vfinfo()
443 NLA_PUT(msg, IFLA_VF_SPOOFCHK, sizeof(vf_spoofchk), in sriov_fill_vfinfo()
452 NLA_PUT(msg, IFLA_VF_LINK_STATE, sizeof(vf_link_state), in sriov_fill_vfinfo()
461 NLA_PUT(msg, IFLA_VF_RSS_QUERY_EN, sizeof(vf_rss_query_en), in sriov_fill_vfinfo()
470 NLA_PUT(msg, IFLA_VF_TRUST, sizeof(vf_trust), &vf_trust); in sriov_fill_vfinfo()
478 NLA_PUT(msg, IFLA_VF_IB_NODE_GUID, sizeof(vf_node_guid), in sriov_fill_vfinfo()
[all …]
Dcan.c312 NLA_PUT(msg, CAN_HAS_CTRLMODE, sizeof(ci->ci_ctrlmode), in can_put_attrs()
316 NLA_PUT(msg, CAN_HAS_BITTIMING, sizeof(ci->ci_bittiming), in can_put_attrs()
320 NLA_PUT(msg, CAN_HAS_BITTIMING_CONST, in can_put_attrs()
325 NLA_PUT(msg, CAN_HAS_CLOCK, sizeof(ci->ci_clock), in can_put_attrs()
Dvlan.c313 NLA_PUT(msg, IFLA_VLAN_FLAGS, sizeof(flags), &flags); in vlan_put_attrs()
329 NLA_PUT(msg, i, sizeof(map), &map); in vlan_put_attrs()
348 NLA_PUT(msg, i, sizeof(map), &map); in vlan_put_attrs()
/external/libnl/lib/route/qdisc/
Dhfsc.c156 NLA_PUT(msg, TCA_HFSC_RSC, sizeof(tsc), &tsc); in hfsc_class_msg_fill()
161 NLA_PUT(msg, TCA_HFSC_FSC, sizeof(tsc), &tsc); in hfsc_class_msg_fill()
166 NLA_PUT(msg, TCA_HFSC_USC, sizeof(tsc), &tsc); in hfsc_class_msg_fill()
Dhtb.c272 NLA_PUT(msg, TCA_HTB_PARMS, sizeof(opts), &opts); in htb_class_msg_fill()
274 NLA_PUT(msg, TCA_HTB_RATE64, sizeof(uint64_t), &rate64); in htb_class_msg_fill()
276 NLA_PUT(msg, TCA_HTB_CEIL64, sizeof(uint64_t), &ceil64); in htb_class_msg_fill()
277 NLA_PUT(msg, TCA_HTB_RTAB, sizeof(rtable), &rtable); in htb_class_msg_fill()
278 NLA_PUT(msg, TCA_HTB_CTAB, sizeof(ctable), &ctable); in htb_class_msg_fill()
Dtbf.c155 NLA_PUT(msg, TCA_TBF_PARMS, sizeof(opts), &opts); in tbf_msg_fill()
156 NLA_PUT(msg, TCA_TBF_RTAB, sizeof(rtab), rtab); in tbf_msg_fill()
159 NLA_PUT(msg, TCA_TBF_PTAB, sizeof(ptab), ptab); in tbf_msg_fill()
Dnetem.c292 NLA_PUT(msg, TCA_OPTIONS, sizeof(opts), &opts); in netem_msg_fill_raw()
299 NLA_PUT(msg, TCA_NETEM_CORR, sizeof(cor), &cor); in netem_msg_fill_raw()
306 NLA_PUT(msg, TCA_NETEM_REORDER, sizeof(reorder), &reorder); in netem_msg_fill_raw()
313 NLA_PUT(msg, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt); in netem_msg_fill_raw()
317 NLA_PUT(msg, TCA_NETEM_DELAY_DIST, in netem_msg_fill_raw()
/external/libnl/lib/route/cls/ematch/
Dmeta.c299 NLA_PUT(msg, TCA_EM_META_HDR, sizeof(hdr), &hdr); in meta_fill()
302 NLA_PUT(msg, TCA_EM_META_LVALUE, m->left->mv_len, (m->left + 1)); in meta_fill()
305 NLA_PUT(msg, TCA_EM_META_RVALUE, m->right->mv_len, (m->right + 1)); in meta_fill()
/external/libnl/lib/xfrm/
Dae.c400 NLA_PUT (msg, XFRMA_MARK, sizeof (struct xfrmnl_mark), &tmpl->mark); in build_xfrm_ae_message()
403 NLA_PUT (msg, XFRMA_LTIME_VAL, sizeof (struct xfrmnl_lifetime_cur), &tmpl->lifetime_cur); in build_xfrm_ae_message()
414 NLA_PUT (msg, XFRMA_REPLAY_ESN_VAL, len, tmpl->replay_state_esn); in build_xfrm_ae_message()
417 NLA_PUT (msg, XFRMA_REPLAY_VAL, sizeof (struct xfrmnl_replay_state), &tmpl->replay_state); in build_xfrm_ae_message()
621 NLA_PUT (msg, XFRMA_MARK, sizeof (struct xfrmnl_mark), &mark); in xfrmnl_ae_build_get_request()
Dsa.c1058 NLA_PUT (msg, XFRMA_MARK, sizeof (struct xfrm_mark), &mark); in xfrmnl_sa_build_get_request()
1176 NLA_PUT (msg, XFRMA_ALG_AEAD, len, tmpl->aead); in build_xfrm_sa_message()
1184 NLA_PUT (msg, XFRMA_ALG_AUTH_TRUNC, len, tmpl->auth); in build_xfrm_sa_message()
1209 NLA_PUT (msg, XFRMA_ALG_CRYPT, len, tmpl->crypt); in build_xfrm_sa_message()
1214 NLA_PUT (msg, XFRMA_ALG_COMP, len, tmpl->comp); in build_xfrm_sa_message()
1237 NLA_PUT (msg, XFRMA_COADDR, sizeof (xfrm_address_t), tmpl->coaddr); in build_xfrm_sa_message()
1241 NLA_PUT (msg, XFRMA_MARK, sizeof (struct xfrm_mark), &tmpl->mark); in build_xfrm_sa_message()
1246 NLA_PUT (msg, XFRMA_SEC_CTX, len, tmpl->sec_ctx); in build_xfrm_sa_message()
1260 NLA_PUT (msg, XFRMA_REPLAY_ESN_VAL, len, tmpl->replay_state_esn); in build_xfrm_sa_message()
1263 NLA_PUT (msg, XFRMA_REPLAY_VAL, sizeof (struct xfrm_replay_state), &tmpl->replay_state); in build_xfrm_sa_message()
[all …]
Dsp.c722 NLA_PUT (msg, XFRMA_MARK, sizeof (struct xfrm_mark), &mark); in xfrmnl_sp_build_get_request()
834 NLA_PUT (msg, XFRMA_SEC_CTX, len, tmpl->sec_ctx); in build_xfrm_sp_message()
839 NLA_PUT (msg, XFRMA_POLICY_TYPE, len, &tmpl->uptype); in build_xfrm_sp_message()
877 NLA_PUT (msg, XFRMA_MARK, sizeof (struct xfrm_mark), &tmpl->mark); in build_xfrm_sp_message()
999 NLA_PUT (msg, XFRMA_SEC_CTX, len, tmpl->sec_ctx); in build_xfrm_sp_delete_message()
1004 NLA_PUT (msg, XFRMA_MARK, len, &tmpl->mark); in build_xfrm_sp_delete_message()
/external/libnl/lib/route/act/
Dgact.c109 NLA_PUT(msg, TCA_GACT_PARMS, sizeof(u->g_parm), &u->g_parm); in gact_msg_fill()
Dmirred.c119 NLA_PUT(msg, TCA_MIRRED_PARMS, sizeof(u->m_parm), &u->m_parm); in mirred_msg_fill()
/external/libnl/lib/netfilter/
Dqueue.c174 NLA_PUT(*result, NFQA_CFG_CMD, sizeof(cmd), &cmd); in nfnl_queue_build_create_request()

12