Searched refs:rta_len (Results 1 - 25 of 72) sorted by relevance

123

/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dpriv_netlink.h65 ((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 in struct:rtattr
H A Dnetlink.c200 rta->rta_len = RTA_LENGTH(sizeof(char));
210 rta->rta_len = RTA_LENGTH(sizeof(char));
/external/wpa_supplicant_8/src/drivers/
H A Dpriv_netlink.h65 ((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 in struct:rtattr
H A Dnetlink.c200 rta->rta_len = RTA_LENGTH(sizeof(char));
210 rta->rta_len = RTA_LENGTH(sizeof(char));
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Dpriv_netlink.h65 ((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 in struct:rtattr
H A Dnetlink.c200 rta->rta_len = RTA_LENGTH(sizeof(char));
210 rta->rta_len = RTA_LENGTH(sizeof(char));
/external/android-clat/
H A Dgetaddr.c47 int rta_len; local
59 rta_len = RTM_PAYLOAD(nlmsg_hdr(msg));
60 for (; RTA_OK(rta_p, rta_len); rta_p = RTA_NEXT(rta_p, rta_len)) {
64 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
71 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
/external/iproute2/lib/
H A Dlibnetlink.c111 req.ext_req.rta_len = RTA_LENGTH(sizeof(__u32));
565 rta->rta_len = len;
594 nest->rta_len = (void *)NLMSG_TAIL(n) - (void *)nest;
610 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len);
612 start->rta_len = (void *)NLMSG_TAIL(n) - (void *)start;
622 if (RTA_ALIGN(rta->rta_len) + len > maxlen) {
626 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len));
628 subrta->rta_len = len;
630 rta->rta_len = NLMSG_ALIGN(rta->rta_len)
[all...]
/external/iproute2/ip/
H A Dlink_veth.c57 data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data;
H A Diplink_vlan.c69 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *)tail;
/external/iproute2/include/linux/
H A Drtnetlink.h138 unsigned short rta_len; member in struct:rtattr
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/libnl/include/linux/
H A Drtnetlink.h126 unsigned short rta_len; member in struct:rtattr
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/
H A Drtnetlink.h150 unsigned short rta_len; member in struct:rtattr
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/tc/
H A Dq_dsmark.c80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
126 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
H A Df_cgroup.c79 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
H A Dq_drr.c80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *)tail;
H A Dq_qfq.c89 tail->rta_len = (void *)NLMSG_TAIL(n) - (void *)tail;
H A Dm_action.c233 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
244 tail2->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail2;
457 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2;
461 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail;
510 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail;
564 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2;
565 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail;
H A Df_basic.c105 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
H A Dm_ematch.c221 tail->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail;
356 tail_list->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail_list;
357 tail->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail;
H A Df_fw.c115 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
H A Df_route.c124 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
H A Df_tcindex.c116 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
H A Dm_csum.c168 tail->rta_len = (char *)NLMSG_TAIL(n) - (char *)tail;
H A Dm_gact.c198 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;

Completed in 217 milliseconds

123