cmdline: standardize conversion of IP address strings
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 29 Jan 2018 10:29:03 +0000 (11:29 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Apr 2018 19:31:40 +0000 (21:31 +0200)
commitb94fcf6bdf7126eda53e1ccf0e4c0fe20735bda0
treeadce73b1eaf7fd3392f82758e9ecad9850fd2117
parentb3a022b17c94196149ec1665584fe81341020a18
cmdline: standardize conversion of IP address strings

The code to convert IPv4 and IPv6 address strings into a binary format
(inet_ntop) was included in the cmdline library because the DPDK was
historically compiled in environments where the standard inet_ntop()
function is not available. Today, this is not the case and the standard
inet_ntop() can be used.

This patch removes the internal inet_ntop*() functions and their
specific license.

There is a small functional impact: IP addresses like 012.34.56.78
are not valid anymore.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_cmdline/cmdline_parse_ipaddr.c
test/test/test_cmdline_ipaddr.c