Lines Matching refs:ip6
85 #include <netinet/ip6.h>
145 struct ip6_hdr *ip6;
147 if (mbuf_len(m) < sizeof(*ip6)) {
148 m = m_pullup(m, sizeof(*ip6));
152 ip6 = mtod(m, struct ip6_hdr *);
153 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
280 struct ip6_hdr *ip6;
283 if (mbuf_len(m) < sizeof(*ip6)) {
284 m = m_pullup(m, sizeof(*ip6));
288 ip6 = mtod(m, struct ip6_hdr *);
289 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
294 ip6->ip6_flow &= ~htonl(0xff << 20);
295 ip6->ip6_flow |= htonl((u_int32_t)itos << 20);