Searched refs:RTA_ALIGN (Results 1 – 12 of 12) sorted by relevance
63 #define RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) macro68 ((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))
599 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()
881 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
1471 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
871 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_own_ifname()
133 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro137 #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))
656 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()
164 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro168 #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))
116 RTA_ALIGN((rta)->rta_len)))
882 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()
608 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()