Searched refs:RTA_ALIGN (Results 1 – 13 of 13) 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))
588 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()
886 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
1576 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
956 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_own_ifname()
145 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro149 #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))
2 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry))))5 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(__u32))))
52 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()
175 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro179 #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))
866 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()
182 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro186 #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))
144 RTA_ALIGN((rta)->rta_len)))
657 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()