Searched refs:RTA_ALIGN (Results 1 – 11 of 11) sorted by relevance
/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 63 #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))
|
D | driver_wext.c | 609 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()
|
D | driver_hostap.c | 883 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
|
D | driver_madwifi.c | 1000 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in madwifi_wireless_event_rtm_newlink()
|
D | driver_atheros.c | 1492 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
|
D | driver_nl80211.c | 845 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/ |
D | rtnetlink.h | 145 #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/ |
D | libnetlink.c | 550 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/ |
D | rtnetlink.h | 145 #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/ |
D | if-linux.c | 444 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/ |
D | vlan_init.c | 620 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()
|