packets: Add ipv6_string_mapped.
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Wed, 25 Nov 2015 13:31:06 +0000 (11:31 -0200)
committerBen Pfaff <blp@ovn.org>
Mon, 30 Nov 2015 18:10:29 +0000 (10:10 -0800)
commitbed610e87afe5f7ce1ef6c081a5b3c905501a083
tree6771c680f4ed503d121cf12fce6c0a40c671692d
parent4f6e5a69e279dd6584e90d598966d665f3fee6b9
packets: Add ipv6_string_mapped.

ipv6_string_mapped stores an IPv6 or IPv4 representation of an IPv6 address
into a string. If the address is IPv4-mapped, it's represented in IPv4
dotted-decimal format.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/packets.c
lib/packets.h