Searched refs:rtnexthop (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-util.c | 555 int rtattr_read_nexthop(const struct rtnexthop *rtnh, size_t size, int family, OrderedSet **ret) { in rtattr_read_nexthop() 562 if (size < sizeof(struct rtnexthop)) in rtattr_read_nexthop() 565 for (; size >= sizeof(struct rtnexthop); ) { 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()
|
D | netlink-util.h | 144 int rtattr_read_nexthop(const struct rtnexthop *rtnh, size_t size, int family, OrderedSet **ret);
|
D | netlink-types-rtnl.c | 951 [RTA_MULTIPATH] = { .type = NETLINK_TYPE_BINARY, .size = sizeof(struct rtnexthop) },
|
/systemd-251/src/basic/linux/ |
D | rtnetlink.h | 400 struct rtnexthop { struct 424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 427 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
|
/systemd-251/src/network/ |
D | networkd-route.c | 1053 struct rtnexthop *rtnh; in append_nexthop_one() 1062 new_rta = realloc(*rta, RTA_ALIGN((*rta)->rta_len) + RTA_SPACE(sizeof(struct rtnexthop))); in append_nexthop_one() 1067 rtnh = (struct rtnexthop *)((uint8_t *) *rta + offset); in append_nexthop_one() 1068 *rtnh = (struct rtnexthop) { in append_nexthop_one() 1074 (*rta)->rta_len += sizeof(struct rtnexthop); in append_nexthop_one() 1080 rtnh = (struct rtnexthop *)((uint8_t *) *rta + offset); in append_nexthop_one() 1086 rtnh = (struct rtnexthop *)((uint8_t *) *rta + offset); in append_nexthop_one() 1093 (*rta)->rta_len -= sizeof(struct rtnexthop); in append_nexthop_one() 1099 struct rtnexthop *rtnh; in append_nexthops() 1126 rtnh = (struct rtnexthop *)((uint8_t *) rta + offset); in append_nexthops()
|