Lines Matching refs:ah
126 struct ah *ah; in ah4_input() local
152 ah = (struct ah *)(void *)(((caddr_t)ip) + off); in ah4_input()
153 nxt = ah->ah_nxt; in ah4_input()
161 spi = ah->ah_spi; in ah4_input()
234 if ((ah->ah_len << 2) - sizoff != siz1) { in ah4_input()
237 (ah->ah_len << 2) - sizoff, (u_int32_t)siz1, in ah4_input()
243 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) { in ah4_input()
244 VERIFY((off + sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah4_input()
245 m = m_pullup(m, (int)(off + sizeof(struct ah) + sizoff + siz1)); in ah4_input()
255 ah = (struct ah *)(void *)(((caddr_t)ip) + off); in ah4_input()
263 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input()
317 sumpos = (caddr_t)(ah + 1); in ah4_input()
320 sumpos = (caddr_t)(((struct newah *)ah) + 1); in ah4_input()
352 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input()
361 stripsiz = sizeof(struct ah) + siz1; in ah4_input()
596 struct ah *ah = NULL; in ah6_input() local
607 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah), {return IPPROTO_DONE;}); in ah6_input()
608 ah = (struct ah *)(void *)(mtod(m, caddr_t) + off); in ah6_input()
613 nxt = ah->ah_nxt; in ah6_input()
616 spi = ah->ah_spi; in ah6_input()
680 if ((ah->ah_len << 2) - sizoff != siz1) { in ah6_input()
683 (ah->ah_len << 2) - sizoff, (u_int32_t)siz1, in ah6_input()
688 VERIFY((sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah6_input()
689 IP6_EXTHDR_CHECK(m, off, (int)(sizeof(struct ah) + sizoff + siz1), in ah6_input()
692 ah = (struct ah *)(void *)(mtod(m, caddr_t) + off); in ah6_input()
699 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input()
735 sumpos = (caddr_t)(ah + 1); in ah6_input()
738 sumpos = (caddr_t)(((struct newah *)ah) + 1); in ah6_input()
770 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input()
779 stripsiz = sizeof(struct ah) + siz1; in ah6_input()
969 struct newah ah; in ah6_ctlinput() local
1003 if (m->m_pkthdr.len < off + sizeof(ah)) { in ah6_ctlinput()
1007 if (m->m_len < off + sizeof(ah)) { in ah6_ctlinput()
1012 m_copydata(m, off, sizeof(ah), (caddr_t)&ah); in ah6_ctlinput()
1013 ahp = &ah; in ah6_ctlinput()