Lines Matching refs:hops
1074 int hops; in ipv6_push_rthdr0() local
1081 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1083 if (hops > 1) in ipv6_push_rthdr0()
1085 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr0()
1087 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr0()
1099 int plen, hops; in ipv6_push_rthdr4() local
1107 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
1109 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr4()
1114 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4()
1117 tlvs_offset = (1 + hops * 2) << 3; in ipv6_push_rthdr4()
1118 tlvs_length = (sr_ihdr->hdrlen - hops * 2) << 3; in ipv6_push_rthdr4()