/linux-6.6.21/net/openvswitch/ |
D | flow_netlink.c | 507 if (!nz || !is_all_zero(nla_data(nla), nla_len(nla))) { in __parse_flow_nlattrs() 580 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, nla_data(a), in genev_tun_opt_from_nlattr() 663 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, nla_data(a), in erspan_tun_opt_from_nlattr() 1244 cl = nla_data(a[OVS_KEY_ATTR_CT_LABELS]); in metadata_from_nlattrs() 1252 ct = nla_data(a[OVS_KEY_ATTR_CT_ORIG_TUPLE_IPV4]); in metadata_from_nlattrs() 1264 ct = nla_data(a[OVS_KEY_ATTR_CT_ORIG_TUPLE_IPV6]); in metadata_from_nlattrs() 1314 const struct ovs_nsh_key_base *base = nla_data(a); in nsh_hdr_from_nlattr() 1327 memcpy(&nh->md1, nla_data(a), mdlen); in nsh_hdr_from_nlattr() 1334 memcpy(&nh->md2, nla_data(a), mdlen); in nsh_hdr_from_nlattr() 1362 const struct ovs_nsh_key_base *base = nla_data(a); in nsh_key_from_nlattr() [all …]
|
D | actions.c | 960 for (a = nla_data(attr), rem = nla_len(attr); rem > 0; in output_userspace() 1011 struct nlattr *actions = nla_data(attr); in dec_ttl_exception_handler() 1014 return clone_execute(dp, skb, key, 0, nla_data(actions), in dec_ttl_exception_handler() 1036 sample_arg = nla_data(attr); in sample() 1037 arg = nla_data(sample_arg); in sample() 1066 clone_arg = nla_data(attr); in clone() 1077 struct ovs_action_hash *hash_act = nla_data(attr); in execute_hash() 1103 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action() 1115 #define get_mask(a, type) ((const type)nla_data(a) + 1) 1141 err = set_eth_addr(skb, flow_key, nla_data(a), in execute_masked_set_action() [all …]
|
/linux-6.6.21/include/net/ |
D | netlink.h | 1183 static inline void *nla_data(const struct nlattr *nla) in nla_data() function 1235 return nla_find(nla_data(nla), nla_len(nla), attrtype); in nla_find_nested() 1258 return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy, in nla_parse_nested() 1277 return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy, in nla_parse_nested_deprecated() 1600 return *(u32 *) nla_data(nla); in nla_get_u32() 1609 return *(__be32 *) nla_data(nla); in nla_get_be32() 1618 return *(__le32 *) nla_data(nla); in nla_get_le32() 1627 return *(u16 *) nla_data(nla); in nla_get_u16() 1636 return *(__be16 *) nla_data(nla); in nla_get_be16() 1645 return *(__le16 *) nla_data(nla); in nla_get_le16() [all …]
|
/linux-6.6.21/drivers/infiniband/core/ |
D | iwpm_msg.c | 409 dev_name = (char *)nla_data(nltb[IWPM_NLA_RREG_IBDEV_NAME]); in iwpm_register_pid_cb() 410 iwpm_name = (char *)nla_data(nltb[IWPM_NLA_RREG_ULIB_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() [all …]
|
/linux-6.6.21/lib/ |
D | nlattr.c | 69 const struct nla_bitfield32 *bf = nla_data(nla); in validate_nla_bitfield32() 109 ret = __nla_validate_parse(nla_data(entry), nla_len(entry), in nla_validate_array() 455 if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) { in validate_nla() 466 char *buf = nla_data(nla); in validate_nla() 490 err = __nla_validate_parse(nla_data(nla), nla_len(nla), in validate_nla() 514 err = nla_validate_array(nla_data(nla), nla_len(nla), in validate_nla() 753 char *src = nla_data(nla); in nla_strscpy() 789 char *src = nla_data(nla), *dst; in nla_strdup() 818 memcpy(dest, nla_data(src), minlen); in nla_memcpy() 838 d = memcmp(nla_data(nla), data, size); in nla_memcmp() [all …]
|
/linux-6.6.21/drivers/net/wireguard/ |
D | netlink.c | 64 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() 488 memzero_explicit(nla_data(attrs[WGPEER_A_PRESHARED_KEY]), in set_peer() 546 u8 *private_key = nla_data(info->attrs[WGDEVICE_A_PRIVATE_KEY]); in wg_set_device() [all …]
|
/linux-6.6.21/net/sched/ |
D | act_skbedit.c | 149 priority = nla_data(tb[TCA_SKBEDIT_PRIORITY]); in tcf_skbedit_init() 159 queue_mapping = nla_data(tb[TCA_SKBEDIT_QUEUE_MAPPING]); in tcf_skbedit_init() 163 ptype = nla_data(tb[TCA_SKBEDIT_PTYPE]); in tcf_skbedit_init() 171 mark = nla_data(tb[TCA_SKBEDIT_MARK]); in tcf_skbedit_init() 176 mask = nla_data(tb[TCA_SKBEDIT_MASK]); in tcf_skbedit_init() 180 u64 *pure_flags = nla_data(tb[TCA_SKBEDIT_FLAGS]); in tcf_skbedit_init() 192 nla_data(tb[TCA_SKBEDIT_QUEUE_MAPPING_MAX]); in tcf_skbedit_init() 205 parm = nla_data(tb[TCA_SKBEDIT_PARMS]); in tcf_skbedit_init()
|
D | sch_plug.c | 136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() 164 msg = nla_data(opt); in plug_change()
|
D | act_bpf.c | 112 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info() 133 memcpy(nla_data(nla), prog->filter->tag, nla_len(nla)); in tcf_bpf_dump_ebpf_info() 203 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops() 306 parm = nla_data(tb[TCA_ACT_BPF_PARMS]); in tcf_bpf_init()
|
D | sch_netem.c | 788 const __s16 *data = nla_data(attr); in get_dist_table() 809 const struct tc_netem_slot *c = nla_data(attr); in get_slot() 831 const struct tc_netem_corr *c = nla_data(attr); in get_correlation() 840 const struct tc_netem_reorder *r = nla_data(attr); in get_reorder() 848 const struct tc_netem_corrupt *r = nla_data(attr); in get_corrupt() 856 const struct tc_netem_rate *r = nla_data(attr); in get_rate() 878 const struct tc_netem_gimodel *gi = nla_data(la); in get_loss_clg() 897 const struct tc_netem_gemodel *ge = nla_data(la); in get_loss_clg() 948 nla_data(nla) + NLA_ALIGN(len), in parse_attr() 968 qopt = nla_data(opt); in netem_change()
|
D | act_skbmod.c | 134 daddr = nla_data(tb[TCA_SKBMOD_DMAC]); in tcf_skbmod_init() 139 saddr = nla_data(tb[TCA_SKBMOD_SMAC]); in tcf_skbmod_init() 148 parm = nla_data(tb[TCA_SKBMOD_PARMS]); in tcf_skbmod_init()
|
/linux-6.6.21/net/8021q/ |
D | vlan_netlink.c | 51 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() 123 m = nla_data(attr); in vlan_changelink() 131 m = nla_data(attr); in vlan_changelink()
|
/linux-6.6.21/net/ethtool/ |
D | bitset.c | 255 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()
|
D | netlink.h | 57 memcpy(nla_data(attr), s, len); in ethnl_put_strz() 58 ((char *)nla_data(attr))[len] = '\0'; in ethnl_put_strz() 185 if (!memcmp(dst, nla_data(attr), len)) in ethnl_update_binary() 188 memcpy(dst, nla_data(attr), len); in ethnl_update_binary()
|
/linux-6.6.21/net/ieee802154/ |
D | nl-phy.c | 86 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-6.6.21/net/wireless/ |
D | nl80211.c | 228 const u8 *data = nla_data(attr); in validate_beacon_head() 273 const u8 *data = nla_data(attr); in validate_ie_attr() 291 if (!ieee80211_he_capa_size_ok(nla_data(attr), nla_len(attr))) in validate_he_capa() 1318 k->p.key = nla_data(tb[NL80211_KEY_DATA]); in nl80211_parse_key_new() 1323 k->p.seq = nla_data(tb[NL80211_KEY_SEQ]); in nl80211_parse_key_new() 1357 k->p.key = nla_data(info->attrs[NL80211_ATTR_KEY_DATA]); in nl80211_parse_key_old() 1362 k->p.seq = nla_data(info->attrs[NL80211_ATTR_KEY_SEQ]); in nl80211_parse_key_old() 3491 rdev, nla_data(info->attrs[NL80211_ATTR_WIPHY_NAME])); in nl80211_set_wiphy() 4114 nla_data(info->attrs[NL80211_ATTR_MU_MIMO_GROUP_DATA]); in nl80211_parse_mon_options() 4135 nla_data(info->attrs[NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR]); in nl80211_parse_mon_options() [all …]
|
/linux-6.6.21/net/xfrm/ |
D | xfrm_user.c | 47 algp = nla_data(rt); in verify_one_alg() 77 algp = nla_data(rt); in verify_auth_trunc() 95 algp = nla_data(rt); in verify_aead() 111 *addrp = nla_data(rt); in verify_one_addr() 122 uctx = nla_data(rt); in verify_sec_ctx_len() 147 rs = nla_data(rt); in verify_replay() 377 ualg = nla_data(rta); in attach_one_algo() 404 ualg = nla_data(rta); in attach_crypt() 433 ualg = nla_data(rta); in attach_auth() 464 ualg = nla_data(rta); in attach_auth_trunc() [all …]
|
/linux-6.6.21/drivers/net/can/dev/ |
D | netlink.c | 71 memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt)); in can_validate() 78 struct can_ctrlmode *cm = nla_data(data[IFLA_CAN_CTRLMODE]); in can_validate() 130 memcpy(&bt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), sizeof(bt)); in can_validate() 214 memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt)); in can_changelink() 248 cm = nla_data(data[IFLA_CAN_CTRLMODE]); in can_changelink() 319 memcpy(&dbt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), in can_changelink()
|
/linux-6.6.21/tools/lib/bpf/ |
D | nlattr.h | 131 static inline struct nlattr *nla_data(struct nlattr *nla) in nla_data() function 155 memcpy(nla_data(nla), data, len); in nlattr_add()
|
/linux-6.6.21/tools/lib/thermal/ |
D | thermal_nl.c | 94 nla_data(mcgrp), nla_len(mcgrp), NULL); in nl_family_handler() 100 if (strncmp(nla_data(tb_mcgrp[CTRL_ATTR_MCAST_GRP_NAME]), in nl_family_handler()
|
/linux-6.6.21/net/mctp/ |
D | device.c | 211 addr = nla_data(tb[IFA_LOCAL]); in mctp_rtm_newaddr() 213 addr = nla_data(tb[IFA_ADDRESS]); in mctp_rtm_newaddr() 274 addr = nla_data(tb[IFA_LOCAL]); in mctp_rtm_deladdr() 276 addr = nla_data(tb[IFA_ADDRESS]); in mctp_rtm_deladdr()
|
/linux-6.6.21/net/netlabel/ |
D | netlabel_unlabeled.c | 776 *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()
|
/linux-6.6.21/net/netfilter/ipset/ |
D | ip_set_core.c | 311 memcpy(ipaddr, nla_data(tb[IPSET_ATTR_IPADDR_IPV6]), in ip_set_get_ipaddr6() 333 return nla_data(tb); in ip_set_comment_uget() 1064 name = nla_data(attr[IPSET_ATTR_SETNAME]); in ip_set_create() 1065 typename = nla_data(attr[IPSET_ATTR_TYPENAME]); in ip_set_create() 1245 s = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), in ip_set_destroy() 1301 s = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_flush() 1336 set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_rename() 1346 name2 = nla_data(attr[IPSET_ATTR_SETNAME2]); in ip_set_rename() 1383 from = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), in ip_set_swap() 1388 to = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME2]), in ip_set_swap() [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | testmode.c | 142 return mt7921_tm_set(phy->dev, nla_data(data)); in mt7921_testmode_cmd() 185 err = mt7921_tm_query(phy->dev, nla_data(data), in mt7921_testmode_dump()
|
/linux-6.6.21/net/netfilter/ |
D | nft_compat.c | 255 target_compat_from_user(target, nla_data(tb[NFTA_TARGET_INFO]), info); in nft_target_init() 328 memcpy(nla_data(nla), info, info_size); in nft_extension_dump_info() 329 memset(nla_data(nla) + info_size, 0, aligned_size - info_size); in nft_extension_dump_info() 509 match_compat_from_user(match, nla_data(tb[NFTA_MATCH_INFO]), info); in __nft_match_init() 696 name = nla_data(tb[NFTA_COMPAT_NAME]); in nfnl_compat_get_rcu() 800 mt_name = nla_data(tb[NFTA_MATCH_NAME]); in nft_match_select_ops() 880 tg_name = nla_data(tb[NFTA_TARGET_NAME]); in nft_target_select_ops()
|