Home
last modified time | relevance | path

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

/linux-4.1.27/include/net/
Dnetlink.h253 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
748 return nla_put(skb, attrtype, sizeof(u8), &value); in nla_put_u8()
759 return nla_put(skb, attrtype, sizeof(u16), &value); in nla_put_u16()
770 return nla_put(skb, attrtype, sizeof(__be16), &value); in nla_put_be16()
792 return nla_put(skb, attrtype, sizeof(__le16), &value); in nla_put_le16()
803 return nla_put(skb, attrtype, sizeof(u32), &value); in nla_put_u32()
814 return nla_put(skb, attrtype, sizeof(__be32), &value); in nla_put_be32()
836 return nla_put(skb, attrtype, sizeof(__le32), &value); in nla_put_le32()
847 return nla_put(skb, attrtype, sizeof(u64), &value); in nla_put_u64()
858 return nla_put(skb, attrtype, sizeof(__be64), &value); in nla_put_be64()
[all …]
Dxfrm.h1785 ret = nla_put(skb, XFRMA_MARK, sizeof(struct xfrm_mark), m); in xfrm_mark_put()
/linux-4.1.27/net/sched/
Dact_skbedit.c149 if (nla_put(skb, TCA_SKBEDIT_PARMS, sizeof(opt), &opt)) in tcf_skbedit_dump()
152 nla_put(skb, TCA_SKBEDIT_PRIORITY, sizeof(d->priority), in tcf_skbedit_dump()
156 nla_put(skb, TCA_SKBEDIT_QUEUE_MAPPING, in tcf_skbedit_dump()
160 nla_put(skb, TCA_SKBEDIT_MARK, sizeof(d->mark), in tcf_skbedit_dump()
166 if (nla_put(skb, TCA_SKBEDIT_TM, sizeof(t), &t)) in tcf_skbedit_dump()
Dact_gact.c154 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt)) in tcf_gact_dump()
164 if (nla_put(skb, TCA_GACT_PROB, sizeof(p_opt), &p_opt)) in tcf_gact_dump()
171 if (nla_put(skb, TCA_GACT_TM, sizeof(t), &t)) in tcf_gact_dump()
Dact_connmark.c151 if (nla_put(skb, TCA_CONNMARK_PARMS, sizeof(opt), &opt)) in tcf_connmark_dump()
157 if (nla_put(skb, TCA_CONNMARK_TM, sizeof(t), &t)) in tcf_connmark_dump()
Dact_simple.c148 if (nla_put(skb, TCA_DEF_PARMS, sizeof(opt), &opt) || in tcf_simp_dump()
154 if (nla_put(skb, TCA_DEF_TM, sizeof(t), &t)) in tcf_simp_dump()
Dact_ipt.c242 if (nla_put(skb, TCA_IPT_TARG, ipt->tcfi_t->u.user.target_size, t) || in tcf_ipt_dump()
245 nla_put(skb, TCA_IPT_CNT, sizeof(struct tc_cnt), &c) || in tcf_ipt_dump()
251 if (nla_put(skb, TCA_IPT_TM, sizeof (tm), &tm)) in tcf_ipt_dump()
Dact_vlan.c163 if (nla_put(skb, TCA_VLAN_PARMS, sizeof(opt), &opt)) in tcf_vlan_dump()
174 if (nla_put(skb, TCA_VLAN_TM, sizeof(t), &t)) in tcf_vlan_dump()
Dsch_netem.c934 if (nla_put(skb, NETEM_LOSS_GI, sizeof(gi), &gi)) in dump_loss_model()
946 if (nla_put(skb, NETEM_LOSS_GE, sizeof(ge), &ge)) in dump_loss_model()
976 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in netem_dump()
982 if (nla_put(skb, TCA_NETEM_CORR, sizeof(cor), &cor)) in netem_dump()
987 if (nla_put(skb, TCA_NETEM_REORDER, sizeof(reorder), &reorder)) in netem_dump()
992 if (nla_put(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt)) in netem_dump()
1005 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump()
Dact_mirred.c200 if (nla_put(skb, TCA_MIRRED_PARMS, sizeof(opt), &opt)) in tcf_mirred_dump()
205 if (nla_put(skb, TCA_MIRRED_TM, sizeof(t), &t)) in tcf_mirred_dump()
Dact_pedit.c201 if (nla_put(skb, TCA_PEDIT_PARMS, s, opt)) in tcf_pedit_dump()
206 if (nla_put(skb, TCA_PEDIT_TM, sizeof(t), &t)) in tcf_pedit_dump()
Dact_nat.c268 if (nla_put(skb, TCA_NAT_PARMS, sizeof(opt), &opt)) in tcf_nat_dump()
273 if (nla_put(skb, TCA_NAT_TM, sizeof(t), &t)) in tcf_nat_dump()
Dact_bpf.c137 if (nla_put(skb, TCA_ACT_BPF_PARMS, sizeof(opt), &opt)) in tcf_bpf_dump()
151 if (nla_put(skb, TCA_ACT_BPF_TM, sizeof(tm), &tm)) in tcf_bpf_dump()
Dematch.c447 if (nla_put(skb, TCA_EMATCH_TREE_HDR, sizeof(tree->hdr), &tree->hdr)) in tcf_em_tree_dump()
464 if (nla_put(skb, i + 1, sizeof(em_hdr), &em_hdr)) in tcf_em_tree_dump()
Dsch_fifo.c88 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in fifo_dump()
Dcls_rsvp.h677 if (nla_put(skb, TCA_RSVP_DST, sizeof(s->dst), &s->dst)) in rsvp_dump()
685 if (nla_put(skb, TCA_RSVP_PINFO, sizeof(pinfo), &pinfo)) in rsvp_dump()
691 nla_put(skb, TCA_RSVP_SRC, sizeof(f->src), f->src)) in rsvp_dump()
Dem_meta.c676 nla_put(skb, tlv, v->len, (void *) v->val)) in meta_var_dump()
728 if (nla_put(skb, tlv, sizeof(unsigned long), &v->val)) in meta_int_dump()
927 if (nla_put(skb, TCA_EM_META_HDR, sizeof(hdr), &hdr)) in em_meta_dump()
Dact_csum.c546 if (nla_put(skb, TCA_CSUM_PARMS, sizeof(opt), &opt)) in tcf_csum_dump()
551 if (nla_put(skb, TCA_CSUM_TM, sizeof(t), &t)) in tcf_csum_dump()
Dsch_cbq.c1411 if (nla_put(skb, TCA_CBQ_RATE, sizeof(cl->R_tab->rate), &cl->R_tab->rate)) in cbq_dump_rate()
1437 if (nla_put(skb, TCA_CBQ_LSSOPT, sizeof(opt), &opt)) in cbq_dump_lss()
1457 if (nla_put(skb, TCA_CBQ_WRROPT, sizeof(opt), &opt)) in cbq_dump_wrr()
1475 if (nla_put(skb, TCA_CBQ_OVL_STRATEGY, sizeof(opt), &opt)) in cbq_dump_ovl()
1493 if (nla_put(skb, TCA_CBQ_FOPT, sizeof(opt), &opt)) in cbq_dump_fopt()
1513 if (nla_put(skb, TCA_CBQ_POLICE, sizeof(opt), &opt)) in cbq_dump_police()
Dsch_gred.c523 if (nla_put(skb, TCA_GRED_DPS, sizeof(sopt), &sopt)) in gred_dump()
531 if (nla_put(skb, TCA_GRED_MAX_P, sizeof(max_p), max_p)) in gred_dump()
Dcls_u32.c965 if (nla_put(skb, TCA_U32_SEL, in u32_dump()
998 if (nla_put(skb, TCA_U32_MARK, sizeof(mark), &mark)) in u32_dump()
1031 if (nla_put(skb, TCA_U32_PCNT, in u32_dump()
Dsch_atm.c604 if (nla_put(skb, TCA_ATM_HDR, flow->hdr_len, flow->hdr)) in atm_tc_dump_class()
615 if (nla_put(skb, TCA_ATM_ADDR, sizeof(pvc), &pvc)) in atm_tc_dump_class()
Dsch_prio.c252 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in prio_dump()
Dsch_red.c275 if (nla_put(skb, TCA_RED_PARMS, sizeof(opt), &opt) || in red_dump()
Dsch_multiq.c287 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in multiq_dump()
Dact_police.c330 if (nla_put(skb, TCA_POLICE_TBF, sizeof(opt), &opt)) in tcf_act_police_dump()
Dsch_mqprio.c255 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in mqprio_dump()
Dsch_tbf.c469 if (nla_put(skb, TCA_TBF_PARMS, sizeof(opt), &opt)) in tbf_dump()
Dsch_choke.c517 if (nla_put(skb, TCA_CHOKE_PARMS, sizeof(opt), &opt) || in choke_dump()
Dsch_sfb.c577 if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt)) in sfb_dump()
Dsch_generic.c546 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in pfifo_fast_dump()
Dsch_htb.c1082 if (nla_put(skb, TCA_HTB_INIT, sizeof(gopt), &gopt) || in htb_dump()
1121 if (nla_put(skb, TCA_HTB_PARMS, sizeof(opt), &opt)) in htb_dump_class()
Dsch_hfsc.c1311 if (nla_put(skb, attr, sizeof(tsc), &tsc)) in hfsc_dump_sc()
1575 if (nla_put(skb, TCA_OPTIONS, sizeof(qopt), &qopt)) in hfsc_dump_qdisc()
Dsch_sfq.c810 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in sfq_dump()
Dsch_api.c532 if (nla_put(skb, TCA_STAB_BASE, sizeof(stab->szopts), &stab->szopts)) in qdisc_dump_stab()
/linux-4.1.27/net/hsr/
Dhsr_netlink.c94 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN, in hsr_fill_info()
163 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror()
205 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown()
302 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status()
308 res = nla_put(skb_out, HSR_A_NODE_ADDR_B, ETH_ALEN, in hsr_get_node_status()
421 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_get_node_list()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dtestmode.c132 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test()
195 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd)) { in wl1271_tm_cmd_interrogate()
266 if (nla_put(skb, WL1271_TM_ATTR_DATA, sizeof(wl->fem_manuf), in wl1271_tm_detect_fem()
346 if (nla_put(skb, WL1271_TM_ATTR_DATA, ETH_ALEN, mac_addr)) { in wl12xx_tm_cmd_get_mac()
/linux-4.1.27/net/8021q/
Dvlan_netlink.c194 if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) in vlan_fill_info()
208 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
228 if (nla_put(skb, IFLA_VLAN_QOS_MAPPING, in vlan_fill_info()
/linux-4.1.27/drivers/net/can/
Ddev.c958 nla_put(skb, IFLA_CAN_BITTIMING, in can_fill_info()
962 nla_put(skb, IFLA_CAN_BITTIMING_CONST, in can_fill_info()
965 nla_put(skb, IFLA_CAN_CLOCK, sizeof(priv->clock), &priv->clock) || in can_fill_info()
967 nla_put(skb, IFLA_CAN_CTRLMODE, sizeof(cm), &cm) || in can_fill_info()
972 nla_put(skb, IFLA_CAN_BERR_COUNTER, sizeof(bec), &bec)) || in can_fill_info()
975 nla_put(skb, IFLA_CAN_DATA_BITTIMING, in can_fill_info()
979 nla_put(skb, IFLA_CAN_DATA_BITTIMING_CONST, in can_fill_info()
996 if (nla_put(skb, IFLA_INFO_XSTATS, in can_fill_xstats()
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Devent.c106 if (nla_put(skb, WLCORE_VENDOR_ATTR_SSID, ssid_len, ssid) || in wlcore_smart_config_decode_event()
107 nla_put(skb, WLCORE_VENDOR_ATTR_PSK, pwd_len, pwd)) { in wlcore_smart_config_decode_event()
/linux-4.1.27/net/unix/
Ddiag.c18 return nla_put(nlskb, UNIX_DIAG_NAME, addr->len - sizeof(short), in sk_diag_dump_name()
32 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
109 return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); in sk_diag_show_rqlen()
/linux-4.1.27/net/can/
Dgw.c526 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
533 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
540 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
547 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
552 if (nla_put(skb, CGW_CS_CRC8, CGW_CS_CRC8_LEN, in cgw_put_job()
558 if (nla_put(skb, CGW_CS_XOR, CGW_CS_XOR_LEN, in cgw_put_job()
566 if (nla_put(skb, CGW_FILTER, sizeof(struct can_filter), in cgw_put_job()
/linux-4.1.27/net/dcb/
Ddcbnl.c291 return nla_put(skb, DCB_ATTR_PERM_HWADDR, sizeof(perm_addr), perm_addr); in dcbnl_getperm_hwaddr()
1018 nla_put(skb, app_info_type, sizeof(info), &info)) in dcbnl_build_peer_app()
1022 if (nla_put(skb, app_entry_type, sizeof(struct dcb_app), in dcbnl_build_peer_app()
1056 nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill()
1065 err = nla_put(skb, DCB_ATTR_IEEE_MAXRATE, in dcbnl_ieee_fill()
1078 err = nla_put(skb, DCB_ATTR_IEEE_QCN, in dcbnl_ieee_fill()
1091 err = nla_put(skb, DCB_ATTR_IEEE_QCN_STATS, in dcbnl_ieee_fill()
1103 nla_put(skb, DCB_ATTR_IEEE_PFC, sizeof(pfc), &pfc)) in dcbnl_ieee_fill()
1114 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
1137 nla_put(skb, DCB_ATTR_IEEE_PEER_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill()
[all …]
/linux-4.1.27/net/netlink/
Ddiag.c22 return nla_put(nlskb, nl_type, sizeof(ndr), &ndr); in sk_diag_put_ring()
53 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), in sk_diag_dump_groups()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dtestmode.c59 nla_put(skb, ATH6KL_TM_ATTR_DATA, buf_len, buf)) in ath6kl_tm_rx_event()
/linux-4.1.27/net/xfrm/
Dxfrm_user.c782 ret = nla_put(skb, XFRMA_COADDR, sizeof(*x->coaddr), x->coaddr); in copy_to_user_state_extra()
792 ret = nla_put(skb, XFRMA_ALG_AEAD, aead_len(x->aead), x->aead); in copy_to_user_state_extra()
799 ret = nla_put(skb, XFRMA_ALG_AUTH_TRUNC, in copy_to_user_state_extra()
805 ret = nla_put(skb, XFRMA_ALG_CRYPT, xfrm_alg_len(x->ealg), x->ealg); in copy_to_user_state_extra()
810 ret = nla_put(skb, XFRMA_ALG_COMP, sizeof(*(x->calg)), x->calg); in copy_to_user_state_extra()
815 ret = nla_put(skb, XFRMA_ENCAP, sizeof(*x->encap), x->encap); in copy_to_user_state_extra()
828 ret = nla_put(skb, XFRMA_REPLAY_ESN_VAL, in copy_to_user_state_extra()
832 ret = nla_put(skb, XFRMA_REPLAY_VAL, sizeof(x->replay), in copy_to_user_state_extra()
1010 err = nla_put(skb, XFRMA_SPD_INFO, sizeof(spc), &spc); in build_spdinfo()
1012 err = nla_put(skb, XFRMA_SPD_HINFO, sizeof(sph), &sph); in build_spdinfo()
[all …]
/linux-4.1.27/net/core/
Drtnetlink.c720 return nla_put(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rtnl_put_cacheinfo()
980 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
998 if (nla_put(skb, IFLA_PHYS_PORT_NAME, strlen(name), name)) in rtnl_phys_port_name_fill()
1016 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, psid.id_len, psid.id)) in rtnl_phys_switch_id_fill()
1081 if (nla_put(skb, IFLA_MAP, sizeof(map), &map)) in rtnl_fill_ifinfo()
1086 if (nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr) || in rtnl_fill_ifinfo()
1087 nla_put(skb, IFLA_BROADCAST, dev->addr_len, dev->broadcast)) in rtnl_fill_ifinfo()
1175 if (nla_put(skb, IFLA_VF_MAC, sizeof(vf_mac), &vf_mac) || in rtnl_fill_ifinfo()
1176 nla_put(skb, IFLA_VF_VLAN, sizeof(vf_vlan), &vf_vlan) || in rtnl_fill_ifinfo()
1177 nla_put(skb, IFLA_VF_RATE, sizeof(vf_rate), in rtnl_fill_ifinfo()
[all …]
Dsock_diag.c65 return nla_put(skb, attrtype, sizeof(mem), &mem); in sock_diag_put_meminfo()
Dgen_stats.c30 if (nla_put(d->skb, type, size, buf)) in gnet_stats_copy()
Dneighbour.c1825 if (nla_put(skb, NDTA_CONFIG, sizeof(ndc), &ndc)) in neightbl_fill_info()
1851 if (nla_put(skb, NDTA_STATS, sizeof(ndst), &ndst)) in neightbl_fill_info()
2160 if (nla_put(skb, NDA_DST, neigh->tbl->key_len, neigh->primary_key)) in neigh_fill_info()
2169 if (nla_put(skb, NDA_LLADDR, neigh->dev->addr_len, haddr) < 0) { in neigh_fill_info()
2182 nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in neigh_fill_info()
2213 if (nla_put(skb, NDA_DST, tbl->key_len, pn->key)) in pneigh_fill_info()
/linux-4.1.27/crypto/
Dpcompress.c57 if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, in crypto_pcomp_report()
Dcrypto_user.c90 if (nla_put(skb, CRYPTOCFGA_REPORT_CIPHER, in crypto_report_cipher()
104 if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, in crypto_report_comp()
133 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, in crypto_report_one()
Drng.c72 if (nla_put(skb, CRYPTOCFGA_REPORT_RNG, in crypto_rng_report()
Daead.c127 if (nla_put(skb, CRYPTOCFGA_REPORT_AEAD, in crypto_aead_report()
212 if (nla_put(skb, CRYPTOCFGA_REPORT_AEAD, in crypto_nivaead_report()
Dablkcipher.c398 if (nla_put(skb, CRYPTOCFGA_REPORT_BLKCIPHER, in crypto_ablkcipher_report()
479 if (nla_put(skb, CRYPTOCFGA_REPORT_BLKCIPHER, in crypto_givcipher_report()
Dahash.c498 if (nla_put(skb, CRYPTOCFGA_REPORT_HASH, in crypto_ahash_report()
Dshash.c540 if (nla_put(skb, CRYPTOCFGA_REPORT_HASH, in crypto_shash_report()
Dblkcipher.c524 if (nla_put(skb, CRYPTOCFGA_REPORT_BLKCIPHER, in crypto_blkcipher_report()
/linux-4.1.27/include/linux/
Dgenl_magic_struct.h86 nla_strlcpy, nla_put, false)
89 nla_memcpy, nla_put, false)
/linux-4.1.27/net/wireless/
Dnl80211.c1034 if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in nl80211_send_wowlan_tcp_caps()
1089 if (nla_put(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN, in nl80211_send_wowlan()
1123 if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule)) in nl80211_send_coalesce()
1138 (nla_put(msg, NL80211_BAND_ATTR_HT_MCS_SET, in nl80211_send_band_rateinfo()
1151 (nla_put(msg, NL80211_BAND_ATTR_VHT_MCS_SET, in nl80211_send_band_rateinfo()
1331 if (nla_put(msg, NL80211_ATTR_CIPHER_SUITES, in nl80211_send_wiphy()
1613 nla_put(msg, NL80211_ATTR_HT_CAPABILITY_MASK, in nl80211_send_wiphy()
1638 (nla_put(msg, NL80211_ATTR_EXT_CAPA, in nl80211_send_wiphy()
1641 nla_put(msg, NL80211_ATTR_EXT_CAPA_MASK, in nl80211_send_wiphy()
1647 nla_put(msg, NL80211_ATTR_VHT_CAPABILITY_MASK, in nl80211_send_wiphy()
[all …]
/linux-4.1.27/net/bridge/
Dbr_netlink.c165 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
173 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
179 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo_range()
259 if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO, in br_fill_ifvlaninfo()
309 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
Dbr_mdb.c95 if (nla_put(skb, MDBA_MDB_ENTRY_INFO, sizeof(e), &e)) { in br_mdb_fill_info()
188 if (nla_put(skb, MDBA_MDB_ENTRY_INFO, sizeof(*entry), entry)) in nlmsg_populate_mdb_fill()
Dbr_fdb.c622 if (nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->addr)) in fdb_fill_info()
630 if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in fdb_fill_info()
633 if (fdb->vlan_id && nla_put(skb, NDA_VLAN, sizeof(u16), &fdb->vlan_id)) in fdb_fill_info()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dvendor.c97 if (nla_put(reply, BRCMF_NLATTR_DATA, msglen, wr_pointer) || in brcmf_cfg80211_vndr_cmds_dcmd_handler()
/linux-4.1.27/net/packet/
Ddiag.c34 return nla_put(nlskb, PACKET_DIAG_INFO, sizeof(pinfo), &pinfo); in pdiag_put_info()
95 return nla_put(nlskb, nl_type, sizeof(pdr), &pdr); in pdiag_put_ring()
/linux-4.1.27/lib/
Dnlattr.c466 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data) in nla_put() function
474 EXPORT_SYMBOL(nla_put);
/linux-4.1.27/net/netfilter/
Dnfnetlink_log.c427 if (nla_put(inst->skb, NFULA_PACKET_HDR, sizeof(pmsg), &pmsg)) in __build_packet_message()
431 nla_put(inst->skb, NFULA_PREFIX, plen, prefix)) in __build_packet_message()
517 if (nla_put(inst->skb, NFULA_HWADDR, sizeof(phw), &phw)) in __build_packet_message()
534 nla_put(inst->skb, NFULA_HWHEADER, in __build_packet_message()
545 if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) in __build_packet_message()
Dnft_compat.c272 nla_put(skb, NFTA_TARGET_INFO, XT_ALIGN(target->targetsize), info)) in nft_target_dump()
453 nla_put(skb, NFTA_MATCH_INFO, XT_ALIGN(match->matchsize), info)) in nft_match_dump()
Dnfnetlink_queue_core.c463 if (nla_put(skb, NFQA_HWADDR, sizeof(phw), &phw)) in nfqnl_build_packet_message()
474 if (nla_put(skb, NFQA_TIMESTAMP, sizeof(ts), &ts)) in nfqnl_build_packet_message()
Dnfnetlink_cthelper.c110 nla_put(skb, CTA_HELP_INFO, help->helper->data_len, &help->data)) in nfnl_cthelper_to_nlattr()
Dnf_conntrack_proto_tcp.c1202 if (nla_put(skb, CTA_PROTOINFO_TCP_FLAGS_ORIGINAL, in tcp_to_nlattr()
1207 if (nla_put(skb, CTA_PROTOINFO_TCP_FLAGS_REPLY, in tcp_to_nlattr()
Dnf_tables_api.c1763 if (nla_put(skb, NFTA_RULE_USERDATA, udata->len + 1, in nf_tables_fill_rule_info()
3032 if (nla_put(skb, NFTA_SET_ELEM_USERDATA, in nf_tables_fill_setelem()
4421 return nla_put(skb, NFTA_DATA_VALUE, len, data->data); in nft_value_dump()
Dnf_conntrack_netlink.c356 return nla_put(skb, CTA_LABELS, len, labels->bits); in ctnetlink_dump_labels()
/linux-4.1.27/net/nfc/
Dnetlink.c85 nla_put(msg, NFC_ATTR_TARGET_NFCID1, target->nfcid1_len, in nfc_genl_send_target()
89 nla_put(msg, NFC_ATTR_TARGET_SENSB_RES, target->sensb_res_len, in nfc_genl_send_target()
93 nla_put(msg, NFC_ATTR_TARGET_SENSF_RES, target->sensf_res_len, in nfc_genl_send_target()
100 nla_put(msg, NFC_ATTR_TARGET_ISO15693_UID, in nfc_genl_send_target()
523 nla_put(msg, NFC_ATTR_SE_AID, evt_transaction->aid_len, in nfc_genl_se_transaction()
525 nla_put(msg, NFC_ATTR_SE_PARAMS, evt_transaction->params_len, in nfc_genl_se_transaction()
1431 nla_put(msg, NFC_ATTR_SE_APDU, apdu_len, apdu)) in se_io_cb()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_mac.c55 return nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether); in hash_mac4_data_list()
Dip_set_bitmap_ipmac.c190 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, elem->ether)); in bitmap_ipmac_do_list()
/linux-4.1.27/drivers/infiniband/core/
Dnetlink.c130 if (nla_put(skb, type, len, data)) in ibnl_put_attr()
/linux-4.1.27/net/wimax/
Dop-msg.c158 result = nla_put(skb, WIMAX_GNL_MSG_DATA, size, msg); in wimax_msg_alloc()
/linux-4.1.27/kernel/
Dtaskstats.c393 if (nla_put(skb, TASKSTATS_TYPE_NULL, 0, NULL) < 0) in mk_reply()
400 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
/linux-4.1.27/drivers/net/bonding/
Dbond_netlink.c50 if (nla_put(skb, IFLA_BOND_SLAVE_PERM_HWADDR, in bond_fill_slave_info()
573 if (nla_put(skb, IFLA_BOND_AD_INFO_PARTNER_MAC, in bond_fill_info()
/linux-4.1.27/net/ieee802154/
Dnl-mac.c69 nla_put(msg, IEEE802154_ATTR_HW_ADDR, IEEE802154_ADDR_LEN, in ieee802154_nl_start_confirm()
106 nla_put(msg, IEEE802154_ATTR_HW_ADDR, IEEE802154_ADDR_LEN, in ieee802154_nl_fill_iface()
940 if (nla_put(msg, IEEE802154_ATTR_LLSEC_KEY_USAGE_COMMANDS, in ieee802154_nl_fill_key()
945 if (nla_put(msg, IEEE802154_ATTR_LLSEC_KEY_BYTES, in ieee802154_nl_fill_key()
Dnl-phy.c63 nla_put(msg, IEEE802154_ATTR_CHANNEL_PAGE_LIST, in ieee802154_nl_fill_phy()
/linux-4.1.27/net/openvswitch/
Dflow_netlink.c680 nla_put(skb, OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS, in __ipv4_tun_to_nlattr()
1511 return nla_put(skb, OVS_FLOW_ATTR_UFID, flow->id.ufid_len, in ovs_nla_put_identifier()
2201 if (nla_put(skb, OVS_SAMPLE_ATTR_PROBABILITY, in sample_action_to_attr()
2246 if (nla_put(skb, OVS_ACTION_ATTR_SET, nla_len(a), ovs_key)) in set_action_to_attr()
2268 if (nla_put(skb, nla_type(ovs_key), key_len, nla_data(ovs_key))) in masked_set_action_to_set_action_attr()
2302 if (nla_put(skb, type, nla_len(a), nla_data(a))) in ovs_nla_put_actions()
Dvport.c428 return nla_put(skb, OVS_VPORT_ATTR_UPCALL_PID, in ovs_vport_get_upcall_portids()
Ddatapath.c722 nla_put(skb, OVS_FLOW_ATTR_STATS, sizeof(struct ovs_flow_stats), &stats)) in ovs_flow_cmd_fill_stats()
1415 if (nla_put(skb, OVS_DP_ATTR_STATS, sizeof(struct ovs_dp_stats), in ovs_dp_cmd_fill_info()
1419 if (nla_put(skb, OVS_DP_ATTR_MEGAFLOW_STATS, in ovs_dp_cmd_fill_info()
1790 if (nla_put(skb, OVS_VPORT_ATTR_STATS, sizeof(struct ovs_vport_stats), in ovs_vport_cmd_fill_info()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dtestmode.c93 ret = nla_put(nl_skb, ATH10K_TM_ATTR_DATA, skb->len, skb->data); in ath10k_tm_event_wmi()
/linux-4.1.27/drivers/net/wireless/
Dmac80211_hwsim.c986 if (nla_put(skb, HWSIM_ATTR_ADDR_TRANSMITTER, ETH_ALEN, hdr->addr2)) in mac80211_hwsim_tx_frame_nl()
990 if (nla_put(skb, HWSIM_ATTR_FRAME, my_skb->len, my_skb->data)) in mac80211_hwsim_tx_frame_nl()
1015 if (nla_put(skb, HWSIM_ATTR_TX_INFO, in mac80211_hwsim_tx_frame_nl()
2219 ret = nla_put(skb, HWSIM_ATTR_REG_HINT_ALPHA2, 2, in append_radio_msg()
2258 ret = nla_put(skb, HWSIM_ATTR_RADIO_NAME, in append_radio_msg()
2582 ret = nla_put(skb, HWSIM_ATTR_RADIO_NAME, strlen(hwname), in hwsim_mcast_del_radio()
/linux-4.1.27/net/l2tp/
Dl2tp_netlink.c729 nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len, in l2tp_nl_session_send()
732 nla_put(skb, L2TP_ATTR_PEER_COOKIE, session->peer_cookie_len, in l2tp_nl_session_send()
/linux-4.1.27/net/ipv4/
Dinet_diag.c168 if (nla_put(skb, INET_DIAG_MEMINFO, sizeof(minfo), &minfo) < 0) in inet_sk_diag_fill()
236 if (sz && nla_put(skb, attr, sz, &info) < 0) in inet_sk_diag_fill()
Dtcp_metrics.c885 nla_put(msg, TCP_METRICS_ATTR_FOPEN_COOKIE, in tcp_metrics_fill_info()
Ddevinet.c1501 return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); in put_cacheinfo()
Dipmr.c2192 if (nla_put(skb, RTA_MFC_STATS, sizeof(mfcs), &mfcs) < 0) in __ipmr_fill_mroute()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
Denic_main.c947 nla_put(skb, IFLA_PORT_PROFILE, PORT_PROFILE_MAX, pp->name)) || in enic_get_vf_port()
949 nla_put(skb, IFLA_PORT_INSTANCE_UUID, PORT_UUID_MAX, in enic_get_vf_port()
952 nla_put(skb, IFLA_PORT_HOST_UUID, PORT_UUID_MAX, pp->host_uuid))) in enic_get_vf_port()
/linux-4.1.27/net/decnet/
Ddn_table.c325 nla_put(skb, RTA_DST, 2, dst) < 0) in dn_fib_dump_info()
/linux-4.1.27/net/dsa/
Dslave.c252 if (nla_put(skb, NDA_LLADDR, ETH_ALEN, addr)) in dsa_slave_fill_info()
/linux-4.1.27/net/ipv6/
Daddrconf.c4192 return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); in put_cacheinfo()
4677 if (nla_put(skb, IFLA_INET6_CACHEINFO, sizeof(ci), &ci)) in inet6_fill_ifla6_attrs()
4872 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in inet6_fill_ifinfo()
4989 if (nla_put(skb, PREFIX_ADDRESS, sizeof(pinfo->prefix), &pinfo->prefix)) in inet6_fill_prefix()
4993 if (nla_put(skb, PREFIX_CACHEINFO, sizeof(ci), &ci)) in inet6_fill_prefix()
Dip6mr.c2276 if (nla_put(skb, RTA_MFC_STATS, sizeof(mfcs), &mfcs) < 0) in __ip6mr_fill_mroute()
/linux-4.1.27/drivers/net/
Dvxlan.c342 if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr)) in vxlan_fdb_info()
363 if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in vxlan_fdb_info()
2863 if (nla_put(skb, IFLA_VXLAN_PORT_RANGE, sizeof(ports), &ports)) in vxlan_fill_info()
Dmacvlan.c1435 if (nla_put(skb, IFLA_MACVLAN_MACADDR, ETH_ALEN, entry->addr)) in macvlan_fill_info_macaddr()
/linux-4.1.27/net/netlabel/
Dnetlabel_unlabeled.c1153 ret_val = nla_put(cb_arg->skb, in netlbl_unlabel_staticlist_gen()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_nl.c2897 nla_put(skb, T_ctx_my_addr, connection->my_addr_len, &connection->my_addr)) in nla_put_drbd_cfg_context()
2900 nla_put(skb, T_ctx_peer_addr, connection->peer_addr_len, &connection->peer_addr)) in nla_put_drbd_cfg_context()
2997 err = nla_put(skb, T_uuids, sizeof(si->uuids), device->ldev->md.uuid); in nla_put_status_info()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ctl.c2926 nla_put(skb, IPVS_SVC_ATTR_ADDR, sizeof(svc->addr), &svc->addr) || in ip_vs_genl_fill_service()
2936 nla_put(skb, IPVS_SVC_ATTR_FLAGS, sizeof(flags), &flags) || in ip_vs_genl_fill_service()
3121 if (nla_put(skb, IPVS_DEST_ATTR_ADDR, sizeof(dest->addr), &dest->addr) || in ip_vs_genl_fill_dest()
/linux-4.1.27/drivers/net/team/
Dteam.c2262 if (nla_put(skb, TEAM_ATTR_OPTION_DATA, ctx.data.bin_val.len, in team_nl_fill_one_option_get()
/linux-4.1.27/drivers/scsi/
Dpmcraid.c1467 result = nla_put(skb, PMCRAID_AEN_ATTR_EVENT, data_size, aen_msg); in pmcraid_notify_aen()
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c4091 if (nla_put(skb, NDA_LLADDR, ETH_ALEN, addr)) in rocker_fdb_fill_info()