Lines Matching refs:off

130 ah4_input(struct mbuf *m, int off)
146 if (m->m_len < off + sizeof(struct newah)) {
147 m = m_pullup(m, off + sizeof(struct newah));
160 ah = (struct ah *)(void *)(((caddr_t)ip) + off);
166 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
263 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) {
264 m = m_pullup(m, off + sizeof(struct ah) + sizoff + siz1);
274 ah = (struct ah *)(void *)(((caddr_t)ip) + off);
277 IP6_EXTHDR_GET(ah, struct ah *, m, off,
369 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) {
370 m = m_pullup(m, off + sizeof(struct ah)
428 if (ipsec4_tunnel_validate(m, off + stripsiz, nxt, sav, &ifamily)) {
433 * strip off all the headers that precedes AH.
447 m_adj(m, off + stripsiz);
519 * strip off AH.
528 ovbcopy((caddr_t)ip, (caddr_t)(((u_char *)ip) + stripsiz), off);
534 * even in m_pulldown case, we need to strip off AH so that
537 if (m->m_len >= stripsiz + off) {
538 ovbcopy((caddr_t)ip, ((caddr_t)ip) + stripsiz, off);
549 n = m_split(m, off, M_DONTWAIT);
593 ip_proto_dispatch_in(m, off, nxt, 0);
625 int off = *offp;
639 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah), {return IPPROTO_DONE;});
640 ah = (struct ah *)(void *)(mtod(m, caddr_t) + off);
642 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
726 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1,
729 IP6_EXTHDR_GET(ah, struct ah *, m, off,
812 IP6_EXTHDR_CHECK(m, off, sizeof(struct ah) + sizoff + siz1
864 if (ipsec6_tunnel_validate(m, off + stripsiz, nxt, sav)) {
869 * strip off all the headers that precedes AH.
878 m_adj(m, off + stripsiz);
941 * strip off AH.
948 * This is necessary because AH will be stripped off below.
950 prvnxtp = ip6_get_prevhdr(m, off); /* XXX */
959 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
965 * even in m_pulldown case, we need to strip off AH so that
968 if (m->m_len >= stripsiz + off) {
969 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
980 n = m_split(m, off, M_DONTWAIT);
1002 *offp = off;
1036 int off;
1050 off = ip6cp->ip6c_off;
1063 if (m->m_pkthdr.len < off + sizeof(ah))
1066 if (m->m_len < off + sizeof(ah)) {
1071 m_copydata(m, off, sizeof(ah), (caddr_t)&ah);
1074 ahp = (struct newah *)(void *)(mtod(m, caddr_t) + off);