Lines Matching defs:ip6
135 #include <netinet/ip6.h>
524 struct ip6_hdr *ip6;
540 * If we don't have an ip4 address that match my inner ip6 address,
549 if (mbuf_len(m) < sizeof(*ip6)) {
550 m = m_pullup(m, sizeof(*ip6));
557 ip6 = mtod(m, struct ip6_hdr *);
558 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
564 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst))
565 in4 = GET_V4(&ip6->ip6_dst);
747 struct ip6_hdr ip6;
787 mbuf_copydata(m, off, sizeof(ip6), &ip6);
793 if (stf_checkaddr6(sc, &ip6.ip6_dst, NULL) < 0 ||
794 stf_checkaddr6(sc, &ip6.ip6_src, m->m_pkthdr.rcvif) < 0) {
799 itos = (ntohl(ip6.ip6_flow) >> 20) & 0xff;
804 ip6.ip6_flow &= ~htonl(0xff << 20);
805 ip6.ip6_flow |= htonl((u_int32_t)itos << 20);