Home | History | Annotate | Download | only in ip

Lines Matching defs:nh

74 	fprintf(stderr, "INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...\n");
75 fprintf(stderr, "NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS\n");
568 nh = RTA_DATA(tb[RTA_MULTIPATH]);
574 if (len < sizeof(*nh))
576 if (nh->rtnh_len > len)
585 if (nh->rtnh_len > sizeof(*nh)) {
586 parse_rtattr(tb, RTA_MAX, RTNH_DATA(nh), nh->rtnh_len - sizeof(*nh));
608 fprintf(fp, " %s", ll_index_to_name(nh->rtnh_ifindex));
609 if (nh->rtnh_hops != 1)
610 fprintf(fp, "(ttl>%d)", nh->rtnh_hops);
612 fprintf(fp, " dev %s", ll_index_to_name(nh->rtnh_ifindex));
613 fprintf(fp, " weight %d", nh->rtnh_hops+1);
615 if (nh->rtnh_flags & RTNH_F_DEAD)
617 if (nh->rtnh_flags & RTNH_F_ONLINK)
619 if (nh->rtnh_flags & RTNH_F_PERVASIVE)
621 len -= NLMSG_ALIGN(nh->rtnh_len);
622 nh = RTNH_NEXT(nh);