Lines Matching defs:ip6
49 #include <netinet/ip6.h>
59 TAILQ_HEAD(ip6q_head, ip6q) frag6_queue; /* ip6 reassemble queue */
117 struct ip6_hdr *ip6;
126 ip6 = mtod(m, struct ip6_hdr *);
132 if (ip6->ip6_plen == 0) {
145 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
170 if (sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) <= offset) {
189 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &q6->ip6q_src) &&
190 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst))
224 q6->ip6q_src = ip6->ip6_src;
225 q6->ip6q_dst = ip6->ip6_dst;
226 q6->ip6q_ecn = (ntohl(ip6->ip6_flow) >> 20) & IPTOS_ECN_MASK;
246 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
318 ecn = (ntohl(ip6->ip6_flow) >> 20) & IPTOS_ECN_MASK;
417 ip6 = mtod(m, struct ip6_hdr *);
418 ip6->ip6_plen = htons(next);
419 ip6->ip6_src = q6->ip6q_src;
420 ip6->ip6_dst = q6->ip6q_dst;
422 ip6->ip6_flow |= htonl(IPTOS_ECN_CE << 20);
539 struct ip6_hdr *ip6;
542 ip6 = mtod(m, struct ip6_hdr *);
545 ip6->ip6_src = q6->ip6q_src;
546 ip6->ip6_dst = q6->ip6q_dst;