cmdline: replace FreeBSD ifdef for IP address parsing
authorThomas Monjalon <thomas@monjalon.net>
Wed, 6 Nov 2019 12:09:43 +0000 (13:09 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 8 Nov 2019 14:34:10 +0000 (15:34 +0100)
commit14cba9ee22685315da723bbd1212ba101a3a387f
tree5790d35b926a87d6037824eda9a3fe182a037495
parent7cc1bd4613a54dc71597b21b91837da2200b5d99
cmdline: replace FreeBSD ifdef for IP address parsing

The constants like AF_INET are in sys/socket.h in FreeBSD.
The #ifdef macro __FreeBSD__ is replaced with RTE_EXEC_ENV_FREEBSD
in order to be consistent across DPDK files, and allow to grep
for EXEC_ENV among other benefits.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test-pmd/cmdline.c
app/test/test_cmdline_ipaddr.c
examples/cmdline/commands.c
lib/librte_cmdline/cmdline_parse_ipaddr.c