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

Lines Matching refs:off

112 esp4_input(m, off)
114 int off;
132 if (off % 4 != 0 || m->m_pkthdr.len % 4 != 0) {
134 "(off=%d, pktlen=%d)\n", off, m->m_pkthdr.len));
139 if (m->m_len < off + ESPMAXLEN) {
140 m = m_pullup(m, off + ESPMAXLEN);
150 esp = (struct esp *)(((u_int8_t *)ip) + off);
229 if (m->m_pkthdr.len < off + ESPMAXLEN + siz) {
243 if (esp_auth(m, off, m->m_pkthdr.len - off - siz, sav, sum)) {
257 /* strip off the authentication data */
293 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
300 if (m->m_len < off + esplen + ivlen) {
301 m = m_pullup(m, off + esplen + ivlen);
324 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
355 /* strip off the trailing pad area. */
365 if (ipsec4_tunnel_validate(m, off + esplen + ivlen, nxt, sav, &ifamily)) {
367 * strip off all the headers that precedes ESP header.
376 m_adj(m, off + esplen + ivlen);
449 * strip off ESP header and IV.
450 * even in m_pulldown case, we need to strip off ESP so that
458 ovbcopy((caddr_t)ip, (caddr_t)(((u_char *)ip) + stripsiz), off);
505 if (m->m_len < off + sizeof(struct udphdr)) {
506 m = m_pullup(m, off + sizeof(struct udphdr));
515 udp = (struct udphdr *)(((u_int8_t *)ip) + off);
529 ip_proto_dispatch_in(m, off, nxt, 0);
563 int off = *offp;
576 if (off % 4 != 0 || m->m_pkthdr.len % 4 != 0) {
578 "(off=%d, pktlen=%d)\n", off, m->m_pkthdr.len));
584 IP6_EXTHDR_CHECK(m, off, ESPMAXLEN, {return IPPROTO_DONE;});
585 esp = (struct esp *)(mtod(m, caddr_t) + off);
587 IP6_EXTHDR_GET(esp, struct esp *, m, off, ESPMAXLEN);
674 if (m->m_pkthdr.len < off + ESPMAXLEN + siz) {
688 if (esp_auth(m, off, m->m_pkthdr.len - off - siz, sav, sum)) {
702 /* strip off the authentication data */
735 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
743 IP6_EXTHDR_CHECK(m, off, esplen + ivlen, return IPPROTO_DONE); /*XXX*/
745 IP6_EXTHDR_GET(esp, struct esp *, m, off, esplen + ivlen);
767 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
796 /* strip off the trailing pad area. */
802 if (ipsec6_tunnel_validate(m, off + esplen + ivlen, nxt, sav)) {
804 * strip off all the headers that precedes ESP header.
812 m_adj(m, off + esplen + ivlen);
851 * strip off ESP header and IV.
852 * even in m_pulldown case, we need to strip off ESP so that
861 prvnxtp = ip6_get_prevhdr(m, off); /* XXX */
867 if (m->m_len >= stripsiz + off) {
868 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
879 n = m_split(m, off, M_DONTWAIT);
946 *offp = off;
980 int off;
994 off = ip6cp->ip6c_off;
1025 if (m->m_pkthdr.len < off + sizeof(esp))
1028 if (m->m_len < off + sizeof(esp)) {
1033 m_copydata(m, off, sizeof(esp), (caddr_t)&esp);
1036 espp = (struct newesp*)(mtod(m, caddr_t) + off);