/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))) 72 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) 104 unsigned short rta_len; member
|
D | driver_wext.c | 589 int attrlen, rta_len; in wpa_driver_wext_own_ifname() local 595 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname() 598 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname() 633 int attrlen, rta_len; in wpa_driver_wext_event_rtm_newlink() local 694 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink() 698 drv, ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink() 699 attr->rta_len - rta_len); in wpa_driver_wext_event_rtm_newlink() 702 ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink() 703 attr->rta_len - rta_len, 0); in wpa_driver_wext_event_rtm_newlink() 714 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() 210 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()
|
D | driver_madwifi.c | 987 int attrlen, rta_len; in madwifi_wireless_event_rtm_newlink() local 996 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in madwifi_wireless_event_rtm_newlink() 1000 drv, ((char *) attr) + rta_len, in madwifi_wireless_event_rtm_newlink() 1001 attr->rta_len - rta_len); in madwifi_wireless_event_rtm_newlink()
|
D | driver_hostap.c | 874 int attrlen, rta_len; in hostapd_wireless_event_rtm_newlink() local 883 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink() 887 drv, ((char *) attr) + rta_len, in hostapd_wireless_event_rtm_newlink() 888 attr->rta_len - rta_len); in hostapd_wireless_event_rtm_newlink()
|
/external/android-clat/ |
D | getaddr.c | 47 int rta_len; in getaddr_cb() local 59 rta_len = RTM_PAYLOAD(nlmsg_hdr(msg)); in getaddr_cb() 60 for (; RTA_OK(rta_p, rta_len); rta_p = RTA_NEXT(rta_p, rta_len)) { in getaddr_cb() 64 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb() 71 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 | 111 req.ext_req.rta_len = RTA_LENGTH(sizeof(__u32)); in rtnl_wilddump_request() 565 rta->rta_len = len; in addattr_l() 594 nest->rta_len = (void *)NLMSG_TAIL(n) - (void *)nest; in addattr_nest_end() 610 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end() 612 start->rta_len = (void *)NLMSG_TAIL(n) - (void *)start; in addattr_nest_compat_end() 622 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_addattr32() 626 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32() 628 subrta->rta_len = len; in rta_addattr32() 630 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; in rta_addattr32() 640 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in rta_addattr_l() [all …]
|
/external/libnl/include/linux/ |
D | rtnetlink.h | 126 unsigned short rta_len; member 135 (rta)->rta_len >= sizeof(struct rtattr) && \ 136 (rta)->rta_len <= (len)) 137 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 138 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 142 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 150 unsigned short rta_len; member 159 (rta)->rta_len >= sizeof(struct rtattr) && \ 160 (rta)->rta_len <= (len)) 161 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 162 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 166 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
/external/iproute2/include/linux/ |
D | rtnetlink.h | 138 unsigned short rta_len; member 147 (rta)->rta_len >= sizeof(struct rtattr) && \ 148 (rta)->rta_len <= (len)) 149 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 150 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 154 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
/external/iproute2/tc/ |
D | m_action.c | 233 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in parse_action() 244 tail2->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail2; in parse_action() 457 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_action_gd() 461 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_gd() 510 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_modify() 564 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_act_list_or_flush() 565 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_act_list_or_flush()
|
D | q_dsmark.c | 80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in dsmark_parse_opt() 126 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in dsmark_parse_class_opt()
|
D | q_qfq.c | 89 tail->rta_len = (void *)NLMSG_TAIL(n) - (void *)tail; in qfq_parse_class_opt()
|
D | m_ematch.c | 221 tail->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail; in parse_tree() 356 tail_list->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail_list; in parse_ematch() 357 tail->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail; in parse_ematch()
|
D | q_drr.c | 80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *)tail; in drr_parse_class_opt()
|
D | q_gred.c | 112 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in init_gred() 258 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in gred_parse_opt()
|
D | f_cgroup.c | 79 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail; in cgroup_parse_opt()
|
D | q_htb.c | 97 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in htb_parse_opt() 237 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in htb_parse_class_opt()
|
D | f_basic.c | 105 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail; in basic_parse_opt()
|
D | f_fw.c | 115 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in fw_parse_opt()
|
D | f_route.c | 124 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in route_parse_opt()
|
D | f_tcindex.c | 116 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in tcindex_parse_opt()
|
D | m_nat.c | 160 tail->rta_len = (char *)NLMSG_TAIL(n) - (char *)tail; in parse_nat()
|
/external/iproute2/ip/ |
D | link_veth.c | 57 data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data; in veth_parse_opt()
|
/external/wpa_supplicant_8/src/ap/ |
D | vlan_init.c | 618 int attrlen, nlmsg_len, rta_len; in vlan_read_ifnames() local 634 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames() 639 int n = attr->rta_len - rta_len; in vlan_read_ifnames() 647 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
|