Home
last modified time | relevance | path

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

/net/ipv6/
Dexthdrs.c1084 struct ipv6_sr_hdr *sr_phdr, *sr_ihdr; in ipv6_push_rthdr4() local
1087 sr_ihdr = (struct ipv6_sr_hdr *)opt; in ipv6_push_rthdr4()
1088 plen = (sr_ihdr->hdrlen + 1) << 3; in ipv6_push_rthdr4()
1091 memcpy(sr_phdr, sr_ihdr, sizeof(struct ipv6_sr_hdr)); in ipv6_push_rthdr4()
1093 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
1094 memcpy(sr_phdr->segments + 1, sr_ihdr->segments + 1, in ipv6_push_rthdr4()
1098 *addr_p = &sr_ihdr->segments[sr_ihdr->segments_left]; in ipv6_push_rthdr4()
1100 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4()
1104 tlvs_length = (sr_ihdr->hdrlen - hops * 2) << 3; in ipv6_push_rthdr4()
1106 (char *)sr_ihdr + tlvs_offset, tlvs_length); in ipv6_push_rthdr4()