Lines Matching refs:rtnh
725 struct rtattr *rta, struct rtnexthop *rtnh, in parse_one_nh() argument
746 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh()
749 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen+2; in parse_one_nh()
753 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { in parse_one_nh()
762 rtnh->rtnh_hops = w - 1; in parse_one_nh()
764 rtnh->rtnh_flags |= RTNH_F_ONLINK; in parse_one_nh()
771 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh()
776 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh()
790 struct rtnexthop *rtnh; in parse_nexthops() local
794 rtnh = RTA_DATA(rta); in parse_nexthops()
805 memset(rtnh, 0, sizeof(*rtnh)); in parse_nexthops()
806 rtnh->rtnh_len = sizeof(*rtnh); in parse_nexthops()
807 rta->rta_len += rtnh->rtnh_len; in parse_nexthops()
808 parse_one_nh(n, r, rta, rtnh, &argc, &argv); in parse_nexthops()
809 rtnh = RTNH_NEXT(rtnh); in parse_nexthops()