+#ifdef RB_IPV6
+ if (target_p->localClient->ip.ss_family == AF_INET6 &&
+ (show_ip(source_p, target_p) ||
+ (source_p == target_p && !IsIPSpoof(target_p))) &&
+ ipv4_from_ipv6((struct sockaddr_in6 *)&target_p->localClient->ip, &ip4))
+ {
+ rb_inet_ntop_sock((struct sockaddr *)&ip4,
+ buf, sizeof buf);
+ sendto_one_numeric(source_p, RPL_WHOISTEXT,
+ "%s :Underlying IPv4 is %s",
+ target_p->name, buf);
+ }
+#endif /* RB_IPV6 */
+