Home
last modified time | relevance | path

Searched refs:RTA_LENGTH (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/basic/linux/
Drtnetlink.h216 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro
217 #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))
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c469 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()
/systemd-251/src/network/
Dnetworkd-route.c1117 .rta_len = RTA_LENGTH(0), in append_nexthops()