Lines Matching refs:ip6
85 #include <netinet/ip6.h>
143 struct ip6_hdr *ip6;
145 if (mbuf_len(m) < sizeof(*ip6)) {
146 m = m_pullup(m, sizeof(*ip6));
150 ip6 = mtod(m, struct ip6_hdr *);
151 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
281 struct ip6_hdr *ip6;
284 if (mbuf_len(m) < sizeof(*ip6)) {
285 m = m_pullup(m, sizeof(*ip6));
289 ip6 = mtod(m, struct ip6_hdr *);
290 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
295 ip6->ip6_flow &= ~htonl(0xff << 20);
296 ip6->ip6_flow |= htonl((u_int32_t)itos << 20);