Home
last modified time | relevance | path

Searched refs:RTA_ALIGN (Results 1 – 11 of 11) 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))
Ddriver_wext.c609 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname()
708 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink()
734 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_dellink()
Ddriver_hostap.c883 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
Ddriver_madwifi.c1000 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in madwifi_wireless_event_rtm_newlink()
Ddriver_atheros.c1492 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
Ddriver_nl80211.c845 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_own_ifname()
976 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_event_rtm_newlink()
1018 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_event_rtm_dellink()
/external/kernel-headers/original/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))
638 ({ RTA_APPEND(skb, RTA_ALIGN(attrlen), data); \
639 memset(skb_tail_pointer(skb) - (RTA_ALIGN(attrlen) - attrlen), 0, \
640 RTA_ALIGN(attrlen) - attrlen); })
729 rta = (struct rtattr*)skb_put(skb, RTA_ALIGN(size)); in __rta_reserve()
732 memset(RTA_DATA(rta) + attrlen, 0, RTA_ALIGN(size) - size); in __rta_reserve()
/external/iproute2/lib/
Dlibnetlink.c550 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l()
558 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l()
613 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_addattr32()
617 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()
631 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in rta_addattr_l()
635 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()
639 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in rta_addattr_l()
676 if (RTA_PAYLOAD(rta) >= RTA_ALIGN(len) + sizeof(struct rtattr)) { in __parse_rtattr_nested_compat()
677 rta = RTA_DATA(rta) + RTA_ALIGN(len); in __parse_rtattr_nested_compat()
/external/iproute2/include/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/dhcpcd/
Dif-linux.c444 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in add_attr_l()
453 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in add_attr_l()
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c620 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()