Lines Matching refs:ip_nhops
384 static int ip_nhops = 0; variable
1242 ip_nhops = 0; /* for source routed packets */ in ip_input_first_pass()
1999 ip_nhops = 0; /* for source routed packets */ in ip_input()
3211 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
3226 if (ip_nhops == 0) { in ip_srcroute()
3238 m->m_len = ip_nhops * sizeof(struct in_addr) + in ip_srcroute()
3242 printf("ip_srcroute: nhops %d mlen %d", ip_nhops, m->m_len); in ip_srcroute()
3256 p = &ip_srcrt.route[ip_nhops - 1]; in ip_srcroute()
3280 for (int i = 0; i < (ip_nhops - 1); i++) { in ip_srcroute()
3281 q[i] = ip_srcrt.route[ip_nhops - (i + 2)]; in ip_srcroute()
3291 q[ip_nhops - 1] = ip_srcrt.dst; in ip_srcroute()
3294 printf(" %lx\n", (u_int32_t)ntohl(q[ip_nhops - 1].s_addr)); in ip_srcroute()