Lines Matching refs:osrh
128 int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, int proto)
137 hdrlen = (osrh->hdrlen + 1) << 3;
179 memcpy(isrh, osrh, hdrlen);
204 struct ipv6_sr_hdr *osrh, int proto)
206 __u8 first_seg = osrh->first_segment;
210 int hdrlen = ipv6_optlen(osrh);
226 skip_srh = !sr_has_hmac(osrh);
261 hdr->daddr = osrh->segments[first_seg];
280 memcpy(isrh, osrh, hdrlen);
284 tlv_offset = sizeof(*osrh) + (first_seg + 1) * sizeof(struct in6_addr);
287 memcpy(isrh, osrh, red_tlv_offset);
291 const void *s = (const void *)osrh + tlv_offset;
321 int seg6_do_srh_inline(struct sk_buff *skb, struct ipv6_sr_hdr *osrh)
327 hdrlen = (osrh->hdrlen + 1) << 3;
348 memcpy(isrh, osrh, hdrlen);