Lines Matching refs:ip6
50 #include <netinet/ip6.h>
91 struct ip6_hdr *ip6;
99 ip6 = mtod(m, struct ip6_hdr *);
101 ip6->ip6_nxt == IPPROTO_HOPOPTS ||
102 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
103 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) ||
104 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) ||
105 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) ||
106 in6_localip(&ip6->ip6_dst))
115 plen = ntohs(ip6->ip6_plen);
144 if (ip6->ip6_hlim <= IPV6_HLIMDEC) {
154 dst.sin6_addr = ip6->ip6_dst;
176 ip6 = mtod(m, struct ip6_hdr *);
187 dst.sin6_addr = ip6->ip6_dst;
244 ip6 = mtod(m, struct ip6_hdr *);
251 !IN6_ARE_ADDR_EQUAL(&dst.sin6_addr, &ip6->ip6_dst)) {
257 dst.sin6_addr = ip6->ip6_dst;
271 ip6->ip6_hlim -= IPV6_HLIMDEC;
275 IP_PROBE(send, NULL, NULL, ip6, nh.nh_ifp, NULL, ip6);