• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/

Lines Matching defs:ah

77 #include <netinet6/ah.h>
103 struct ah *ah;
127 ah = (struct ah *)(((caddr_t)ip) + off);
130 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
131 if (ah == NULL) {
138 nxt = ah->ah_nxt;
146 spi = ah->ah_spi;
217 if ((ah->ah_len << 2) - sizoff != siz1) {
220 (ah->ah_len << 2) - sizoff, (u_long)siz1,
227 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) {
228 m = m_pullup(m, off + sizeof(struct ah) + sizoff + siz1);
236 ah = (struct ah *)(((caddr_t)ip) + off);
239 IP6_EXTHDR_GET(ah, struct ah *, m, off,
240 sizeof(struct ah) + sizoff + siz1);
241 if (ah == NULL) {
253 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav))
299 sumpos = (caddr_t)(ah + 1);
302 sumpos = (caddr_t)(((struct newah *)ah) + 1);
325 if (ah->ah_nxt == IPPROTO_IPIP || ah->ah_nxt == IPPROTO_IP) {
331 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) {
332 m = m_pullup(m, off + sizeof(struct ah)
342 nip = (struct ip *)((u_char *)(ah + 1) + sizoff + siz1);
350 else if (ah->ah_nxt == IPPROTO_IPV6) {
376 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav)) {
385 stripsiz = sizeof(struct ah) + siz1;
565 struct ah *ah;
577 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah), {return IPPROTO_DONE;});
578 ah = (struct ah *)(mtod(m, caddr_t) + off);
580 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
581 if (ah == NULL) {
588 nxt = ah->ah_nxt;
591 spi = ah->ah_spi;
652 if ((ah->ah_len << 2) - sizoff != siz1) {
655 (ah->ah_len << 2) - sizoff, (u_long)siz1,
661 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1,
664 IP6_EXTHDR_GET(ah, struct ah *, m, off,
665 sizeof(struct ah) + sizoff + siz1);
666 if (ah == NULL) {
679 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav))
715 sumpos = (caddr_t)(ah + 1);
718 sumpos = (caddr_t)(((struct newah *)ah) + 1);
741 if (ah->ah_nxt == IPPROTO_IPV6) {
747 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1
751 nip6 = (struct ip6_hdr *)((u_char *)(ah + 1) + sizoff + siz1);
757 } else if (ah->ah_nxt == IPPROTO_IPIP) {
760 } else if (ah->ah_nxt == IPPROTO_IP) {
785 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav)) {
794 stripsiz = sizeof(struct ah) + siz1;
944 struct newah ah;
976 if (m->m_pkthdr.len < off + sizeof(ah))
979 if (m->m_len < off + sizeof(ah)) {
984 m_copydata(m, off, sizeof(ah), (caddr_t)&ah);
985 ahp = &ah;