arp: Remove the unnecessary inclusion of nuttx/net/arp

and change the remain inclusion to netinet/arp.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-15 18:57:43 +08:00 • committed by Petro Karashchenko
parent 9884159346
commit cfc005a460
14 changed files with 7 additions and 28 deletions

View file

@ -33,12 +33,10 @@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <nuttx/net/arp.h>
#include "netutils/netlib.h"
#if defined(CONFIG_EXAMPLES_BRIDGE_NET1_DHCPC) || \
defined(CONFIG_EXAMPLES_BRIDGE_NET2_DHCPC)
# include <arpa/inet.h>
# include "netutils/dhcpc.h"
#endif

View file

@ -31,7 +31,6 @@
#include <net/if.h>
#include <netinet/in.h>
#include <nuttx/net/arp.h>
#include "netutils/netlib.h"
#include "netutils/discover.h"

View file

@ -34,9 +34,9 @@
#include <net/if.h>
#include <net/route.h>
#include <net/ethernet.h>
#include <netinet/arp.h>
#include <netinet/in.h>
#include <nuttx/net/arp.h>
#include <nuttx/net/neighbor.h>
#include "netutils/netlib.h"

View file

@ -40,13 +40,8 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <nuttx/net/arp.h>
#include "netutils/netlib.h"
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
# include <arpa/inet.h>
#endif
/* Here we include the header file for the application(s) we use in
* our project as defined in the config/<board-name>/defconfig file
*/

View file

@ -38,7 +38,6 @@
#include <netinet/in.h>
#include <netinet/ether.h>
#include <nuttx/net/arp.h>
#include "netutils/netlib.h"
#include "netutils/thttpd.h"

View file

@ -56,7 +56,6 @@
#include <net/if.h>
#include <netinet/in.h>
#include <nuttx/net/arp.h>
#include "netutils/netlib.h"
#ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC

View file

@ -65,14 +65,9 @@
#include <net/if.h>
#include <netinet/in.h>
#include <nuttx/net/arp.h>
#include "netutils/netlib.h"
#include "netutils/xmlrpc.h"
#ifdef CONFIG_EXAMPLES_XMLRPC_DHCPC
# include <arpa/inet.h>
#endif
/* Here we include the header file for the application(s) we use in
* our project as defined in the config/<board-name>/defconfig file
*/