/kernel/linux/linux-5.10/net/openvswitch/ |
D | flow_netlink.c | 494 if (!nz || !is_all_zero(nla_data(nla), nla_len(nla))) { in __parse_flow_nlattrs() 567 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, nla_data(a), in genev_tun_opt_from_nlattr() 650 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, nla_data(a), in erspan_tun_opt_from_nlattr() 1231 cl = nla_data(a[OVS_KEY_ATTR_CT_LABELS]); in metadata_from_nlattrs() 1239 ct = nla_data(a[OVS_KEY_ATTR_CT_ORIG_TUPLE_IPV4]); in metadata_from_nlattrs() 1251 ct = nla_data(a[OVS_KEY_ATTR_CT_ORIG_TUPLE_IPV6]); in metadata_from_nlattrs() 1301 const struct ovs_nsh_key_base *base = nla_data(a); in nsh_hdr_from_nlattr() 1314 memcpy(&nh->md1, nla_data(a), mdlen); in nsh_hdr_from_nlattr() 1321 memcpy(&nh->md2, nla_data(a), mdlen); in nsh_hdr_from_nlattr() 1349 const struct ovs_nsh_key_base *base = nla_data(a); in nsh_key_from_nlattr() [all …]
|
D | actions.c | 954 for (a = nla_data(attr), rem = nla_len(attr); rem > 0; in output_userspace() 999 struct nlattr *actions = nla_data(attr); in dec_ttl_exception_handler() 1002 return clone_execute(dp, skb, key, 0, nla_data(actions), in dec_ttl_exception_handler() 1024 sample_arg = nla_data(attr); in sample() 1025 arg = nla_data(sample_arg); in sample() 1054 clone_arg = nla_data(attr); in clone() 1065 struct ovs_action_hash *hash_act = nla_data(attr); in execute_hash() 1083 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action() 1095 #define get_mask(a, type) ((const type)nla_data(a) + 1) 1121 err = set_eth_addr(skb, flow_key, nla_data(a), in execute_masked_set_action() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | nlattr.c | 64 const struct nla_bitfield32 *bf = nla_data(nla); in validate_nla_bitfield32() 104 ret = __nla_validate_parse(nla_data(entry), nla_len(entry), in nla_validate_array() 431 if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) { in validate_nla() 442 char *buf = nla_data(nla); in validate_nla() 466 err = __nla_validate_parse(nla_data(nla), nla_len(nla), in validate_nla() 490 err = nla_validate_array(nla_data(nla), nla_len(nla), in validate_nla() 726 char *src = nla_data(nla); in nla_strlcpy() 752 char *src = nla_data(nla), *dst; in nla_strdup() 781 memcpy(dest, nla_data(src), minlen); in nla_memcpy() 801 d = memcmp(nla_data(nla), data, size); in nla_memcmp() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | netlink.h | 1137 static inline void *nla_data(const struct nlattr *nla) in nla_data() function 1189 return nla_find(nla_data(nla), nla_len(nla), attrtype); in nla_find_nested() 1212 return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy, in nla_parse_nested() 1231 return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy, in nla_parse_nested_deprecated() 1554 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() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | iwpm_msg.c | 425 dev_name = (char *)nla_data(nltb[IWPM_NLA_RREG_IBDEV_NAME]); in iwpm_register_pid_cb() 426 iwpm_name = (char *)nla_data(nltb[IWPM_NLA_RREG_ULIB_NAME]); in iwpm_register_pid_cb() 500 nla_data(nltb[IWPM_NLA_RMANAGE_ADDR]); in iwpm_add_mapping_cb() 502 nla_data(nltb[IWPM_NLA_RMANAGE_MAPPED_LOC_ADDR]); in iwpm_add_mapping_cb() 578 nla_data(nltb[IWPM_NLA_RQUERY_LOCAL_ADDR]); in iwpm_add_and_query_mapping_cb() 580 nla_data(nltb[IWPM_NLA_RQUERY_REMOTE_ADDR]); in iwpm_add_and_query_mapping_cb() 582 nla_data(nltb[IWPM_NLA_RQUERY_MAPPED_LOC_ADDR]); in iwpm_add_and_query_mapping_cb() 584 nla_data(nltb[IWPM_NLA_RQUERY_MAPPED_REM_ADDR]); in iwpm_add_and_query_mapping_cb() 659 nla_data(nltb[IWPM_NLA_RQUERY_LOCAL_ADDR]); in iwpm_remote_info_cb() 661 nla_data(nltb[IWPM_NLA_RQUERY_REMOTE_ADDR]); in iwpm_remote_info_cb() [all …]
|
/kernel/linux/linux-5.10/net/sched/ |
D | act_skbedit.c | 128 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()
|
D | sch_plug.c | 136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() 167 msg = nla_data(opt); in plug_change()
|
D | sch_netem.c | 780 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()
|
D | sch_mqprio.c | 126 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()
|
D | act_bpf.c | 111 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info() 132 memcpy(nla_data(nla), prog->filter->tag, nla_len(nla)); in tcf_bpf_dump_ebpf_info() 202 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops() 305 parm = nla_data(tb[TCA_ACT_BPF_PARMS]); in tcf_bpf_init()
|
D | act_skbmod.c | 114 daddr = nla_data(tb[TCA_SKBMOD_DMAC]); in tcf_skbmod_init() 119 saddr = nla_data(tb[TCA_SKBMOD_SMAC]); in tcf_skbmod_init() 128 parm = nla_data(tb[TCA_SKBMOD_PARMS]); in tcf_skbmod_init()
|
D | ematch.c | 174 struct tcf_ematch_hdr *em_hdr = nla_data(nla); in tcf_em_validate() 330 tree_hdr = nla_data(rt_hdr); in tcf_em_tree_validate() 333 rt_match = nla_data(rt_list); in tcf_em_tree_validate()
|
D | sch_cbq.c | 1146 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() 1511 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), in cbq_change_class() 1542 cbq_set_lss(cl, nla_data(tb[TCA_CBQ_LSSOPT])); in cbq_change_class() 1546 cbq_set_wrr(cl, nla_data(tb[TCA_CBQ_WRROPT])); in cbq_change_class() 1550 cbq_set_fopt(cl, nla_data(tb[TCA_CBQ_FOPT])); in cbq_change_class() 1568 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), tb[TCA_CBQ_RTAB], in cbq_change_class() 1655 cbq_set_lss(cl, nla_data(tb[TCA_CBQ_LSSOPT])); in cbq_change_class() 1656 cbq_set_wrr(cl, nla_data(tb[TCA_CBQ_WRROPT])); in cbq_change_class() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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() 121 m = nla_data(attr); in vlan_changelink() 127 m = nla_data(attr); in vlan_changelink()
|
/kernel/linux/linux-5.10/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() 159 if (!memcmp(dst, nla_data(attr), len)) in ethnl_update_binary() 162 memcpy(dst, nla_data(attr), len); in ethnl_update_binary()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/wimax/ |
D | op-msg.c | 181 return nla_data(nla); in wimax_msg_data_len() 202 return nla_data(nla); in wimax_msg_data() 347 msg_buf = nla_data(info->attrs[WIMAX_GNL_MSG_DATA]); in wimax_gnl_doit_msg_from_user() 357 pipe_name = kstrndup(nla_data(attr), attr_len + 1, GFP_KERNEL); in wimax_gnl_doit_msg_from_user()
|
/kernel/linux/linux-5.10/net/wireless/ |
D | nl80211.c | 208 const u8 *data = nla_data(attr); in validate_beacon_head() 253 const u8 *data = nla_data(attr); in validate_ie_attr() 1165 k->p.key = nla_data(tb[NL80211_KEY_DATA]); in nl80211_parse_key_new() 1170 k->p.seq = nla_data(tb[NL80211_KEY_SEQ]); in nl80211_parse_key_new() 1204 k->p.key = nla_data(info->attrs[NL80211_ATTR_KEY_DATA]); in nl80211_parse_key_old() 1209 k->p.seq = nla_data(info->attrs[NL80211_ATTR_KEY_SEQ]); in nl80211_parse_key_old() 3102 bssid = nla_data(info->attrs[NL80211_ATTR_MAC]); in nl80211_set_wds_peer() 3159 rdev, nla_data(info->attrs[NL80211_ATTR_WIPHY_NAME])); in nl80211_set_wiphy() 3696 nla_data(info->attrs[NL80211_ATTR_MU_MIMO_GROUP_DATA]); in nl80211_parse_mon_options() 3717 nla_data(info->attrs[NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR]); in nl80211_parse_mon_options() [all …]
|
/kernel/linux/linux-5.10/net/xfrm/ |
D | xfrm_user.c | 45 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() 303 ualg = nla_data(rta); in attach_one_algo() 327 ualg = nla_data(rta); in attach_crypt() 354 ualg = nla_data(rta); in attach_auth() 383 ualg = nla_data(rta); in attach_auth_trunc() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nft_compat.c | 240 target_compat_from_user(target, nla_data(tb[NFTA_TARGET_INFO]), info); in nft_target_init() 299 memcpy(nla_data(nla), info, info_size); in nft_extension_dump_info() 300 memset(nla_data(nla) + info_size, 0, aligned_size - info_size); in nft_extension_dump_info() 462 match_compat_from_user(match, nla_data(tb[NFTA_MATCH_INFO]), info); in __nft_match_init() 633 name = nla_data(tb[NFTA_COMPAT_NAME]); in nfnl_compat_get_rcu() 733 mt_name = nla_data(tb[NFTA_MATCH_NAME]); in nft_match_select_ops() 812 tg_name = nla_data(tb[NFTA_TARGET_NAME]); in nft_target_select_ops()
|
/kernel/linux/linux-5.10/net/netlabel/ |
D | netlabel_unlabeled.c | 778 *addr = nla_data(info->attrs[NLBL_UNLABEL_A_IPV4ADDR]); in netlbl_unlabel_addrinfo_get() 779 *mask = nla_data(info->attrs[NLBL_UNLABEL_A_IPV4MASK]); in netlbl_unlabel_addrinfo_get() 787 *addr = nla_data(info->attrs[NLBL_UNLABEL_A_IPV6ADDR]); in netlbl_unlabel_addrinfo_get() 788 *mask = nla_data(info->attrs[NLBL_UNLABEL_A_IPV6MASK]); in netlbl_unlabel_addrinfo_get() 905 dev_name = nla_data(info->attrs[NLBL_UNLABEL_A_IFACE]); in netlbl_unlabel_staticadd() 907 nla_data(info->attrs[NLBL_UNLABEL_A_SECCTX]), in netlbl_unlabel_staticadd() 956 nla_data(info->attrs[NLBL_UNLABEL_A_SECCTX]), in netlbl_unlabel_staticadddef() 1002 dev_name = nla_data(info->attrs[NLBL_UNLABEL_A_IFACE]); in netlbl_unlabel_staticremove()
|
/kernel/linux/linux-5.10/net/netfilter/ipset/ |
D | ip_set_core.c | 309 memcpy(ipaddr, nla_data(tb[IPSET_ATTR_IPADDR_IPV6]), in ip_set_get_ipaddr6() 331 return nla_data(tb); in ip_set_comment_uget() 1065 name = nla_data(attr[IPSET_ATTR_SETNAME]); in ip_set_create() 1066 typename = nla_data(attr[IPSET_ATTR_TYPENAME]); in ip_set_create() 1231 s = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), in ip_set_destroy() 1282 s = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_flush() 1319 set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); in ip_set_rename() 1329 name2 = nla_data(attr[IPSET_ATTR_SETNAME2]); in ip_set_rename() 1368 from = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), in ip_set_swap() 1373 to = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME2]), in ip_set_swap() [all …]
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_nla.c | 9 struct nlattr *head = nla_data(nla); in drbd_nla_check_mandatory()
|