Searched refs:RTA_ALIGN (Results 1 – 3 of 3) sorted by relevance
210 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro214 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \215 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))216 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))217 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
494 message_length = RTA_ALIGN(rta ? (*rta)->rta_len : 0) + RTA_SPACE(data_length); in rtattr_append_attribute()507 sub_rta = (struct rtattr *) ((uint8_t *) *rta + RTA_ALIGN((*rta)->rta_len)); in rtattr_append_attribute()
1062 new_rta = realloc(*rta, RTA_ALIGN((*rta)->rta_len) + RTA_SPACE(sizeof(struct rtnexthop))); in append_nexthop_one()