Lines Matching refs:hops
1084 int hops; in ipv6_push_rthdr0() local
1091 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1093 if (hops > 1) in ipv6_push_rthdr0()
1095 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr0()
1097 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr0()
1109 int plen, hops; in ipv6_push_rthdr4() local
1117 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
1119 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr4()
1124 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4()
1127 tlvs_offset = (1 + hops * 2) << 3; in ipv6_push_rthdr4()
1128 tlvs_length = (sr_ihdr->hdrlen - hops * 2) << 3; in ipv6_push_rthdr4()