mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
IP forward: Correct some compile issues due to recent changes.
This commit is contained in:
+8
-6
@@ -38,7 +38,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_TUN)
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@@ -55,19 +54,22 @@
|
|||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
|
#include <net/if.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_NET_PKT
|
||||||
|
# include <nuttx/net/pkt.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
#include <nuttx/wdog.h>
|
#include <nuttx/wdog.h>
|
||||||
#include <nuttx/wqueue.h>
|
#include <nuttx/wqueue.h>
|
||||||
#include <nuttx/net/arp.h>
|
#include <nuttx/net/arp.h>
|
||||||
#include <nuttx/net/netdev.h>
|
#include <nuttx/net/netdev.h>
|
||||||
|
#include <nuttx/net/ethernet.h>
|
||||||
#include <nuttx/net/tun.h>
|
#include <nuttx/net/tun.h>
|
||||||
|
|
||||||
#include <net/if.h>
|
#if defined(CONFIG_NET) && defined(CONFIG_NET_TUN)
|
||||||
|
|
||||||
#ifdef CONFIG_NET_PKT
|
|
||||||
# include <nuttx/net/pkt.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
|||||||
@@ -151,7 +151,6 @@ static int ipv6_hdrsize(FAR struct ipv6_hdr_s *ipv6)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_6LOWPAN
|
|
||||||
static int ipv6_decr_ttl(FAR struct ipv6_hdr_s *ipv6)
|
static int ipv6_decr_ttl(FAR struct ipv6_hdr_s *ipv6)
|
||||||
{
|
{
|
||||||
int ttl = (int)ipv6->ttl - 1;
|
int ttl = (int)ipv6->ttl - 1;
|
||||||
@@ -179,7 +178,6 @@ static int ipv6_decr_ttl(FAR struct ipv6_hdr_s *ipv6)
|
|||||||
|
|
||||||
return ttl;
|
return ttl;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: ipv6_packet_conversion
|
* Name: ipv6_packet_conversion
|
||||||
|
|||||||
Reference in New Issue
Block a user