Lines Matching refs:off

1199 ah_update_mbuf(m, off, len, algo, algos)
1201 int off;
1210 if (off + len <= m->m_len) {
1211 (algo->update)(algos, mtod(m, caddr_t) + off, len);
1216 if (off < n->m_len)
1219 off -= n->m_len;
1228 if (n->m_len - off < len)
1229 tlen = n->m_len - off;
1233 (algo->update)(algos, mtod(n, caddr_t) + off, tlen);
1236 off = 0;
1256 int off;
1271 off = 0;
1291 m_copydata(m, off, sizeof(iphdr), (caddr_t)&iphdr);
1324 m_copydata(m, off, hlen, mtod(n, caddr_t));
1412 m_copydata(m, off, sizeof(ah), (caddr_t)&ah);
1423 if (totlen > m->m_pkthdr.len - off ||
1440 m_copydata(m, off, totlen, mtod(n, caddr_t));
1447 ah_update_mbuf(m, off, totlen, algo, &algos);
1456 ah_update_mbuf(m, off, m->m_pkthdr.len - off, algo, &algos);
1457 advancewidth = m->m_pkthdr.len - off;
1461 off += advancewidth;
1462 if (off < m->m_pkthdr.len)
1500 int newoff, off;
1515 off = 0;
1521 newoff = ip6_nexthdr(m, off, proto, &nxt);
1524 else if (newoff <= off) {
1534 if (off == 0) {
1537 if (newoff - off != sizeof(struct ip6_hdr)) {
1542 m_copydata(m, off, newoff - off, (caddr_t)&ip6copy);
1556 ah_update_mbuf(m, off, m->m_pkthdr.len - off, algo,
1575 if (newoff - off > MCLBYTES) {
1580 if (n && newoff - off > MLEN) {
1591 m_copydata(m, off, newoff - off, mtod(n, caddr_t));
1592 n->m_len = newoff - off;
1598 ah_update_mbuf(m, off, newoff - off, algo, &algos);
1610 if (newoff - off > MCLBYTES) {
1615 if (n && newoff - off > MLEN) {
1626 m_copydata(m, off, newoff - off, mtod(n, caddr_t));
1627 n->m_len = newoff - off;
1631 if (newoff - off < hdrlen) {
1682 ah_update_mbuf(m, off, newoff - off, algo, &algos);
1688 off = newoff;