Home
last modified time | relevance | path

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

/systemd-251/src/basic/linux/
Drtnetlink.h210 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) macro
214 #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))
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c494 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()
/systemd-251/src/network/
Dnetworkd-route.c1062 new_rta = realloc(*rta, RTA_ALIGN((*rta)->rta_len) + RTA_SPACE(sizeof(struct rtnexthop))); in append_nexthop_one()