net: replace htons with constant endian swap
authorFady Bader <fady@mellanox.com>
Thu, 23 Jul 2020 07:08:24 +0000 (10:08 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 10 Sep 2020 19:52:28 +0000 (21:52 +0200)
commit64fb21d86b47d96ffc9bf2c95fc37dafbc15422d
tree6b66e3408f31dfe3276a45c20106ec9444413d1f
parent507e1ca07bee3c78c4da1262c4c00668d7a1f8ec
net: replace htons with constant endian swap

htons is not defined in Windows with the MinGW compiler.
htons is replaced with RTE_BE16 in order to compile under Windows.

Signed-off-by: Fady Bader <fady@mellanox.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Tested-by: Pallavi Kadam <pallavi.kadam@intel.com>
lib/librte_net/rte_arp.c