/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 65 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \ 66 (rta)->rta_len <= (len)) 68 ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 69 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len))) 73 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) 105 unsigned short rta_len; member
|
D | driver_wext.c | 582 int attrlen, rta_len; in wpa_driver_wext_own_ifname() local 588 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname() 591 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname() 626 int attrlen, rta_len; in wpa_driver_wext_event_rtm_newlink() local 687 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink() 691 drv, ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink() 692 attr->rta_len - rta_len); in wpa_driver_wext_event_rtm_newlink() 695 ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink() 696 attr->rta_len - rta_len, 0); in wpa_driver_wext_event_rtm_newlink() 707 int attrlen, rta_len; in wpa_driver_wext_event_rtm_dellink() local [all …]
|
D | netlink.c | 200 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla() 209 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()
|
/external/android-clat/ |
D | getaddr.c | 48 int rta_len; in getaddr_cb() local 58 rta_len = RTM_PAYLOAD(nlmsg_hdr(msg)); in getaddr_cb() 59 for (; RTA_OK(rta_p, rta_len); rta_p = RTA_NEXT(rta_p, rta_len)) { in getaddr_cb() 63 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb() 70 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb()
|
/external/iproute2/lib/ |
D | libnetlink.c | 223 .ext_req.rta_len = RTA_LENGTH(sizeof(__u32)), in rtnl_wilddump_req_filter() 874 rta->rta_len = len; in addattr_l() 906 nest->rta_len = (void *)NLMSG_TAIL(n) - (void *)nest; in addattr_nest_end() 922 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end() 924 start->rta_len = (void *)NLMSG_TAIL(n) - (void *)start; in addattr_nest_compat_end() 934 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_addattr32() 940 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32() 942 subrta->rta_len = len; in rta_addattr32() 944 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; in rta_addattr32() 954 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in rta_addattr_l() [all …]
|
/external/iproute2/tc/ |
D | m_action.c | 255 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in parse_action() 265 tail2->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail2; in parse_action() 515 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_action_gd() 519 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_gd() 564 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_modify() 628 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_act_list_or_flush() 629 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_act_list_or_flush() 636 tail3->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail3; in tc_act_list_or_flush() 640 tail4->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail4; in tc_act_list_or_flush()
|
D | q_dsmark.c | 76 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in dsmark_parse_opt() 120 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in dsmark_parse_class_opt()
|
D | m_ematch.c | 220 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in parse_tree() 355 tail_list->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail_list; in parse_ematch() 356 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in parse_ematch()
|
D | q_qfq.c | 84 tail->rta_len = (void *)NLMSG_TAIL(n) - (void *)tail; in qfq_parse_class_opt()
|
D | m_ife.c | 219 tail2->rta_len = (void *)NLMSG_TAIL(n) - (void *)tail2; in parse_ife() 222 tail->rta_len = (void *)NLMSG_TAIL(n) - (void *)tail; in parse_ife()
|
D | q_drr.c | 80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *)tail; in drr_parse_class_opt()
|
D | f_cgroup.c | 79 tail->rta_len = (((void *)n)+n->nlmsg_len) - (void *)tail; in cgroup_parse_opt()
|
D | m_connmark.c | 101 tail->rta_len = (char *)NLMSG_TAIL(n) - (char *)tail; in parse_connmark()
|
D | q_htb.c | 108 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in htb_parse_opt() 260 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in htb_parse_class_opt()
|
/external/strace/ |
D | socketutils.c | 293 int rta_len = data_len - NLMSG_LENGTH(sizeof(*diag_msg)); in unix_parse_response() local 298 if (rta_len < 0) in unix_parse_response() 306 RTA_OK(attr, rta_len); in unix_parse_response() 307 attr = RTA_NEXT(attr, rta_len)) { in unix_parse_response() 633 int rta_len = data_len - NLMSG_LENGTH(sizeof(*gnlh)); in genl_parse_families_response() local 639 if (rta_len < 0) in genl_parse_families_response() 647 RTA_OK(attr, rta_len); in genl_parse_families_response() 648 attr = RTA_NEXT(attr, rta_len)) { in genl_parse_families_response()
|
/external/iproute2/include/uapi/linux/ |
D | rtnetlink.h | 168 unsigned short rta_len; member 177 (rta)->rta_len >= sizeof(struct rtattr) && \ 178 (rta)->rta_len <= (len)) 179 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 180 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 184 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
/external/libnl/include/linux-private/linux/ |
D | rtnetlink.h | 175 unsigned short rta_len; member 184 (rta)->rta_len >= sizeof(struct rtattr) && \ 185 (rta)->rta_len <= (len)) 186 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 187 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 191 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso.c | 395 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu() 400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 404 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu() 406 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 411 rta->rta_len = RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)); in set_route_mtu() 412 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 417 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu()
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 196 unsigned short rta_len; member 205 (rta)->rta_len >= sizeof(struct rtattr) && \ 206 (rta)->rta_len <= (len)) 207 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 208 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 212 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
/external/wpa_supplicant_8/src/ap/ |
D | vlan_full.c | 639 int attrlen, nlmsg_len, rta_len; in vlan_read_ifnames() local 657 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames() 660 int n = attr->rta_len - rta_len; in vlan_read_ifnames() 666 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
|
/external/ltp/testcases/kernel/crypto/ |
D | af_alg06.c | 30 .attr.rta_len = sizeof(key), in run()
|
/external/iproute2/ip/ |
D | iplink_vxcan.c | 85 data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data; in vxcan_parse_opt()
|
D | link_veth.c | 83 data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data; in veth_parse_opt()
|
D | iproute.c | 792 int len = rta->rta_len; in parse_one_nh() 795 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh() 822 rta->rta_len = RTA_LENGTH(0); in parse_nexthops() 836 rta->rta_len += rtnh->rtnh_len; in parse_nexthops() 841 if (rta->rta_len > RTA_LENGTH(0)) in parse_nexthops() 879 mxrta->rta_len = RTA_LENGTH(0); in iproute_modify() 1199 rta->rta_len = RTA_LENGTH(0); in iproute_modify() 1203 if (rta->rta_len > RTA_LENGTH(0)) in iproute_modify() 1261 if (mxrta->rta_len > RTA_LENGTH(0)) { in iproute_modify() 1860 if (!rta1 || !rta2 || rta1->rta_len != rta2->rta_len) in rtattr_cmp()
|
/external/ltp/testcases/kernel/containers/share/ |
D | ns_ifmove.c | 113 rta->rta_len = RTA_LENGTH(sizeof(int)); in main()
|