Lines Matching refs:ip6_hdr
221 struct ip6_hdr *oip6, *nip6;
241 IP6_EXTHDR_CHECK(m, 0, sizeof(struct ip6_hdr), return);
243 if (m->m_len < sizeof(struct ip6_hdr)) {
244 m = m_pullup(m, sizeof(struct ip6_hdr));
249 oip6 = mtod(m, struct ip6_hdr *);
304 oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */
319 preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
328 nip6 = mtod(m, struct ip6_hdr *);
352 icmp6_reflect(m, sizeof(struct ip6_hdr)); /* header order: IPv6 - ICMPv6 */
372 struct ip6_hdr *ip6, *nip6;
388 ip6 = mtod(m, struct ip6_hdr *);
563 nip6 = mtod(n, struct ip6_hdr *);
564 bcopy(ip6, nip6, sizeof(struct ip6_hdr));
567 noff = sizeof(struct ip6_hdr);
579 nip6 = mtod(n, struct ip6_hdr *);
661 noff = sizeof(struct ip6_hdr);
859 struct ip6_hdr *eip6;
863 if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
869 sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr),
874 sizeof(*icmp6) + sizeof(struct ip6_hdr));
880 eip6 = (struct ip6_hdr *)(icmp6 + 1);
887 sizeof(struct ip6_hdr);
1024 sizeof(*icmp6) + sizeof(struct ip6_hdr));
1031 eip6 = (struct ip6_hdr *)(icmp6 + 1);
1077 ip6cp.ip6c_ip6 = (struct ip6_hdr *)(icmp6 + 1);
1176 int replylen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
1182 struct ip6_hdr *ip6;
1187 ip6 = mtod(m, struct ip6_hdr *);
1411 bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr));
1412 nni6 = (struct icmp6_nodeinfo *)(mtod(n, struct ip6_hdr *) + 1);
1434 sizeof(struct ip6_hdr) +
1455 sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
1459 n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
1909 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
1997 struct ip6_hdr *ip6;
2011 if (off < sizeof(struct ip6_hdr)) {
2014 (u_long)off, (u_long)sizeof(struct ip6_hdr),
2024 if (sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) > MHLEN)
2027 if (off > sizeof(struct ip6_hdr)) {
2029 struct ip6_hdr nip6;
2031 l = off - sizeof(struct ip6_hdr);
2034 l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
2040 } else /* off == sizeof(struct ip6_hdr) */ {
2042 l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
2048 plen = m->m_pkthdr.len - sizeof(struct ip6_hdr);
2049 ip6 = mtod(m, struct ip6_hdr *);
2176 sizeof(struct ip6_hdr), plen);
2229 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
2441 struct ip6_hdr *sip6; /* m0 as struct ip6_hdr */
2443 struct ip6_hdr *ip6; /* m as struct ip6_hdr */
2466 sip6 = mtod(m0, struct ip6_hdr *);
2500 if (maxlen < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) +
2527 ip6 = mtod(m, struct ip6_hdr *);
2694 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));