Lines Matching refs:ip6rd
306 struct ip_tunnel_6rd ip6rd; in print_tunnel() local
312 memset(&ip6rd, 0, sizeof(ip6rd)); in print_tunnel()
368 if (p->iph.protocol == IPPROTO_IPV6 && !tnl_ioctl_get_6rd(p->name, &ip6rd) && ip6rd.prefixlen) { in print_tunnel()
370 inet_ntop(AF_INET6, &ip6rd.prefix, s1, sizeof(s1)), in print_tunnel()
371 ip6rd.prefixlen); in print_tunnel()
372 if (ip6rd.relay_prefix) { in print_tunnel()
374 format_host(AF_INET, 4, &ip6rd.relay_prefix, s1, sizeof(s1)), in print_tunnel()
375 ip6rd.relay_prefixlen); in print_tunnel()
549 struct ip_tunnel_6rd ip6rd; in do_6rd() local
555 memset(&ip6rd, 0, sizeof(ip6rd)); in do_6rd()
564 memcpy(&ip6rd.prefix, prefix.data, 16); in do_6rd()
565 ip6rd.prefixlen = prefix.bitlen; in do_6rd()
571 memcpy(&ip6rd.relay_prefix, prefix.data, 4); in do_6rd()
572 ip6rd.relay_prefixlen = prefix.bitlen; in do_6rd()
590 return tnl_6rd_ioctl(cmd, medium, &ip6rd); in do_6rd()