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

Lines Matching refs:off

359 	int off = sizeof(struct ip6_hdr), nest;
782 if (ip6_hopopts_input(&plen, &rtalert, &m, &off)) {
924 if (m->m_pkthdr.len < off) {
973 filter->ipf_filter.cookie, (mbuf_t*)&m, off, nxt);
989 nxt = (*ip6_protox[nxt]->pr_input)(&m, &off);
993 nxt = (*ip6_protox[nxt]->pr_input)(&m, &off);
1043 int off = *offp, hbhlen;
1049 IP6_EXTHDR_CHECK(m, off, sizeof(*hbh), return -1);
1050 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off);
1053 IP6_EXTHDR_CHECK(m, off, hbhlen, return -1);
1054 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off);
1070 off += hbhlen;
1078 *offp = off;
1238 * The third argument `off' is the offset from the IPv6 header to the option,
1243 ip6_unknown_opt(optp, m, off, locked)
1246 int off;
1261 icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_OPTION, off);
1275 ICMP6_PARAMPROB_OPTION, off);
1406 int proto, off, nxt;
1417 off = 0;
1422 newoff = ip6_nexthdr(m, off, proto, &nxt);
1425 if (newoff < off) /* invalid, check for safety */
1431 off = newoff;
1438 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr);
1469 if (off + sizeof(*ip6e) > m->m_len)
1471 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + off);
1476 if (off + elen > m->m_len)
1479 ext = ip6_pullexthdr(m, off, nxt);
1536 off += elen;
1556 ip6_pullexthdr(m, off, nxt)
1558 size_t off;
1577 m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
1600 m_copydata(m, off, elen, mtod(n, caddr_t));
1619 ip6_get_prevhdr(m, off)
1621 int off;
1625 if (off == sizeof(struct ip6_hdr))
1633 while (len < off) {
1660 ip6_nexthdr(m, off, proto, nxtp)
1662 int off;
1673 if ((m->m_flags & M_PKTHDR) == 0 || m->m_pkthdr.len < off)
1678 if (m->m_pkthdr.len < off + sizeof(ip6))
1680 m_copydata(m, off, sizeof(ip6), (caddr_t)&ip6);
1683 off += sizeof(ip6);
1684 return off;
1691 if (m->m_pkthdr.len < off + sizeof(fh))
1693 m_copydata(m, off, sizeof(fh), (caddr_t)&fh);
1699 off += sizeof(struct ip6_frag);
1700 return off;
1703 if (m->m_pkthdr.len < off + sizeof(ip6e))
1705 m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
1708 off += (ip6e.ip6e_len + 2) << 2;
1709 return off;
1714 if (m->m_pkthdr.len < off + sizeof(ip6e))
1716 m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
1719 off += (ip6e.ip6e_len + 1) << 3;
1720 return off;
1739 ip6_lasthdr(m, off, proto, nxtp)
1741 int off;
1753 newoff = ip6_nexthdr(m, off, proto, nxtp);
1755 return off;
1756 else if (newoff < off)
1758 else if (newoff == off)
1761 off = newoff;