Lines Matching refs:ip6
86 #include <netinet/ip6.h>
196 static void ip_2_ip6_hdr(struct ip6_hdr *ip6, struct ip *ip);
693 ip_2_ip6_hdr(ip6, ip)
694 struct ip6_hdr *ip6;
697 bzero(ip6, sizeof(*ip6));
699 ip6->ip6_vfc = IPV6_VERSION;
700 ip6->ip6_plen = ip->ip_len;
701 ip6->ip6_nxt = ip->ip_p;
702 ip6->ip6_hlim = ip->ip_ttl;
703 ip6->ip6_src.s6_addr32[2] = ip6->ip6_dst.s6_addr32[2] =
705 ip6->ip6_src.s6_addr32[3] = ip->ip_src.s_addr;
706 ip6->ip6_dst.s6_addr32[3] = ip->ip_dst.s_addr;