Lines Matching refs:ip6rd
297 struct ip_tunnel_6rd ip6rd = {}; in print_tunnel() local
352 if (p->iph.protocol == IPPROTO_IPV6 && !tnl_ioctl_get_6rd(p->name, &ip6rd) && ip6rd.prefixlen) { in print_tunnel()
354 inet_ntop(AF_INET6, &ip6rd.prefix, s1, sizeof(s1)), in print_tunnel()
355 ip6rd.prefixlen); in print_tunnel()
356 if (ip6rd.relay_prefix) { in print_tunnel()
358 format_host(AF_INET, 4, &ip6rd.relay_prefix), in print_tunnel()
359 ip6rd.relay_prefixlen); in print_tunnel()
516 struct ip_tunnel_6rd ip6rd = {}; in do_6rd() local
527 memcpy(&ip6rd.prefix, prefix.data, 16); in do_6rd()
528 ip6rd.prefixlen = prefix.bitlen; in do_6rd()
534 memcpy(&ip6rd.relay_prefix, prefix.data, 4); in do_6rd()
535 ip6rd.relay_prefixlen = prefix.bitlen; in do_6rd()
555 return tnl_6rd_ioctl(cmd, medium, &ip6rd); in do_6rd()