Lines Matching refs:ip6_hdr
970 if (m->m_pkthdr.len < sizeof(struct ip6_hdr)) {
973 "pkthdr.len(%d) < sizeof(struct ip6_hdr), "
1164 struct ip6_hdr *ip6 = NULL;
1165 struct ip6_hdr ip6buf;
1169 ip6 = mtod(m, struct ip6_hdr *);
2042 clen += sizeof(struct ip6_hdr);
2269 struct ip6_hdr *oip6;
2270 struct ip6_hdr *ip6;
2293 if (m->m_len != sizeof(struct ip6_hdr))
2295 if (M_LEADINGSPACE(m->m_next) < sizeof(struct ip6_hdr)) {
2302 n->m_len = sizeof(struct ip6_hdr);
2305 m->m_pkthdr.len += sizeof(struct ip6_hdr);
2306 oip6 = mtod(n, struct ip6_hdr *);
2308 m->m_next->m_len += sizeof(struct ip6_hdr);
2309 m->m_next->m_data -= sizeof(struct ip6_hdr);
2310 m->m_pkthdr.len += sizeof(struct ip6_hdr);
2311 oip6 = mtod(m->m_next, struct ip6_hdr *);
2313 ip6 = mtod(m, struct ip6_hdr *);
2314 ovbcopy((caddr_t)ip6, (caddr_t)oip6, sizeof(struct ip6_hdr));
2325 if (plen < IPV6_MAXPACKET - sizeof(struct ip6_hdr))
2347 struct ip6_hdr *ip6, *ip6i;
2368 ip6 = mtod(m, struct ip6_hdr *);
2373 if (m->m_len != sizeof(struct ip6_hdr))
2375 if (M_LEADINGSPACE(m->m_next) < sizeof(struct ip6_hdr)) {
2382 n->m_len = sizeof(struct ip6_hdr);
2386 ip6i = mtod(n, struct ip6_hdr *);
2388 m->m_next->m_len += sizeof(struct ip6_hdr);
2389 m->m_next->m_data -= sizeof(struct ip6_hdr);
2391 ip6i = mtod(m->m_next, struct ip6_hdr *);
2398 bcopy(ip6, ip6i, sizeof(struct ip6_hdr));
2672 struct ip6_hdr *ip6;
3037 struct ip6_hdr *ip6;
3072 ip6 = mtod(state->m, struct ip6_hdr *);
3177 plen = state->m->m_pkthdr.len - sizeof(struct ip6_hdr);
3185 ip6 = mtod(state->m, struct ip6_hdr *);
3215 struct ip6_hdr *ip6;
3260 ip6 = mtod(state->m, struct ip6_hdr *);
3341 ip6 = mtod(state->m, struct ip6_hdr *);
3484 ip6 = mtod(state->m, struct ip6_hdr *);
3512 plen = state->m->m_pkthdr.len - sizeof(struct ip6_hdr);
3520 ip6 = mtod(state->m, struct ip6_hdr *);
3589 struct ip6_hdr *ip6;
3592 if (m->m_len < sizeof(struct ip6_hdr))
3594 ip6 = mtod(m, struct ip6_hdr *);
3595 hlen = sizeof(struct ip6_hdr);
3710 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_src), sizeof(i6src.sin6_addr),
3712 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_dst), sizeof(i6dst.sin6_addr),
3740 struct ip6_hdr *oip6;
3745 if (m->m_len < sizeof(struct ip6_hdr))
3750 if (m->m_pkthdr.len < off + sizeof(struct ip6_hdr))
3756 oip6 = mtod(m, struct ip6_hdr *);
3775 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_src),
3777 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_dst),