• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/netinet6/

Lines Matching defs:ah

107 #include <netinet6/ah.h>
132 struct ah *ah;
158 ah = (struct ah *)(void *)(((caddr_t)ip) + off);
159 nxt = ah->ah_nxt;
167 spi = ah->ah_spi;
239 if ((ah->ah_len << 2) - sizoff != siz1) {
242 (ah->ah_len << 2) - sizoff, (u_int32_t)siz1,
248 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) {
249 m = m_pullup(m, off + sizeof(struct ah) + sizoff + siz1);
259 ah = (struct ah *)(void *)(((caddr_t)ip) + off);
267 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav))
313 sumpos = (caddr_t)(ah + 1);
316 sumpos = (caddr_t)(((struct newah *)ah) + 1);
339 if (ah->ah_nxt == IPPROTO_IPIP || ah->ah_nxt == IPPROTO_IP) {
345 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) {
346 m = m_pullup(m, off + sizeof(struct ah)
356 nip = (struct ip *)((u_char *)(ah + 1) + sizoff + siz1);
364 else if (ah->ah_nxt == IPPROTO_IPV6) {
390 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav)) {
399 stripsiz = sizeof(struct ah) + siz1;
601 struct ah *ah;
612 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah), {return IPPROTO_DONE;});
613 ah = (struct ah *)(void *)(mtod(m, caddr_t) + off);
618 nxt = ah->ah_nxt;
621 spi = ah->ah_spi;
683 if ((ah->ah_len << 2) - sizoff != siz1) {
686 (ah->ah_len << 2) - sizoff, (u_int32_t)siz1,
691 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1,
699 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav))
735 sumpos = (caddr_t)(ah + 1);
738 sumpos = (caddr_t)(((struct newah *)ah) + 1);
761 if (ah->ah_nxt == IPPROTO_IPV6) {
767 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1
771 nip6 = (struct ip6_hdr *)((u_char *)(ah + 1) + sizoff + siz1);
777 } else if (ah->ah_nxt == IPPROTO_IPIP) {
780 } else if (ah->ah_nxt == IPPROTO_IP) {
805 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav)) {
814 stripsiz = sizeof(struct ah) + siz1;
981 struct newah ah;
1013 if (m->m_pkthdr.len < off + sizeof(ah))
1016 if (m->m_len < off + sizeof(ah)) {
1021 m_copydata(m, off, sizeof(ah), (caddr_t)&ah);
1022 ahp = &ah;