Lines Matching defs:ip6
96 #include <netinet/ip6.h>
151 struct ip6_hdr *ip6;
159 struct ip6_hdr *ip6 = c->ip6;
168 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst))
171 !IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ip6->ip6_src))
186 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
190 struct rip6_inp_match_ctx ctx = { .ip6 = ip6, .proto = proto };
216 !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) &&
217 prison_check_ip6(inp->inp_cred, &ip6->ip6_dst) != 0)
247 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
274 mcaddr.sin6_addr = ip6->ip6_dst;
345 struct ip6_hdr *ip6;
439 M_PREPEND(m, sizeof(*ip6), M_NOWAIT);
444 ip6 = mtod(m, struct ip6_hdr *);
469 ip6->ip6_src = in6a;
471 ip6->ip6_dst = dstsock->sin6_addr;
476 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) |
478 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) |
484 ip6->ip6_nxt = inp->inp_ip_p;
485 ip6->ip6_hlim = hlim;
512 *p = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen);