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
@@ -767,7 +767,7 @@ static void ftmac100_receive(FAR struct ftmac100_driver_s *priv)
else
#endif
#ifdef CONFIG_NET_ARP
if (BUF->type == htons(ETHTYPE_ARP))
if (BUF->type == HTONS(ETHTYPE_ARP))
{
arp_arpin(&priv->ft_dev);