/third_party/libnl/lib/ |
D | attr.c | 132 int nla_len(const struct nlattr *nla) in nla_len() function 134 return nla->nla_len - NLA_HDRLEN; in nla_len() 152 nla->nla_len >= sizeof(*nla) && in nla_ok() 153 nla->nla_len <= remaining; in nla_ok() 174 int totlen = NLA_ALIGN(nla->nla_len); in nla_next() 209 if (nla_len(nla) < minlen) in validate_nla() 212 if (pt->maxlen && nla_len(nla) > pt->maxlen) in validate_nla() 217 if (data[nla_len(nla) - 1] != '\0') in validate_nla() 361 minlen = min_t(int, count, nla_len(src)); in nla_memcpy() 381 size_t srclen = nla_len(nla); in nla_strlcpy() [all …]
|
D | data.c | 87 return nl_data_alloc(nla_data(nla), nla_len(nla)); in nl_data_alloc_attr()
|
D | msg.c | 871 int len = nla_len(attr); in dump_attr() 883 int padlen, alen = nla_len(nla); in dump_attrs()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_getdelays.c | 124 __u8 genl_cmd, __u16 nla_type, void *nla_data, int nla_len) in send_cmd() argument 142 na->nla_len = nla_len + 1 + NLA_HDRLEN; in send_cmd() 143 memcpy(NLA_DATA(na), nla_data, nla_len); in send_cmd() 144 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd() 188 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len)); in get_family_id() 438 len += NLA_ALIGN(na->nla_len); in main() 443 aggr_len = NLA_PAYLOAD(na->nla_len); in main() 483 na->nla_len) < 0) { in main() 497 len2 += NLA_ALIGN(na->nla_len); in main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_nl80211_capa.c | 260 num = nla_len(tb) / sizeof(u32); in wiphy_info_cipher_suites() 358 len = nla_len(tb); in wiphy_info_ext_feature_flags() 570 nla_len(attr), NULL); in wiphy_info_extended_capab() 583 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA]); in wiphy_info_extended_capab() 593 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA_MASK]); in wiphy_info_extended_capab() 706 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler() 710 nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler() 712 nla_len(tb[NL80211_ATTR_EXT_CAPA]); in wiphy_info_handler() 718 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA_MASK])); in wiphy_info_handler() 722 nla_len(tb[NL80211_ATTR_EXT_CAPA_MASK])); in wiphy_info_handler() [all …]
|
D | driver_nl80211_event.c | 268 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_assoc() 354 event.assoc_reject.resp_ies_len = nla_len(resp_ie); in mlme_event_connect() 391 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_connect() 409 event.assoc_info.resp_ies_len = nla_len(resp_ie); in mlme_event_connect() 431 event.assoc_info.key_replay_ctr_len = nla_len(key_replay_ctr); in mlme_event_connect() 435 event.assoc_info.ptk_kck_len = nla_len(ptk_kck); in mlme_event_connect() 439 event.assoc_info.ptk_kek_len = nla_len(ptk_kek); in mlme_event_connect() 459 event.assoc_info.fils_pmk_len = nla_len(fils_pmk); in mlme_event_connect() 614 if (nla_len(addr) != ETH_ALEN) in mlme_timeout_event() 903 len = nla_len(frame); in mlme_event() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_nl80211_capa.c | 268 num = nla_len(tb) / sizeof(u32); in get_akm_suites_info() 353 nla_data(nl_akms), nla_len(nl_akms), NULL); in get_iface_akm_suites_info() 441 num = nla_len(tb) / sizeof(u32); in wiphy_info_cipher_suites() 539 len = nla_len(tb); in wiphy_info_ext_feature_flags() 796 nla_len(attr), NULL); in wiphy_info_extended_capab() 809 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA]); in wiphy_info_extended_capab() 819 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA_MASK]); in wiphy_info_extended_capab() 934 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler() 938 nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler() 940 nla_len(tb[NL80211_ATTR_EXT_CAPA]); in wiphy_info_handler() [all …]
|
D | driver_nl80211_event.c | 304 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_assoc() 347 nla_len(tb[NL80211_ATTR_VENDOR_DATA]), NULL); in qca_drv_connect_fail_reason_code_handler() 478 event.assoc_reject.resp_ies_len = nla_len(resp_ie); in mlme_event_connect() 526 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_connect() 544 event.assoc_info.resp_ies_len = nla_len(resp_ie); in mlme_event_connect() 566 event.assoc_info.key_replay_ctr_len = nla_len(key_replay_ctr); in mlme_event_connect() 570 event.assoc_info.ptk_kck_len = nla_len(ptk_kck); in mlme_event_connect() 574 event.assoc_info.ptk_kek_len = nla_len(ptk_kek); in mlme_event_connect() 594 event.assoc_info.fils_pmk_len = nla_len(fils_pmk); in mlme_event_connect() 764 if (nla_len(addr) != ETH_ALEN) in mlme_timeout_event() [all …]
|
/third_party/libnl/lib/route/link/ |
D | inet6.c | 156 if (tb[IFLA_INET6_CONF] && nla_len(tb[IFLA_INET6_CONF]) % 4) in inet6_parse_protinfo() 158 if (tb[IFLA_INET6_STATS] && nla_len(tb[IFLA_INET6_STATS]) % 8) in inet6_parse_protinfo() 160 if (tb[IFLA_INET6_ICMP6STATS] && nla_len(tb[IFLA_INET6_ICMP6STATS]) % 8) in inet6_parse_protinfo() 189 int len = nla_len(tb[IFLA_INET6_STATS]) / 8; in inet6_parse_protinfo() 193 (tb[IFLA_INET6_ICMP6STATS] && nla_len(tb[IFLA_INET6_ICMP6STATS]) < 6)) { in inet6_parse_protinfo() 213 int len = min_t(int, __ICMP6_MIB_MAX, nla_len(tb[IFLA_INET6_ICMP6STATS]) / 8); in inet6_parse_protinfo()
|
D | inet.c | 108 if (tb[IFLA_INET_CONF] && nla_len(tb[IFLA_INET_CONF]) % 4) in inet_parse_af() 113 int len = min_t(int, IPV4_DEVCONF_MAX, nla_len(tb[IFLA_INET_CONF]) / 4); in inet_parse_af()
|
D | vlan.c | 129 if (nla_len(nla) < sizeof(*map)) in vlan_parse() 160 if (nla_len(nla) < sizeof(*map)) in vlan_parse()
|
D | veth.c | 68 nla_len(nla_peer) - sizeof(struct ifinfomsg), in veth_parse()
|
D | macvlan.c | 122 len = nla_len(tb[IFLA_MACVLAN_MACADDR_DATA]); in macvlan_parse() 132 nla_len(nla) < ETH_ALEN) in macvlan_parse()
|
D | bridge.c | 139 if (nla_len(attr) < 1) in bridge_parse_protinfo() 201 if (nla_len(attr) != sizeof(struct bridge_vlan_info)) in bridge_parse_af_full()
|
/third_party/libnl/lib/netfilter/ |
D | queue_msg.c | 125 nla_len(attr)); in nfnlmsg_queue_msg_parse() 269 nla.nla_len = payload_len + sizeof(nla); in nfnl_queue_msg_send_verdict_payload() 270 nlmsg_hdr(nlmsg)->nlmsg_len += nla.nla_len; in nfnl_queue_msg_send_verdict_payload()
|
D | log_msg.c | 123 err = nfnl_log_msg_set_payload(msg, nla_data(attr), nla_len(attr)); in nfnlmsg_log_msg_parse()
|
/third_party/libnl/include/netlink/ |
D | attr.h | 88 extern int nla_len(const struct nlattr *); 331 for (pos = (struct nlattr *) nla_data(nla), rem = nla_len(nla); \
|
D | netlink-kernel.h | 241 __u16 nla_len;
|
/third_party/libnl/lib/route/cls/ |
D | ematch.c | 434 if (thdr->nmatches > (nla_len(tb[TCA_EMATCH_TREE_LIST]) / in rtnl_ematch_parse_attr() 454 nmatches+1, nla_len(a)); in rtnl_ematch_parse_attr() 456 if (nla_len(a) < sizeof(*hdr)) { in rtnl_ematch_parse_attr() 469 len = nla_len(a) - NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse_attr()
|
/third_party/libnl/lib/route/ |
D | act.c | 406 NLMSG_ALIGN(nla_len(tb)), NULL); in rtnl_act_parse() 423 nla_len(nla[i]), NULL); in rtnl_act_parse()
|
D | route_obj.c | 987 int alen = nla_len(nla) - offsetof(struct rtvia, rtvia_addr); in rtnl_route_parse_via() 1027 size_t tlen = nla_len(attr); in parse_multipath() 1213 if (mtb[i] && nla_len(mtb[i]) >= sizeof(uint32_t)) { in rtnl_route_parse() 1275 int alen = nla_len(tb[RTA_VIA]) - offsetof(struct rtvia, rtvia_addr); in rtnl_route_parse()
|
/third_party/libnl/lib/route/cls/ematch/ |
D | meta.c | 138 vlen = nla_len(tb[TCA_EM_META_LVALUE]); in meta_parse() 152 vlen = nla_len(tb[TCA_EM_META_RVALUE]); in meta_parse()
|
/third_party/libnl/include/linux-private/linux/ |
D | netlink.h | 207 __u16 nla_len; member
|
/third_party/libnl/lib/route/qdisc/ |
D | netem.c | 332 old_len = head->nla_len; in netem_msg_fill_raw() 333 head->nla_len = (char *)tail - (char *)head; in netem_msg_fill_raw() 334 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_msg_fill_raw()
|
/third_party/libnl/ |
D | libnl-3.sym | 258 nla_len;
|