Lines Matching refs:ah
128 struct ip_auth_hdr *ah = ip_auth_hdr(skb); in ah_output_done() local
133 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done()
158 struct ip_auth_hdr *ah; in ah_output() local
173 ah = ip_auth_hdr(skb); in ah_output()
190 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah_output()
206 ah->nexthdr = *skb_mac_header(skb); in ah_output()
216 ah->hdrlen = (XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
218 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
220 ah->reserved = 0; in ah_output()
221 ah->spi = x->id.spi; in ah_output()
222 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in ah_output()
249 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output()
273 struct ip_auth_hdr *ah = ip_auth_hdr(skb); in ah_input_done() local
275 int ah_hlen = (ah->hdrlen + 2) << 2; in ah_input_done()
288 err = ah->nexthdr; in ah_input_done()
316 struct ip_auth_hdr *ah; in ah_input() local
324 if (!pskb_may_pull(skb, sizeof(*ah))) in ah_input()
327 ah = (struct ip_auth_hdr *)skb->data; in ah_input()
331 nexthdr = ah->nexthdr; in ah_input()
332 ah_hlen = (ah->hdrlen + 2) << 2; in ah_input()
335 if (ah_hlen != XFRM_ALIGN4(sizeof(*ah) + ahp->icv_full_len) && in ah_input()
336 ah_hlen != XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len)) in ah_input()
339 if (ah_hlen != XFRM_ALIGN8(sizeof(*ah) + ahp->icv_full_len) && in ah_input()
340 ah_hlen != XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len)) in ah_input()
359 ah = (struct ip_auth_hdr *)skb->data; in ah_input()
383 memcpy(auth_data, ah->auth_data, ahp->icv_trunc_len); in ah_input()
384 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah_input()
446 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in ah4_err() local
460 ah->spi, IPPROTO_AH, AF_INET); in ah4_err()