Lines Matching refs:rtnh
741 struct rtattr *rta, struct rtnexthop *rtnh, in parse_one_nh() argument
763 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh()
766 rtnh->rtnh_len += RTA_SPACE(addr.bytelen+2); in parse_one_nh()
770 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { in parse_one_nh()
780 rtnh->rtnh_hops = w - 1; in parse_one_nh()
782 rtnh->rtnh_flags |= RTNH_F_ONLINK; in parse_one_nh()
790 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh()
795 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh()
805 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh()
819 struct rtnexthop *rtnh; in parse_nexthops() local
823 rtnh = RTA_DATA(rta); in parse_nexthops()
834 memset(rtnh, 0, sizeof(*rtnh)); in parse_nexthops()
835 rtnh->rtnh_len = sizeof(*rtnh); in parse_nexthops()
836 rta->rta_len += rtnh->rtnh_len; in parse_nexthops()
837 parse_one_nh(n, r, rta, rtnh, &argc, &argv); in parse_nexthops()
838 rtnh = RTNH_NEXT(rtnh); in parse_nexthops()