Lines Matching refs:srh
85 static struct sr6_tlv_hmac *seg6_get_tlv_hmac(struct ipv6_sr_hdr *srh)
89 if (srh->hdrlen < (srh->first_segment + 1) * 2 + 5)
92 if (!sr_has_hmac(srh))
96 ((char *)srh + ((srh->hdrlen + 1) << 3) - 40);
243 struct ipv6_sr_hdr *srh;
248 srh = (struct ipv6_sr_hdr *)skb_transport_header(skb);
250 tlv = seg6_get_tlv_hmac(srh);
270 if (seg6_hmac_compute(hinfo, srh, &ipv6_hdr(skb)->saddr, hmac_output))
327 struct ipv6_sr_hdr *srh)
333 tlv = seg6_get_tlv_hmac(srh);
344 err = seg6_hmac_compute(hinfo, srh, saddr, tlv->hmac);