Searched refs:RTA_SPACE (Results 1 – 4 of 4) sorted by relevance
482 padding_length = (uint8_t *) rta + RTA_SPACE(data_length) - padding; in rtattr_append_attribute_internal()494 message_length = RTA_ALIGN(rta ? (*rta)->rta_len : 0) + RTA_SPACE(data_length); in rtattr_append_attribute()
188 message_length = m->hdr->nlmsg_len + RTA_SPACE(data_length); in add_rtattr()207 GET_CONTAINER(m, i)->rta_len += RTA_SPACE(data_length); in add_rtattr()
217 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) macro
1062 new_rta = realloc(*rta, RTA_ALIGN((*rta)->rta_len) + RTA_SPACE(sizeof(struct rtnexthop))); in append_nexthop_one()1081 rtnh->rtnh_len += RTA_SPACE(FAMILY_ADDRESS_SIZE(m->gateway.family)); in append_nexthop_one()1087 … rtnh->rtnh_len += RTA_SPACE(FAMILY_ADDRESS_SIZE(m->gateway.family) + sizeof(m->gateway.family)); in append_nexthop_one()