Searched refs:rtnh_len (Results 1 – 3 of 3) sorted by relevance
568 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()
401 unsigned short rtnh_len; member424 #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)))
1069 .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()