Home
last modified time | relevance | path

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

1234567

/linux/crypto/
A Dcrypto_user_stat.c45 return nla_put(skb, CRYPTOCFGA_STAT_AEAD, sizeof(raead), &raead); in crypto_report_aead()
62 return nla_put(skb, CRYPTOCFGA_STAT_CIPHER, sizeof(rcipher), &rcipher); in crypto_report_cipher()
78 return nla_put(skb, CRYPTOCFGA_STAT_COMPRESS, sizeof(rcomp), &rcomp); in crypto_report_comp()
94 return nla_put(skb, CRYPTOCFGA_STAT_ACOMP, sizeof(racomp), &racomp); in crypto_report_acomp()
112 return nla_put(skb, CRYPTOCFGA_STAT_AKCIPHER, in crypto_report_akcipher()
129 return nla_put(skb, CRYPTOCFGA_STAT_KPP, sizeof(rkpp), &rkpp); in crypto_report_kpp()
144 return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash); in crypto_report_ahash()
159 return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash); in crypto_report_shash()
175 return nla_put(skb, CRYPTOCFGA_STAT_RNG, sizeof(rrng), &rrng); in crypto_report_rng()
202 if (nla_put(skb, CRYPTOCFGA_STAT_LARVAL, sizeof(rl), &rl)) in crypto_reportstat_one()
A Dcrypto_user_base.c84 return nla_put(skb, CRYPTOCFGA_REPORT_CIPHER, in crypto_report_cipher()
96 return nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, sizeof(rcomp), &rcomp); in crypto_report_comp()
122 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl)) in crypto_report_one()
/linux/drivers/net/can/dev/
A Dnetlink.c486 nla_put(skb, IFLA_CAN_BITTIMING, in can_fill_info()
490 nla_put(skb, IFLA_CAN_BITTIMING_CONST, in can_fill_info()
495 nla_put(skb, IFLA_CAN_CTRLMODE, sizeof(cm), &cm) || in can_fill_info()
500 nla_put(skb, IFLA_CAN_BERR_COUNTER, sizeof(bec), &bec)) || in can_fill_info()
503 nla_put(skb, IFLA_CAN_DATA_BITTIMING, in can_fill_info()
507 nla_put(skb, IFLA_CAN_DATA_BITTIMING_CONST, in can_fill_info()
513 nla_put(skb, IFLA_CAN_TERMINATION_CONST, in can_fill_info()
519 nla_put(skb, IFLA_CAN_BITRATE_CONST, in can_fill_info()
525 nla_put(skb, IFLA_CAN_DATA_BITRATE_CONST, in can_fill_info()
530 (nla_put(skb, IFLA_CAN_BITRATE_MAX, in can_fill_info()
[all …]
/linux/include/net/
A Dnetlink.h1246 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8()
1259 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16()
1272 return nla_put(skb, attrtype, sizeof(__be16), &tmp); in nla_put_be16()
1311 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32()
1424 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8()
1437 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16()
1450 return nla_put(skb, attrtype, sizeof(s32), &tmp); in nla_put_s32()
1487 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
1530 return nla_put(skb, attrtype, sizeof(*addr), addr); in nla_put_in6_addr()
1545 return nla_put(skb, attrtype, sizeof(tmp), &tmp); in nla_put_bitfield32()
[all …]
/linux/drivers/nfc/st-nci/
A Dvendor_cmds.c110 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_info()
142 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_data()
226 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_get_param()
271 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_measurement_value()
307 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_value_comparison()
341 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_loopback()
365 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, sizeof(ndev->manufact_specific_info), in st_nci_manufacturer_specific()
/linux/net/xdp/
A Dxsk_diag.c23 return nla_put(nlskb, XDP_DIAG_INFO, sizeof(di), &di); in xsk_diag_put_info()
32 return nla_put(nlskb, nl_type, sizeof(dr), &dr); in xsk_diag_put_ring()
69 err = nla_put(nlskb, XDP_DIAG_UMEM, sizeof(du), &du); in xsk_diag_put_umem()
89 return nla_put(nlskb, XDP_DIAG_STATS, sizeof(du), &du); in xsk_diag_put_stats()
/linux/net/hsr/
A Dhsr_netlink.c139 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN, in hsr_fill_info()
203 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror()
244 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown()
340 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status()
346 res = nla_put(skb_out, HSR_A_NODE_ADDR_B, ETH_ALEN, in hsr_get_node_status()
461 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_get_node_list()
/linux/drivers/net/wireguard/
A Dnetlink.c86 nla_put(skb, WGALLOWEDIP_A_IPADDR, family == AF_INET6 ? in get_allowedips()
117 fail = nla_put(skb, WGPEER_A_PUBLIC_KEY, NOISE_PUBLIC_KEY_LEN, in get_peer()
130 fail = nla_put(skb, WGPEER_A_PRESHARED_KEY, in get_peer()
137 if (nla_put(skb, WGPEER_A_LAST_HANDSHAKE_TIME, in get_peer()
150 fail = nla_put(skb, WGPEER_A_ENDPOINT, in get_peer()
154 fail = nla_put(skb, WGPEER_A_ENDPOINT, in get_peer()
241 if (nla_put(skb, WGDEVICE_A_PRIVATE_KEY, in wg_get_device_dump()
244 nla_put(skb, WGDEVICE_A_PUBLIC_KEY, in wg_get_device_dump()
/linux/drivers/nfc/st21nfca/
A Dvendor_cmds.c107 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_info()
142 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_data()
205 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_get_param()
284 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, info->vendor_info.rx_skb->len, in st21nfca_hci_loopback()
/linux/net/unix/
A Ddiag.c22 return nla_put(nlskb, UNIX_DIAG_NAME, addr->len - sizeof(short), in sk_diag_dump_name()
36 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
113 return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); in sk_diag_show_rqlen()
119 return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); in sk_diag_dump_uid()
/linux/drivers/net/wireless/ti/wlcore/
A Dtestmode.c120 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test()
186 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd)) { in wl1271_tm_cmd_interrogate()
258 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(wl->fem_manuf), in wl1271_tm_detect_fem()
338 if (nla_put(skb, WL1271_TM_ATTR_DATA, ETH_ALEN, mac_addr)) { in wl12xx_tm_cmd_get_mac()
/linux/net/smc/
A Dsmc_diag.c102 if (nla_put(skb, SMC_DIAG_FALLBACK, sizeof(fallback), &fallback) < 0) in __smc_diag_dump()
141 if (nla_put(skb, SMC_DIAG_CONNINFO, sizeof(cinfo), &cinfo) < 0) in __smc_diag_dump()
162 if (nla_put(skb, SMC_DIAG_LGRINFO, sizeof(linfo), &linfo) < 0) in __smc_diag_dump()
179 if (nla_put(skb, SMC_DIAG_DMBINFO, sizeof(dinfo), &dinfo) < 0) in __smc_diag_dump()
/linux/net/sched/
A Dsch_netem.c1112 if (nla_put(skb, NETEM_LOSS_GI, sizeof(gi), &gi)) in dump_loss_model()
1124 if (nla_put(skb, NETEM_LOSS_GE, sizeof(ge), &ge)) in dump_loss_model()
1157 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in netem_dump()
1160 if (nla_put(skb, TCA_NETEM_LATENCY64, sizeof(q->latency), &q->latency)) in netem_dump()
1163 if (nla_put(skb, TCA_NETEM_JITTER64, sizeof(q->jitter), &q->jitter)) in netem_dump()
1169 if (nla_put(skb, TCA_NETEM_CORR, sizeof(cor), &cor)) in netem_dump()
1174 if (nla_put(skb, TCA_NETEM_REORDER, sizeof(reorder), &reorder)) in netem_dump()
1179 if (nla_put(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt)) in netem_dump()
1193 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump()
1209 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot)) in netem_dump()
A Dact_ife.c66 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
110 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u16()
660 if (nla_put(skb, TCA_IFE_PARMS, sizeof(opt), &opt)) in tcf_ife_dump()
668 if (nla_put(skb, TCA_IFE_DMAC, ETH_ALEN, p->eth_dst)) in tcf_ife_dump()
673 if (nla_put(skb, TCA_IFE_SMAC, ETH_ALEN, p->eth_src)) in tcf_ife_dump()
677 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type)) in tcf_ife_dump()
A Dact_skbmod.c255 if (nla_put(skb, TCA_SKBMOD_PARMS, sizeof(opt), &opt)) in tcf_skbmod_dump()
258 nla_put(skb, TCA_SKBMOD_DMAC, ETH_ALEN, p->eth_dst)) in tcf_skbmod_dump()
261 nla_put(skb, TCA_SKBMOD_SMAC, ETH_ALEN, p->eth_src)) in tcf_skbmod_dump()
A Dact_vlan.c302 if (nla_put(skb, TCA_VLAN_PARMS, sizeof(opt), &opt)) in tcf_vlan_dump()
315 if (nla_put(skb, TCA_VLAN_PUSH_ETH_DST, ETH_ALEN, in tcf_vlan_dump()
318 if (nla_put(skb, TCA_VLAN_PUSH_ETH_SRC, ETH_ALEN, in tcf_vlan_dump()
/linux/net/can/
A Dgw.c653 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
660 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
667 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
674 if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
683 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
690 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
697 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
704 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
715 if (nla_put(skb, CGW_CS_CRC8, CGW_CS_CRC8_LEN, in cgw_put_job()
721 if (nla_put(skb, CGW_CS_XOR, CGW_CS_XOR_LEN, in cgw_put_job()
[all …]
/linux/net/8021q/
A Dvlan_netlink.c228 if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) in vlan_fill_info()
242 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
262 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
/linux/net/batman-adv/
A Dbat_v.c146 if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_neigh_dump_neigh()
299 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, orig_node->orig) || in batadv_v_orig_dump_subentry()
300 nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_orig_dump_subentry()
716 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, in batadv_v_gw_dump_entry()
728 if (nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, router->addr)) { in batadv_v_gw_dump_entry()
/linux/net/dcb/
A Ddcbnl.c1013 nla_put(skb, app_info_type, sizeof(info), &info)) in dcbnl_build_peer_app()
1017 if (nla_put(skb, app_entry_type, sizeof(struct dcb_app), in dcbnl_build_peer_app()
1051 nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill()
1060 err = nla_put(skb, DCB_ATTR_IEEE_MAXRATE, in dcbnl_ieee_fill()
1073 err = nla_put(skb, DCB_ATTR_IEEE_QCN, in dcbnl_ieee_fill()
1086 err = nla_put(skb, DCB_ATTR_IEEE_QCN_STATS, in dcbnl_ieee_fill()
1098 nla_put(skb, DCB_ATTR_IEEE_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1119 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
1142 nla_put(skb, DCB_ATTR_IEEE_PEER_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill()
1332 nla_put(skb, DCB_ATTR_CEE_PEER_PG, sizeof(pg), &pg)) in dcbnl_cee_fill()
[all …]
/linux/net/bridge/
A Dbr_netlink.c252 nla_put(skb, IFLA_BRPORT_ROOT_ID, sizeof(struct ifla_bridge_id), in br_port_fill_attrs()
318 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
324 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
330 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
416 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo()
468 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
1552 nla_put(skb, IFLA_BR_BRIDGE_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1554 nla_put(skb, IFLA_BR_ROOT_ID, sizeof(struct ifla_bridge_id), in br_fill_info()
1561 nla_put(skb, IFLA_BR_GROUP_ADDR, ETH_ALEN, br->group_addr) || in br_fill_info()
1562 nla_put(skb, IFLA_BR_MULTI_BOOLOPT, sizeof(bm), &bm)) in br_fill_info()
[all …]
/linux/net/wireless/
A Dnl80211.c2344 if (nla_put(msg, NL80211_ATTR_CIPHER_SUITES, in nl80211_send_wiphy()
2616 (nla_put(msg, NL80211_ATTR_EXT_CAPA, in nl80211_send_wiphy()
2630 if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, in nl80211_send_wiphy()
2647 if (nla_put(msg, i + 1, ETH_ALEN, in nl80211_send_wiphy()
2723 if (nla_put(msg, NL80211_ATTR_EXT_FEATURES, in nl80211_send_wiphy()
2771 nla_put(msg, NL80211_ATTR_EXT_CAPA, in nl80211_send_wiphy()
2826 nla_put(msg, NL80211_ATTR_AKM_SUITES, in nl80211_send_wiphy()
4187 nla_put(cookie->msg, NL80211_KEY_DATA, in get_key_callback()
4190 nla_put(cookie->msg, NL80211_KEY_SEQ, in get_key_callback()
6110 nla_put(msg, NL80211_STA_INFO_STA_FLAGS, in nl80211_send_station()
[all …]
/linux/drivers/net/wireless/ti/wl18xx/
A Devent.c93 if (nla_put(skb, WLCORE_VENDOR_ATTR_SSID, ssid_len, ssid) || in wlcore_smart_config_decode_event()
94 nla_put(skb, WLCORE_VENDOR_ATTR_PSK, pwd_len, pwd)) { in wlcore_smart_config_decode_event()
/linux/net/netfilter/
A Dnfnetlink_log.c432 if (nla_put(inst->skb, NFULA_L2HDR, len, skb_mac_header(skb))) in nfulnl_put_bridge()
473 if (nla_put(inst->skb, NFULA_PACKET_HDR, sizeof(pmsg), &pmsg)) in __build_packet_message()
477 nla_put(inst->skb, NFULA_PREFIX, plen, prefix)) in __build_packet_message()
568 if (nla_put(inst->skb, NFULA_HWADDR, sizeof(phw), &phw)) in __build_packet_message()
585 nla_put(inst->skb, NFULA_HWHEADER, in __build_packet_message()
596 if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) in __build_packet_message()
/linux/include/linux/
A Dgenl_magic_struct.h92 nla_strscpy, nla_put, false)
95 nla_memcpy, nla_put, false)

Completed in 73 milliseconds

1234567