Lines Matching refs:ah
124 struct ah *ah; in ah4_input() local
150 ah = (struct ah *)(void *)(((caddr_t)ip) + off); in ah4_input()
151 nxt = ah->ah_nxt; in ah4_input()
159 spi = ah->ah_spi; in ah4_input()
231 if ((ah->ah_len << 2) - sizoff != siz1) { in ah4_input()
234 (ah->ah_len << 2) - sizoff, (u_int32_t)siz1, in ah4_input()
240 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) { in ah4_input()
241 VERIFY((off + sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah4_input()
242 m = m_pullup(m, (int)(off + sizeof(struct ah) + sizoff + siz1)); in ah4_input()
252 ah = (struct ah *)(void *)(((caddr_t)ip) + off); in ah4_input()
260 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input()
314 sumpos = (caddr_t)(ah + 1); in ah4_input()
317 sumpos = (caddr_t)(((struct newah *)ah) + 1); in ah4_input()
349 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input()
358 stripsiz = sizeof(struct ah) + siz1; in ah4_input()
591 struct ah *ah = NULL; in ah6_input() local
602 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah), {return IPPROTO_DONE;}); in ah6_input()
603 ah = (struct ah *)(void *)(mtod(m, caddr_t) + off); in ah6_input()
608 nxt = ah->ah_nxt; in ah6_input()
611 spi = ah->ah_spi; in ah6_input()
673 if ((ah->ah_len << 2) - sizoff != siz1) { in ah6_input()
676 (ah->ah_len << 2) - sizoff, (u_int32_t)siz1, in ah6_input()
681 VERIFY((sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah6_input()
682 IP6_EXTHDR_CHECK(m, off, (int)(sizeof(struct ah) + sizoff + siz1), in ah6_input()
685 ah = (struct ah *)(void *)(mtod(m, caddr_t) + off); in ah6_input()
692 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input()
728 sumpos = (caddr_t)(ah + 1); in ah6_input()
731 sumpos = (caddr_t)(((struct newah *)ah) + 1); in ah6_input()
763 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input()
772 stripsiz = sizeof(struct ah) + siz1; in ah6_input()
960 struct newah ah; in ah6_ctlinput() local
994 if (m->m_pkthdr.len < off + sizeof(ah)) { in ah6_ctlinput()
998 if (m->m_len < off + sizeof(ah)) { in ah6_ctlinput()
1003 m_copydata(m, off, sizeof(ah), (caddr_t)&ah); in ah6_ctlinput()
1004 ahp = &ah; in ah6_ctlinput()