[#MaybeFlipIPv6toCJDNS]
= MaybeFlipIPv6toCJDNS
:mrdocs:

If an IPv6 address belongs to the address range used by the CJDNS network and the CJDNS network is reachable (&hyphen;cjdnsreachable config is set), then change the type from NET&lowbar;IPV6 to NET&lowbar;CJDNS&period;

== Synopsis

Declared in `&lt;netbase&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CService.adoc[CService]
MaybeFlipIPv6toCJDNS(xref:CService.adoc[CService] const& service);
----

== Return Value

a copy of `service` either unmodified or changed to CJDNS&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *service* [in]
| Address to potentially convert&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
