Home
last modified time | relevance | path

Searched refs:ip_nhops (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.81.4/bsd/netinet/
H A Dip_input.c380 static int ip_nhops = 0; variable
1275 ip_nhops = 0; /* for source routed packets */ in ip_input_first_pass()
2843 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); in save_rte()
2858 if (ip_nhops == 0) { in ip_srcroute()
2870 m->m_len = ip_nhops * sizeof(struct in_addr) + in ip_srcroute()
2874 printf("ip_srcroute: nhops %d mlen %d", ip_nhops, m->m_len); in ip_srcroute()
2888 p = &ip_srcrt.route[ip_nhops - 1]; in ip_srcroute()
2912 for (int i = 0; i < (ip_nhops - 1); i++) { in ip_srcroute()
2913 q[i] = ip_srcrt.route[ip_nhops - (i + 2)]; in ip_srcroute()
2923 q[ip_nhops - 1] = ip_srcrt.dst; in ip_srcroute()
[all …]