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

Lines Matching refs:off

100 ah4_input(struct mbuf *m, int off)
116 if (m->m_len < off + sizeof(struct newah)) {
117 m = m_pullup(m, off + sizeof(struct newah));
127 ah = (struct ah *)(((caddr_t)ip) + off);
130 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
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,
331 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) {
332 m = m_pullup(m, off + sizeof(struct ah)
390 if (ipsec4_tunnel_validate(m, off + stripsiz, nxt, sav, &ifamily)) {
392 * strip off all the headers that precedes AH.
406 m_adj(m, off + stripsiz);
460 * strip off AH.
469 ovbcopy((caddr_t)ip, (caddr_t)(((u_char *)ip) + stripsiz), off);
475 * even in m_pulldown case, we need to strip off AH so that
478 if (m->m_len >= stripsiz + off) {
479 ovbcopy((caddr_t)ip, ((caddr_t)ip) + stripsiz, off);
490 n = m_split(m, off, M_DONTWAIT);
530 ip_proto_dispatch_in(m, off, nxt, 0);
563 int off = *offp;
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));
661 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1,
664 IP6_EXTHDR_GET(ah, struct ah *, m, off,
747 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1
799 if (ipsec6_tunnel_validate(m, off + stripsiz, nxt, sav)) {
801 * strip off all the headers that precedes AH.
810 m_adj(m, off + stripsiz);
854 * strip off AH.
861 * This is necessary because AH will be stripped off below.
863 prvnxtp = ip6_get_prevhdr(m, off); /* XXX */
872 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
878 * even in m_pulldown case, we need to strip off AH so that
881 if (m->m_len >= stripsiz + off) {
882 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
893 n = m_split(m, off, M_DONTWAIT);
915 *offp = off;
949 int off;
963 off = ip6cp->ip6c_off;
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);
987 ahp = (struct newah *)(mtod(m, caddr_t) + off);