Lines Matching refs:srh
84 static struct sr6_tlv_hmac *seg6_get_tlv_hmac(struct ipv6_sr_hdr *srh)
88 if (srh->hdrlen < (srh->first_segment + 1) * 2 + 5)
91 if (!sr_has_hmac(srh))
95 ((char *)srh + ((srh->hdrlen + 1) << 3) - 40);
242 struct ipv6_sr_hdr *srh;
247 srh = (struct ipv6_sr_hdr *)skb_transport_header(skb);
249 tlv = seg6_get_tlv_hmac(srh);
269 if (seg6_hmac_compute(hinfo, srh, &ipv6_hdr(skb)->saddr, hmac_output))
326 struct ipv6_sr_hdr *srh)
332 tlv = seg6_get_tlv_hmac(srh);
343 err = seg6_hmac_compute(hinfo, srh, saddr, tlv->hmac);