Home
last modified time | relevance | path

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

/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c568 if (NLMSG_ALIGN(rtnh->rtnh_len) > size) in rtattr_read_nexthop()
571 if (rtnh->rtnh_len < sizeof(struct rtnexthop)) in rtattr_read_nexthop()
583 if (rtnh->rtnh_len > sizeof(struct rtnexthop)) { in rtattr_read_nexthop()
584 size_t len = rtnh->rtnh_len - sizeof(struct rtnexthop); in rtattr_read_nexthop()
623 size -= NLMSG_ALIGN(rtnh->rtnh_len); in rtattr_read_nexthop()
/systemd-251/src/basic/linux/
Drtnetlink.h401 unsigned short rtnh_len; member
424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
425 ((int)(rtnh)->rtnh_len) <= (len))
426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
/systemd-251/src/network/
Dnetworkd-route.c1069 .rtnh_len = sizeof(*rtnh), 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()