Lines Matching refs:off

188 				   int *off, int *nxt, u_short *offset));
194 struct ifnet *rif, struct ifnet *oif, int off, int nxt));
276 is_icmp6_query(struct ip6_hdr *ip6, int off)
281 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
296 int *off, int *nxt, u_short *offset)
307 *off = sizeof(struct ip6_hdr);
309 while (*off < len) {
310 ip6e = (struct ip6_ext *)((caddr_t) ip6 + *off);
311 if ((*m)->m_len < *off + sizeof(*ip6e))
316 if ((*m)->m_len >= *off + sizeof(struct ip6_frag)) {
319 ip6f = (struct ip6_frag *) ((caddr_t)ip6 + *off);
324 *off += sizeof(struct ip6_frag);
329 *off += (ip6e->ip6e_len + 2) << 2;
358 *off += (ip6e->ip6e_len + 1) << 3;
418 struct ifnet *rif, struct ifnet *oif, int off, int nxt)
421 struct tcphdr *const tcp6 = (struct tcphdr *) ((caddr_t) ip6+ off);
422 struct udphdr *const udp = (struct udphdr *) ((caddr_t) ip6+ off);
423 struct icmp6_hdr *const icmp6 = (struct icmp6_hdr *) ((caddr_t) ip6+ off);
478 if (off > 0)
485 if (off > 0)
492 if (off > 0)
499 if (off > 0)
504 if (off > 0)
566 int off = sizeof(struct ip6_hdr), nxt = ip6->ip6_nxt;
647 if (!ip6opts_match(&ip6, f, m, &off, &nxt, &offset))
677 PULLUP_TO(off + 4); /* XXX ? */
692 PULLUP_TO(off + 14);
693 tcp6 = (struct tcphdr *) ((caddr_t)ip6 + off);
718 PULLUP_TO(off + 4);
719 udp = (struct udphdr *) ((caddr_t)ip6 + off);
740 PULLUP_TO(off + 2);
741 icmp = (struct icmp6_hdr *) ((caddr_t)ip6 + off);
750 ip6fw_report(NULL, ip6, rif, oif, off, nxt);
773 ip6fw_report(f, ip6, rif, oif, off, nxt);
831 && (nxt != IPPROTO_ICMPV6 || is_icmp6_query(ip6, off))
838 (struct tcphdr *) ((caddr_t)ip6 + off);
861 ack += (*m)->m_pkthdr.len - off
865 - off - (ti.th.th_off << 2);