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

/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/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 Ddriver_hostap.c874 int attrlen, rta_len; local
883 rta_len = RTA_ALIGN(sizeof(struct rtattr));
887 drv, ((char *) attr) + rta_len,
888 attr->rta_len - rta_len);
H A Ddriver_madwifi.c987 int attrlen, rta_len; local
996 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1000 drv, ((char *) attr) + rta_len,
1001 attr->rta_len - rta_len);
H A Ddriver_atheros.c1560 int attrlen, rta_len; local
1569 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1573 drv, ((char *) attr) + rta_len,
1574 attr->rta_len - rta_len);
H A Ddriver_wext.c589 int attrlen, rta_len; local
595 rta_len = RTA_ALIGN(sizeof(struct rtattr));
598 if (os_strcmp(((char *) attr) + rta_len, drv->ifname)
633 int attrlen, rta_len; local
694 rta_len = RTA_ALIGN(sizeof(struct rtattr));
698 drv, ((char *) attr) + rta_len,
699 attr->rta_len - rta_len);
702 ((char *) attr) + rta_len,
703 attr->rta_len
714 int attrlen, rta_len; local
[all...]
H A Ddriver_nl80211.c1162 int attrlen, rta_len; local
1168 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1171 if (os_strcmp(((char *) attr) + rta_len,
/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 Ddriver_hostap.c874 int attrlen, rta_len; local
883 rta_len = RTA_ALIGN(sizeof(struct rtattr));
887 drv, ((char *) attr) + rta_len,
888 attr->rta_len - rta_len);
H A Ddriver_madwifi.c987 int attrlen, rta_len; local
996 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1000 drv, ((char *) attr) + rta_len,
1001 attr->rta_len - rta_len);
H A Ddriver_atheros.c1560 int attrlen, rta_len; local
1569 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1573 drv, ((char *) attr) + rta_len,
1574 attr->rta_len - rta_len);
H A Ddriver_wext.c589 int attrlen, rta_len; local
595 rta_len = RTA_ALIGN(sizeof(struct rtattr));
598 if (os_strcmp(((char *) attr) + rta_len, drv->ifname)
633 int attrlen, rta_len; local
694 rta_len = RTA_ALIGN(sizeof(struct rtattr));
698 drv, ((char *) attr) + rta_len,
699 attr->rta_len - rta_len);
702 ((char *) attr) + rta_len,
703 attr->rta_len
714 int attrlen, rta_len; local
[all...]
H A Ddriver_nl80211.c1162 int attrlen, rta_len; local
1168 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1171 if (os_strcmp(((char *) attr) + rta_len,
/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 Ddriver_hostap.c874 int attrlen, rta_len; local
883 rta_len = RTA_ALIGN(sizeof(struct rtattr));
887 drv, ((char *) attr) + rta_len,
888 attr->rta_len - rta_len);
H A Ddriver_madwifi.c987 int attrlen, rta_len; local
996 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1000 drv, ((char *) attr) + rta_len,
1001 attr->rta_len - rta_len);
H A Ddriver_atheros.c1560 int attrlen, rta_len; local
1569 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1573 drv, ((char *) attr) + rta_len,
1574 attr->rta_len - rta_len);
H A Ddriver_wext.c589 int attrlen, rta_len; local
595 rta_len = RTA_ALIGN(sizeof(struct rtattr));
598 if (os_strcmp(((char *) attr) + rta_len, drv->ifname)
633 int attrlen, rta_len; local
694 rta_len = RTA_ALIGN(sizeof(struct rtattr));
698 drv, ((char *) attr) + rta_len,
699 attr->rta_len - rta_len);
702 ((char *) attr) + rta_len,
703 attr->rta_len
714 int attrlen, rta_len; local
[all...]
H A Ddriver_nl80211.c1162 int attrlen, rta_len; local
1168 rta_len = RTA_ALIGN(sizeof(struct rtattr));
1171 if (os_strcmp(((char *) attr) + rta_len,
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dvlan_init.c618 int attrlen, nlmsg_len, rta_len; local
634 rta_len = RTA_ALIGN(sizeof(struct rtattr));
639 int n = attr->rta_len - rta_len;
647 os_memcpy(ifname, ((char *) attr) + rta_len, n);
/external/wpa_supplicant_8/src/ap/
H A Dvlan_init.c618 int attrlen, nlmsg_len, rta_len; local
634 rta_len = RTA_ALIGN(sizeof(struct rtattr));
639 int n = attr->rta_len - rta_len;
647 os_memcpy(ifname, ((char *) attr) + rta_len, n);
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dvlan_init.c618 int attrlen, nlmsg_len, rta_len; local
634 rta_len = RTA_ALIGN(sizeof(struct rtattr));
639 int n = attr->rta_len - rta_len;
647 os_memcpy(ifname, ((char *) attr) + rta_len, n);
/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/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/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))

Completed in 886 milliseconds