[#CNetAddr-SetLegacyIPv6]
= xref:CNetAddr.adoc[CNetAddr]::SetLegacyIPv6
:relfileprefix: ../
:mrdocs:

Set from a legacy IPv6 address&period; Legacy IPv6 address may be a normal IPv6 address, or another address (e&period;g&period; IPv4) disguised as IPv6&period; This encoding is used in the legacy `addr` encoding&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetLegacyIPv6(std::span&lt;uint8&lowbar;t const&gt; ipv6);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ipv6*
| The 16&hyphen;byte legacy IPv6 representation to decode&period;
|===


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