diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-10-08 13:14:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-10-08 13:14:39 +0000 |
commit | bc057491691b84c877e276f611a818b2455f67f1 (patch) | |
tree | 895137a1558cf62739d820788fe1926e309a9ad4 /libtransport/src/hicn/transport | |
parent | 13b8a7b4543c53cd4ea04f67be42c487ea431a40 (diff) | |
parent | 3dc2973161d71060cbea62063d219077f531af8a (diff) |
Merge "[HICN-306] Wrong representation format in ip_prefix_ntop causes parsing issues"
Diffstat (limited to 'libtransport/src/hicn/transport')
-rw-r--r-- | libtransport/src/hicn/transport/core/prefix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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."); } |