Home
last modified time | relevance | path

Searched refs:RTA_ALIGN (Results 1 – 13 of 13) 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.c588 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname()
687 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink()
713 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_dellink()
Ddriver_hostap.c886 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
Ddriver_atheros.c1576 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
Ddriver_nl80211.c956 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_own_ifname()
/external/libnl/include/linux-private/linux/
Drtnetlink.h145 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
149 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
150 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
151 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
152 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
/external/iproute2/bridge/
Dbr_common.h2 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry))))
5 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(__u32))))
Dmdb.c52 RTA_PAYLOAD(pattr) - RTA_ALIGN(sizeof(uint32_t))); in __print_router_port_stats()
215 RTA_PAYLOAD(i) - RTA_ALIGN(sizeof(*e))); in br_print_mdb_entry()
/external/iproute2/include/uapi/linux/
Drtnetlink.h175 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
179 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
180 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
181 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
182 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
/external/iproute2/lib/
Dlibnetlink.c866 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l()
877 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l()
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()
954 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in rta_addattr_l()
960 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()
965 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in rta_addattr_l()
1060 if (RTA_PAYLOAD(rta) >= RTA_ALIGN(len) + sizeof(struct rtattr)) { in __parse_rtattr_nested_compat()
1061 rta = RTA_DATA(rta) + RTA_ALIGN(len); in __parse_rtattr_nested_compat()
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h182 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
186 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
187 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
188 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
189 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
/external/iproute2/include/
Dlibnetlink.h144 RTA_ALIGN((rta)->rta_len)))
/external/wpa_supplicant_8/src/ap/
Dvlan_full.c657 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()