Home | History | Annotate | Download | only in mtrace

Lines Matching defs:hops

78 #define MAXHOPS UNREACHABLE	/* Don't need more hops than max metric */
129 u_char qno = 0; /* Max number of hops to query */
579 "Num hops received (%d) exceeds request (%d)\n",
800 int hops = buf->len;
801 struct tr_resp *r = buf->resps + hops - 1;
839 printf("%3d ", -(hops+2));
1153 int hops, nexthop, tries;
1215 case 'm': /* Max number of hops to trace */
1419 * Try a query at the requested number of hops or MAXHOPS if unspecified.
1422 hops = MAXHOPS;
1427 hops = qno;
1429 printf("Querying reverse path, maximum %d hops... ", qno);
1435 recvlen = send_recv(tdst, IGMP_MTRACE_QUERY, hops, tries, &base);
1440 * from one until there is no response for four hops. The extra
1441 * hops allow getting past an mtrace-capable mrouter that can't
1469 for (hops = 1, nexthop = 1; hops <= MAXHOPS; ++hops) {
1470 printf("%3d ", -hops);
1482 if (hops == 2 && gwy == 0 &&
1483 (recvlen = send_recv(lastout, IGMP_MTRACE_QUERY, hops, 1, &base)))
1485 else recvlen = send_recv(tdst, IGMP_MTRACE_QUERY, hops, nqueries, &base);
1488 if (hops == 1) break;
1489 if (hops == nexthop) {
1495 } else if (hops < nexthop + 3) {
1504 if (base.len == hops &&
1505 (hops == 1 || (base.resps+nexthop-2)->tr_outaddr == lastout)) {
1506 if (hops == nexthop) {
1507 print_trace(-hops, &base);
1513 if (base.len < hops) {
1531 hops = base.len;
1540 hops = base.len;
1547 if (base.len < hops ||
1552 if (hops != nexthop) {
1561 printf("%3d ", -(hops + 1));
1568 nexthop = hops + 1;