Home
last modified time | relevance | path

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

/linux-3.4.99/include/net/
Dnetlink.h260 extern int nla_put(struct sk_buff *skb, int attrtype,
760 return nla_put(skb, attrtype, sizeof(u8), &value); in nla_put_u8()
771 return nla_put(skb, attrtype, sizeof(u16), &value); in nla_put_u16()
782 return nla_put(skb, attrtype, sizeof(u32), &value); in nla_put_u32()
793 return nla_put(skb, attrtype, sizeof(u64), &value); in nla_put_u64()
805 return nla_put(skb, attrtype, strlen(str) + 1, str); in nla_put_string()
815 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
828 return nla_put(skb, attrtype, sizeof(u64), &tmp); in nla_put_msecs()
833 if (unlikely(nla_put(skb, attrtype, attrlen, data) < 0)) \
998 if (nla_put(skb, attrtype, 0, NULL) < 0) in nla_nest_start()
/linux-3.4.99/net/can/
Dgw.c481 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
490 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
499 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
508 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
515 if (nla_put(skb, CGW_CS_CRC8, CGW_CS_CRC8_LEN, in cgw_put_job()
524 if (nla_put(skb, CGW_CS_XOR, CGW_CS_XOR_LEN, in cgw_put_job()
535 if (nla_put(skb, CGW_FILTER, sizeof(struct can_filter), in cgw_put_job()
/linux-3.4.99/net/netlabel/
Dnetlabel_mgmt.c300 ret_val = nla_put(skb, NLBL_MGMT_A_IPV4ADDR, in netlbl_mgmt_listentry()
306 ret_val = nla_put(skb, NLBL_MGMT_A_IPV4MASK, in netlbl_mgmt_listentry()
336 ret_val = nla_put(skb, NLBL_MGMT_A_IPV6ADDR, in netlbl_mgmt_listentry()
341 ret_val = nla_put(skb, NLBL_MGMT_A_IPV6MASK, in netlbl_mgmt_listentry()
Dnetlabel_unlabeled.c1122 ret_val = nla_put(cb_arg->skb, in netlbl_unlabel_staticlist_gen()
1130 ret_val = nla_put(cb_arg->skb, in netlbl_unlabel_staticlist_gen()
1139 ret_val = nla_put(cb_arg->skb, in netlbl_unlabel_staticlist_gen()
1146 ret_val = nla_put(cb_arg->skb, in netlbl_unlabel_staticlist_gen()
1159 ret_val = nla_put(cb_arg->skb, in netlbl_unlabel_staticlist_gen()
/linux-3.4.99/lib/
Dnlattr.c454 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data) in nla_put() function
462 EXPORT_SYMBOL(nla_put);
/linux-3.4.99/net/ipv4/
Dtcp_vegas.c302 nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info); in tcp_vegas_get_info()
Dtcp_westwood.c270 nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info); in tcp_westwood_info()
Dtcp_illinois.c323 nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info); in tcp_illinois_info()
/linux-3.4.99/kernel/
Dtaskstats.c391 if (nla_put(skb, TASKSTATS_TYPE_NULL, 0, NULL) < 0) in mk_reply()
398 if (nla_put(skb, type, sizeof(pid), &pid) < 0) in mk_reply()
/linux-3.4.99/net/wimax/
Dop-msg.c158 result = nla_put(skb, WIMAX_GNL_MSG_DATA, size, msg); in wimax_msg_alloc()
/linux-3.4.99/net/ipv6/
Daddrlabel.c483 if (nla_put(skb, IFAL_ADDRESS, 16, &p->prefix) < 0 || in ip6addrlbl_fill()
Daddrconf.c3586 return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); in put_cacheinfo()
3642 if (nla_put(skb, IFA_ADDRESS, 16, &ifa->addr) < 0 || in inet6_fill_ifaddr()
3666 if (nla_put(skb, IFA_MULTICAST, 16, &ifmca->mca_addr) < 0 || in inet6_fill_ifmcaddr()
3691 if (nla_put(skb, IFA_ANYCAST, 16, &ifaca->aca_addr) < 0 || in inet6_fill_ifacaddr()
Droute.c2511 if (nla_put(skb, RTA_GATEWAY, 16, &n->primary_key) < 0) { in rt6_fill_node()
/linux-3.4.99/net/xfrm/
Dxfrm_user.c1441 return nla_put(skb, XFRMA_TMPL, in copy_to_user_tmpl()
1476 return nla_put(skb, XFRMA_POLICY_TYPE, sizeof(upt), &upt); in copy_to_user_policy_type()
2136 return nla_put(skb, XFRMA_MIGRATE, sizeof(um), &um); in copy_to_user_migrate()
2149 return nla_put(skb, XFRMA_KMADDRESS, sizeof(uk), &uk); in copy_to_user_kmaddress()
/linux-3.4.99/net/dcb/
Ddcbnl.c342 ret = nla_put(dcbnl_skb, DCB_ATTR_PERM_HWADDR, sizeof(perm_addr), in dcbnl_getperm_hwaddr()
1263 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
/linux-3.4.99/net/openvswitch/
Ddatapath.c809 err = nla_put(skb, OVS_FLOW_ATTR_ACTIONS, sf_acts->actions_len, in ovs_flow_cmd_fill_info()
/linux-3.4.99/net/core/
Drtnetlink.c643 return nla_put(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rtnl_put_cacheinfo()
Dneighbour.c2150 if (nla_put(skb, NDA_LLADDR, neigh->dev->addr_len, haddr) < 0) { in neigh_fill_info()
/linux-3.4.99/drivers/scsi/
Dpmcraid.c1497 result = nla_put(skb, PMCRAID_AEN_ATTR_EVENT, data_size, aen_msg); in pmcraid_notify_aen()