Searched refs:RTA_LENGTH (Results 1 – 3 of 3) sorted by relevance
216 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro217 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))218 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))219 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
469 rta->rta_len = RTA_LENGTH(data_length); in rtattr_append_attribute_internal()588 … if (attr->rta_len != RTA_LENGTH(FAMILY_ADDRESS_SIZE(family))) in rtattr_read_nexthop()600 if (attr->rta_len < RTA_LENGTH(sizeof(uint16_t))) in rtattr_read_nexthop()608 … if (attr->rta_len != RTA_LENGTH(FAMILY_ADDRESS_SIZE(gw_family) + sizeof(gw_family))) in rtattr_read_nexthop()
1117 .rta_len = RTA_LENGTH(0), in append_nexthops()