Lines Matching defs:ip6
63 #include <netinet/ip6.h>
127 const struct ip6_hdr *ip6;
129 if (m->m_len < sizeof(*ip6)) {
130 m = m_pullup(m, sizeof(*ip6));
134 ip6 = mtod(m, const struct ip6_hdr *);
135 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
265 struct ip6_hdr *ip6;
268 if (M_UNWRITABLE(m, sizeof(*ip6))) {
269 if ((m = m_pullup(m, sizeof(*ip6))) == NULL)
272 ip6 = mtod(m, struct ip6_hdr *);
273 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
278 ip6->ip6_flow &= ~htonl(0xff << 20);
279 ip6->ip6_flow |= htonl((u_int32_t)itos << 20);