Lines Matching refs:off

475 	int off = sizeof(struct ip6_hdr), nest;
947 if (ip6_hopopts_input(&plen, &rtalert, &m, &off)) {
1131 if (m->m_pkthdr.len < off) {
1168 (mbuf_t *)&m, off, nxt);
1192 nxt = pr_input(&m, &off, nxt);
1195 nxt = pr_input(&m, &off, nxt);
1251 int off = *offp, hbhlen;
1257 IP6_EXTHDR_CHECK(m, off, sizeof(*hbh), return -1);
1258 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off);
1261 IP6_EXTHDR_CHECK(m, off, hbhlen, return -1);
1262 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off);
1278 off += hbhlen;
1286 *offp = off;
1435 * The third argument `off' is the offset from the IPv6 header to the option,
1440 ip6_unknown_opt(uint8_t *optp, struct mbuf *m, int off)
1452 icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_OPTION, off);
1462 ICMP6_PARAMPROB_OPTION, off);
1650 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr);
1681 if (off + sizeof(*ip6e) > m->m_len)
1683 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + off);
1688 if (off + elen > m->m_len)
1691 ext = ip6_pullexthdr(m, off, nxt);
1757 off += elen;
1819 ip6_pullexthdr(m, off, nxt)
1821 size_t off;
1840 m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
1863 m_copydata(m, off, elen, mtod(n, caddr_t));
1882 ip6_get_prevhdr(m, off)
1884 int off;
1888 if (off == sizeof(struct ip6_hdr))
1896 while (len < off) {
1923 ip6_nexthdr(m, off, proto, nxtp)
1925 int off;
1936 if ((m->m_flags & M_PKTHDR) == 0 || m->m_pkthdr.len < off)
1941 if (m->m_pkthdr.len < off + sizeof(ip6))
1943 m_copydata(m, off, sizeof(ip6), (caddr_t)&ip6);
1946 off += sizeof(ip6);
1947 return off;
1954 if (m->m_pkthdr.len < off + sizeof(fh))
1956 m_copydata(m, off, sizeof(fh), (caddr_t)&fh);
1962 off += sizeof(struct ip6_frag);
1963 return off;
1966 if (m->m_pkthdr.len < off + sizeof(ip6e))
1968 m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
1971 off += (ip6e.ip6e_len + 2) << 2;
1972 return off;
1977 if (m->m_pkthdr.len < off + sizeof(ip6e))
1979 m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
1982 off += (ip6e.ip6e_len + 1) << 3;
1983 return off;
2002 ip6_lasthdr(m, off, proto, nxtp)
2004 int off;
2016 newoff = ip6_nexthdr(m, off, proto, nxtp);
2018 return off;
2019 else if (newoff < off)
2021 else if (newoff == off)
2024 off = newoff;