Lines Matching defs:ip6
61 #include <netinet/ip6.h>
92 struct ip6_hdr *ip6;
132 if (m->m_len < sizeof(*ip6)) {
133 m = m_pullup(m, sizeof(*ip6));
137 ip6 = mtod(m, struct ip6_hdr *);
138 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
158 ip6 = mtod(m, struct ip6_hdr *);
159 ip6->ip6_flow = 0;
160 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
161 ip6->ip6_vfc |= IPV6_VERSION;
162 #if 0 /* ip6->ip6_plen will be filled by ip6_output */
163 ip6->ip6_plen = htons((u_int16_t)m->m_pkthdr.len);
165 ip6->ip6_nxt = proto;
166 ip6->ip6_hlim = ip6_gif_hlim;
167 ip6->ip6_src = sin6_src->sin6_addr;
170 ip6->ip6_dst = sin6_dst->sin6_addr;
179 ip6->ip6_flow &= ~ntohl(0xff00000);
180 ip6->ip6_flow |= htonl((u_int32_t)otos << 20);
263 struct ip6_hdr *ip6;
269 ip6 = mtod(m, struct ip6_hdr *);
290 if (rcvif == NULL || !gif_validate6(ip6, var, rcvif)) {
301 otos = ip6->ip6_flow;
357 gif_validate6(const struct ip6_hdr *ip6, struct gif_variant *var,
366 ret = in6_tunnel_validate(ip6, &src->sin6_addr, &dst->sin6_addr);
379 sockaddr_in6_init(&u.sin6, &ip6->ip6_src, 0, 0, 0);
407 struct ip6_hdr ip6;
412 m_copydata(m, 0, sizeof(ip6), (void *)&ip6);
416 r = gif_validate6(&ip6, var, ifp);
471 struct ip6_hdr *ip6;
491 ip6 = ip6cp->ip6c_ip6;
493 ip6 = NULL;
496 if (!ip6)
515 else if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &dst6->sin6_addr))