net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-01-18 09:38:00 +02:00
parent 5b13797cce
commit 9551de7115
81 changed files with 236 additions and 237 deletions
+1 -1
View File
@@ -722,7 +722,7 @@ static void lan91c111_receive(FAR struct net_driver_s *dev)
else
#endif
#ifdef CONFIG_NET_ARP
if (eth->type == htons(ETHTYPE_ARP))
if (eth->type == HTONS(ETHTYPE_ARP))
{
ninfo("ARP frame\n");
NETDEV_RXARP(dev);