Lines Matching defs:ip6
47 #include <netinet/ip6.h>
73 npf_ip6_setscope(const npf_cache_t *npc, struct ip6_hdr *ip6)
77 if (in6_clearscope(&ip6->ip6_src) || in6_clearscope(&ip6->ip6_dst)) {
80 if (in6_setscope(&ip6->ip6_src, rcvif, NULL) ||
81 in6_setscope(&ip6->ip6_dst, rcvif, NULL)) {
97 struct ip6_hdr *ip6 = NULL;
152 ip6 = mtod(m, struct ip6_hdr *);
153 memset(ip6, 0, len);
155 ip6->ip6_nxt = IPPROTO_TCP;
156 ip6->ip6_hlim = IPV6_DEFHLIM;
157 memcpy(&ip6->ip6_src, &oip->ip6_dst, sizeof(struct in6_addr));
158 memcpy(&ip6->ip6_dst, &oip->ip6_src, sizeof(struct in6_addr));
159 ip6->ip6_plen = htons(len);
160 ip6->ip6_vfc = IPV6_VERSION;
162 th = (struct tcphdr *)(ip6 + 1);
195 if (npf_ip6_setscope(npc, ip6) != 0) {
229 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
231 if (npf_ip6_setscope(npc, ip6) != 0) {