Home
last modified time | relevance | path

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

/openbmc/linux/net/ipv6/
H A Dexthdrs.c1108 struct ipv6_sr_hdr *sr_phdr, *sr_ihdr; in ipv6_push_rthdr4() local
1111 sr_ihdr = (struct ipv6_sr_hdr *)opt; in ipv6_push_rthdr4()
1112 plen = (sr_ihdr->hdrlen + 1) << 3; in ipv6_push_rthdr4()
1115 memcpy(sr_phdr, sr_ihdr, sizeof(struct ipv6_sr_hdr)); in ipv6_push_rthdr4()
1117 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
1118 memcpy(sr_phdr->segments + 1, sr_ihdr->segments + 1, in ipv6_push_rthdr4()
1122 *addr_p = &sr_ihdr->segments[sr_ihdr->segments_left]; in ipv6_push_rthdr4()
1124 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4()
1128 tlvs_length = (sr_ihdr->hdrlen - hops * 2) << 3; in ipv6_push_rthdr4()
1130 (char *)sr_ihdr + tlvs_offset, tlvs_length); in ipv6_push_rthdr4()