Home
last modified time | relevance | path

Searched refs:RTA_ALIGN (Results 1 – 12 of 12) sorted by relevance

/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h63 #define RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) macro
68 ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
69 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
70 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
71 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
Ddriver_wext.c599 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname()
698 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink()
724 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_dellink()
Ddriver_hostap.c881 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
Ddriver_atheros.c1471 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
Ddriver_nl80211.c871 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_own_ifname()
/external/libnl/include/linux/
Drtnetlink.h133 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
137 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
138 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
139 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
140 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
/external/iproute2/lib/
Dlibnetlink.c656 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l()
664 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l()
719 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_addattr32()
723 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()
737 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in rta_addattr_l()
741 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()
745 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in rta_addattr_l()
834 if (RTA_PAYLOAD(rta) >= RTA_ALIGN(len) + sizeof(struct rtattr)) { in __parse_rtattr_nested_compat()
835 rta = RTA_DATA(rta) + RTA_ALIGN(len); in __parse_rtattr_nested_compat()
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h164 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
168 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
170 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
171 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
/external/iproute2/include/linux/
Drtnetlink.h164 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
168 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
170 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
171 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
/external/iproute2/include/
Dlibnetlink.h116 RTA_ALIGN((rta)->rta_len)))
/external/dhcpcd-6.8.2/
Dif-linux.c882 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in add_attr_l()
892 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in add_attr_l()
1505 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_add_attr_32()
1511 (((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_add_attr_32()
/external/wpa_supplicant_8/src/ap/
Dvlan_full.c608 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()