From 3dc2973161d71060cbea62063d219077f531af8a Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Tue, 8 Oct 2019 15:11:40 +0200 Subject: [HICN-306] Wrong representation format in ip_prefix_ntop causes parsing issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I16c8059ce537f338c15434acc87ac0e4baf87049 Signed-off-by: Jordan Augé --- libtransport/src/hicn/transport/core/prefix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtransport/src/hicn') diff --git a/libtransport/src/hicn/transport/core/prefix.cc b/libtransport/src/hicn/transport/core/prefix.cc index badbf3b3b..6b87ccd1f 100644 --- a/libtransport/src/hicn/transport/core/prefix.cc +++ b/libtransport/src/hicn/transport/core/prefix.cc @@ -133,7 +133,7 @@ std::string Prefix::getNetwork() const { std::string network(size, 0); - if (ip_prefix_ntop(&ip_address_, (char *)network.c_str(), size) < 0) { + if (ip_prefix_ntop_short(&ip_address_, (char *)network.c_str(), size) < 0) { throw errors::RuntimeException( "Impossible to retrieve network from ip address."); } -- cgit 1.2.3-korg