Home
last modified time | relevance | path

Searched refs:nla_data (Results 1 – 25 of 187) sorted by relevance

12345678

/linux/net/openvswitch/
A Dflow_netlink.c2040 eth_key = nla_data(nla); in __ovs_nla_put_key()
2093 ipv4_key = nla_data(nla); in __ovs_nla_put_key()
2106 ipv6_key = nla_data(nla); in __ovs_nla_put_key()
2126 arp_key = nla_data(nla); in __ovs_nla_put_key()
2143 mpls_key = nla_data(nla); in __ovs_nla_put_key()
2158 tcp_key = nla_data(nla); in __ovs_nla_put_key()
2694 ovs_tun = nla_data(a); in validate_and_copy_set_tun()
2902 memcpy(nla_data(at), nla_data(ovs_key), key_len); /* Key. */ in validate_set()
3127 vlan = nla_data(a); in __ovs_nla_copy_actions()
3457 cpl_arg = nla_data(attr); in check_pkt_len_action_to_attr()
[all …]
A Dactions.c970 struct nlattr *actions = nla_data(attr); in dec_ttl_exception_handler()
995 sample_arg = nla_data(attr); in sample()
996 arg = nla_data(sample_arg); in sample()
1025 clone_arg = nla_data(attr); in clone()
1111 err = set_tcp(skb, flow_key, nla_data(a), in execute_masked_set_action()
1116 err = set_udp(skb, flow_key, nla_data(a), in execute_masked_set_action()
1175 cpl_arg = nla_data(attr); in execute_check_pkt_len()
1176 arg = nla_data(cpl_arg); in execute_check_pkt_len()
1319 err = push_vlan(skb, key, nla_data(a)); in do_execute_actions()
1367 nla_data(a)); in do_execute_actions()
[all …]
/linux/include/net/
A Dnetlink.h1554 return *(u32 *) nla_data(nla); in nla_get_u32()
1563 return *(__be32 *) nla_data(nla); in nla_get_be32()
1572 return *(__le32 *) nla_data(nla); in nla_get_le32()
1581 return *(u16 *) nla_data(nla); in nla_get_u16()
1590 return *(__be16 *) nla_data(nla); in nla_get_be16()
1599 return *(__le16 *) nla_data(nla); in nla_get_le16()
1608 return *(u8 *) nla_data(nla); in nla_get_u8()
1643 return *(__le64 *) nla_data(nla); in nla_get_le64()
1652 return *(s32 *) nla_data(nla); in nla_get_s32()
1661 return *(s16 *) nla_data(nla); in nla_get_s16()
[all …]
/linux/lib/
A Dnlattr.c64 const struct nla_bitfield32 *bf = nla_data(nla); in validate_nla_bitfield32()
442 char *buf = nla_data(nla); in validate_nla()
490 err = nla_validate_array(nla_data(nla), nla_len(nla), in validate_nla()
728 char *src = nla_data(nla); in nla_strscpy()
764 char *src = nla_data(nla), *dst; in nla_strdup()
793 memcpy(dest, nla_data(src), minlen); in nla_memcpy()
813 d = memcmp(nla_data(nla), data, size); in nla_memcmp()
827 char *buf = nla_data(nla); in nla_strcmp()
836 d = memcmp(nla_data(nla), str, len); in nla_strcmp()
994 memcpy(nla_data(nla), data, attrlen); in __nla_put()
[all …]
/linux/drivers/infiniband/core/
A Diwpm_msg.c409 dev_name = (char *)nla_data(nltb[IWPM_NLA_RREG_IBDEV_NAME]); in iwpm_register_pid_cb()
483 nla_data(nltb[IWPM_NLA_RMANAGE_ADDR]); in iwpm_add_mapping_cb()
485 nla_data(nltb[IWPM_NLA_RMANAGE_MAPPED_LOC_ADDR]); in iwpm_add_mapping_cb()
562 nla_data(nltb[IWPM_NLA_RQUERY_LOCAL_ADDR]); in iwpm_add_and_query_mapping_cb()
564 nla_data(nltb[IWPM_NLA_RQUERY_REMOTE_ADDR]); in iwpm_add_and_query_mapping_cb()
566 nla_data(nltb[IWPM_NLA_RQUERY_MAPPED_LOC_ADDR]); in iwpm_add_and_query_mapping_cb()
568 nla_data(nltb[IWPM_NLA_RQUERY_MAPPED_REM_ADDR]); in iwpm_add_and_query_mapping_cb()
638 nla_data(nltb[IWPM_NLA_RQUERY_LOCAL_ADDR]); in iwpm_remote_info_cb()
640 nla_data(nltb[IWPM_NLA_RQUERY_REMOTE_ADDR]); in iwpm_remote_info_cb()
642 nla_data(nltb[IWPM_NLA_RQUERY_MAPPED_LOC_ADDR]); in iwpm_remote_info_cb()
[all …]
/linux/drivers/net/wireguard/
A Dnetlink.c64 nla_data(attrs[WGDEVICE_A_IFNAME])); in lookup_interface()
345 nla_data(attrs[WGALLOWEDIP_A_IPADDR]), cidr, peer, in set_allowedip()
351 nla_data(attrs[WGALLOWEDIP_A_IPADDR]), cidr, peer, in set_allowedip()
367 public_key = nla_data(attrs[WGPEER_A_PUBLIC_KEY]); in set_peer()
372 preshared_key = nla_data(attrs[WGPEER_A_PRESHARED_KEY]); in set_peer()
387 nla_data(attrs[WGPEER_A_PUBLIC_KEY])); in set_peer()
398 !memcmp(nla_data(attrs[WGPEER_A_PUBLIC_KEY]), in set_peer()
437 struct sockaddr *addr = nla_data(attrs[WGPEER_A_ENDPOINT]); in set_peer()
489 memzero_explicit(nla_data(attrs[WGPEER_A_PRESHARED_KEY]), in set_peer()
547 u8 *private_key = nla_data(info->attrs[WGDEVICE_A_PRIVATE_KEY]); in wg_set_device()
[all …]
/linux/net/sched/
A Dact_skbedit.c128 priority = nla_data(tb[TCA_SKBEDIT_PRIORITY]); in tcf_skbedit_init()
133 queue_mapping = nla_data(tb[TCA_SKBEDIT_QUEUE_MAPPING]); in tcf_skbedit_init()
137 ptype = nla_data(tb[TCA_SKBEDIT_PTYPE]); in tcf_skbedit_init()
145 mark = nla_data(tb[TCA_SKBEDIT_MARK]); in tcf_skbedit_init()
150 mask = nla_data(tb[TCA_SKBEDIT_MASK]); in tcf_skbedit_init()
154 u64 *pure_flags = nla_data(tb[TCA_SKBEDIT_FLAGS]); in tcf_skbedit_init()
160 parm = nla_data(tb[TCA_SKBEDIT_PARMS]); in tcf_skbedit_init()
A Dsch_mqprio.c126 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
163 qopt = nla_data(opt); in mqprio_init()
179 priv->mode = *(u16 *)nla_data(tb[TCA_MQPRIO_MODE]); in mqprio_init()
184 priv->shaper = *(u16 *)nla_data(tb[TCA_MQPRIO_SHAPER]); in mqprio_init()
197 priv->min_rate[i] = *(u64 *)nla_data(attr); in mqprio_init()
213 priv->max_rate[i] = *(u64 *)nla_data(attr); in mqprio_init()
A Dsch_netem.c780 const __s16 *data = nla_data(attr); in get_dist_table()
808 const struct tc_netem_slot *c = nla_data(attr); in get_slot()
830 const struct tc_netem_corr *c = nla_data(attr); in get_correlation()
839 const struct tc_netem_reorder *r = nla_data(attr); in get_reorder()
847 const struct tc_netem_corrupt *r = nla_data(attr); in get_corrupt()
855 const struct tc_netem_rate *r = nla_data(attr); in get_rate()
877 const struct tc_netem_gimodel *gi = nla_data(la); in get_loss_clg()
896 const struct tc_netem_gemodel *ge = nla_data(la); in get_loss_clg()
946 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
967 qopt = nla_data(opt); in netem_change()
A Dsch_plug.c136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init()
167 msg = nla_data(opt); in plug_change()
A Dact_bpf.c109 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
130 memcpy(nla_data(nla), prog->filter->tag, nla_len(nla)); in tcf_bpf_dump_ebpf_info()
200 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
303 parm = nla_data(tb[TCA_ACT_BPF_PARMS]); in tcf_bpf_init()
A Dsch_cbq.c1146 const struct tc_cbq_wrropt *wrr = nla_data(tb[TCA_CBQ_WRROPT]); in cbq_opt_parse()
1177 r = nla_data(tb[TCA_CBQ_RATE]); in cbq_init()
1218 cbq_set_lss(&q->link, nla_data(tb[TCA_CBQ_LSSOPT])); in cbq_init()
1510 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), in cbq_change_class()
1541 cbq_set_lss(cl, nla_data(tb[TCA_CBQ_LSSOPT])); in cbq_change_class()
1545 cbq_set_wrr(cl, nla_data(tb[TCA_CBQ_WRROPT])); in cbq_change_class()
1549 cbq_set_fopt(cl, nla_data(tb[TCA_CBQ_FOPT])); in cbq_change_class()
1567 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), tb[TCA_CBQ_RTAB], in cbq_change_class()
1653 cbq_set_lss(cl, nla_data(tb[TCA_CBQ_LSSOPT])); in cbq_change_class()
1654 cbq_set_wrr(cl, nla_data(tb[TCA_CBQ_WRROPT])); in cbq_change_class()
[all …]
/linux/net/ethtool/
A Dbitset.c255 dst = nla_data(attr); in ethnl_put_bitset32()
264 dst = nla_data(attr); in ethnl_put_bitset32()
402 strncmp(nla_data(tb[ETHTOOL_A_BITSET_BIT_NAME]), name, in ethnl_parse_bit()
410 nla_data(tb[ETHTOOL_A_BITSET_BIT_NAME])); in ethnl_parse_bit()
528 if (ethnl_bitmap32_not_zero(nla_data(test_attr), nbits, attr_nbits)) { in ethnl_compact_sanity_checks()
579 nla_data(tb[ETHTOOL_A_BITSET_VALUE]), in ethnl_update_bitset32()
581 nla_data(tb[ETHTOOL_A_BITSET_MASK]), in ethnl_update_bitset32()
633 bitmap_from_arr32(val, nla_data(tb[ETHTOOL_A_BITSET_VALUE]), in ethnl_parse_bitset()
641 nla_data(tb[ETHTOOL_A_BITSET_MASK]), in ethnl_parse_bitset()
A Dnetlink.h57 memcpy(nla_data(attr), s, len); in ethnl_put_strz()
58 ((char *)nla_data(attr))[len] = '\0'; in ethnl_put_strz()
159 if (!memcmp(dst, nla_data(attr), len)) in ethnl_update_binary()
162 memcpy(dst, nla_data(attr), len); in ethnl_update_binary()
/linux/net/8021q/
A Dvlan_netlink.c51 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vlan_validate()
81 flags = nla_data(data[IFLA_VLAN_FLAGS]); in vlan_validate()
114 flags = nla_data(data[IFLA_VLAN_FLAGS]); in vlan_changelink()
121 m = nla_data(attr); in vlan_changelink()
127 m = nla_data(attr); in vlan_changelink()
/linux/net/ieee802154/
A Dnl-phy.c86 name = nla_data(info->attrs[IEEE802154_ATTR_PHY_NAME]); in ieee802154_list_phy()
177 name = nla_data(info->attrs[IEEE802154_ATTR_PHY_NAME]); in ieee802154_add_iface()
182 devname = nla_data(info->attrs[IEEE802154_ATTR_DEV_NAME]); in ieee802154_add_iface()
279 name = nla_data(info->attrs[IEEE802154_ATTR_DEV_NAME]); in ieee802154_del_iface()
300 nla_data(info->attrs[IEEE802154_ATTR_PHY_NAME]); in ieee802154_del_iface()
/linux/net/wireless/
A Dnl80211.c228 const u8 *data = nla_data(attr); in validate_beacon_head()
273 const u8 *data = nla_data(attr); in validate_ie_attr()
4897 nla_data(tb[NL80211_TXRATE_HT]), in nl80211_parse_tx_bitrate_mask()
4906 nla_data(tb[NL80211_TXRATE_VHT]), in nl80211_parse_tx_bitrate_mask()
5807 sta_flags = nla_data(nla); in parse_station_flags()
7823 setup->ie = nla_data(ieattr); in nl80211_parse_mesh_setup()
8266 nest = nla_data(nla); in parse_bss_select()
8641 nla_data(attr), in nl80211_trigger_scan()
9107 nla_data(bssid), ETH_ALEN); in nl80211_parse_sched_scan()
9165 rssi_adjust = nla_data( in nl80211_parse_sched_scan()
[all …]
/linux/net/xfrm/
A Dxfrm_user.c45 algp = nla_data(rt); in verify_one_alg()
71 algp = nla_data(rt); in verify_auth_trunc()
87 algp = nla_data(rt); in verify_aead()
101 *addrp = nla_data(rt); in verify_one_addr()
112 uctx = nla_data(rt); in verify_sec_ctx_len()
129 rs = nla_data(rt); in verify_replay()
434 up = nla_data(rp); in xfrm_replay_verify_len()
460 up = nla_data(rta); in xfrm_alloc_replay_state_esn()
881 ap = nla_data(nla); in copy_to_user_auth()
900 ap = nla_data(nla); in copy_to_user_aead()
[all …]
/linux/tools/lib/bpf/
A Dnlattr.h119 static inline struct nlattr *nla_data(struct nlattr *nla) in nla_data() function
143 memcpy(nla_data(nla), data, len); in nlattr_add()
/linux/drivers/vdpa/
A Dvdpa.c370 devname = nla_data(attrs[VDPA_ATTR_MGMTDEV_DEV_NAME]); in vdpa_mgmtdev_get_from_attr()
372 busname = nla_data(attrs[VDPA_ATTR_MGMTDEV_BUS_NAME]); in vdpa_mgmtdev_get_from_attr()
498 name = nla_data(info->attrs[VDPA_ATTR_DEV_NAME]); in vdpa_nl_cmd_dev_add_set_doit()
501 macaddr = nla_data(nl_attrs[VDPA_ATTR_DEV_NET_CFG_MACADDR]); in vdpa_nl_cmd_dev_add_set_doit()
550 name = nla_data(info->attrs[VDPA_ATTR_DEV_NAME]); in vdpa_nl_cmd_dev_del_set_doit()
631 devname = nla_data(info->attrs[VDPA_ATTR_DEV_NAME]); in vdpa_nl_cmd_dev_get_doit()
795 devname = nla_data(info->attrs[VDPA_ATTR_DEV_NAME]); in vdpa_nl_cmd_dev_config_get_doit()
/linux/net/mctp/
A Ddevice.c156 addr = nla_data(tb[IFA_LOCAL]); in mctp_rtm_newaddr()
158 addr = nla_data(tb[IFA_ADDRESS]); in mctp_rtm_newaddr()
218 addr = nla_data(tb[IFA_LOCAL]); in mctp_rtm_deladdr()
220 addr = nla_data(tb[IFA_ADDRESS]); in mctp_rtm_deladdr()
/linux/net/netfilter/ipset/
A Dip_set_core.c309 memcpy(ipaddr, nla_data(tb[IPSET_ATTR_IPADDR_IPV6]), in ip_set_get_ipaddr6()
331 return nla_data(tb); in ip_set_comment_uget()
1061 name = nla_data(attr[IPSET_ATTR_SETNAME]); in ip_set_create()
1062 typename = nla_data(attr[IPSET_ATTR_TYPENAME]); in ip_set_create()
1278 s = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_flush()
1313 set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_rename()
1323 name2 = nla_data(attr[IPSET_ATTR_SETNAME2]); in ip_set_rename()
1737 errline = nla_data(cda[IPSET_ATTR_LINENO]); in call_ad()
1775 set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_ad()
1834 set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_utest()
[all …]
/linux/net/netlabel/
A Dnetlabel_unlabeled.c776 *addr = nla_data(info->attrs[NLBL_UNLABEL_A_IPV4ADDR]); in netlbl_unlabel_addrinfo_get()
777 *mask = nla_data(info->attrs[NLBL_UNLABEL_A_IPV4MASK]); in netlbl_unlabel_addrinfo_get()
785 *addr = nla_data(info->attrs[NLBL_UNLABEL_A_IPV6ADDR]); in netlbl_unlabel_addrinfo_get()
786 *mask = nla_data(info->attrs[NLBL_UNLABEL_A_IPV6MASK]); in netlbl_unlabel_addrinfo_get()
903 dev_name = nla_data(info->attrs[NLBL_UNLABEL_A_IFACE]); in netlbl_unlabel_staticadd()
905 nla_data(info->attrs[NLBL_UNLABEL_A_SECCTX]), in netlbl_unlabel_staticadd()
954 nla_data(info->attrs[NLBL_UNLABEL_A_SECCTX]), in netlbl_unlabel_staticadddef()
1000 dev_name = nla_data(info->attrs[NLBL_UNLABEL_A_IFACE]); in netlbl_unlabel_staticremove()
A Dnetlabel_mgmt.c171 addr = nla_data(info->attrs[NLBL_MGMT_A_IPV4ADDR]); in netlbl_mgmt_add_common()
172 mask = nla_data(info->attrs[NLBL_MGMT_A_IPV4MASK]); in netlbl_mgmt_add_common()
218 addr = nla_data(info->attrs[NLBL_MGMT_A_IPV6ADDR]); in netlbl_mgmt_add_common()
219 mask = nla_data(info->attrs[NLBL_MGMT_A_IPV6MASK]); in netlbl_mgmt_add_common()
463 domain = nla_data(info->attrs[NLBL_MGMT_A_DOMAIN]); in netlbl_mgmt_remove()
/linux/net/netfilter/
A Dnft_compat.c248 target_compat_from_user(target, nla_data(tb[NFTA_TARGET_INFO]), info); in nft_target_init()
321 memcpy(nla_data(nla), info, info_size); in nft_extension_dump_info()
322 memset(nla_data(nla) + info_size, 0, aligned_size - info_size); in nft_extension_dump_info()
485 match_compat_from_user(match, nla_data(tb[NFTA_MATCH_INFO]), info); in __nft_match_init()
654 name = nla_data(tb[NFTA_COMPAT_NAME]); in nfnl_compat_get_rcu()
750 mt_name = nla_data(tb[NFTA_MATCH_NAME]); in nft_match_select_ops()
829 tg_name = nla_data(tb[NFTA_TARGET_NAME]); in nft_target_select_ops()

Completed in 105 milliseconds

12345678