Minor cleanup after laster squashed merge.
This commit is contained in:
parent
3aa18ef56e
commit
467c31637f
@ -35,7 +35,7 @@
|
||||
|
||||
ifeq ($(CONFIG_NET_ROUTE),y)
|
||||
|
||||
# General outing table support
|
||||
# General routing table support
|
||||
|
||||
SOCK_CSRCS += net_initroute.c net_router.c netdev_router.c
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include "route/ramroute.h"
|
||||
#include "route/route.h"
|
||||
|
||||
#ifdef CONFIG_NET_ROUTE
|
||||
#if defined(CONFIG_ROUTE_IPv4_RAMROUTE) || defined(CONFIG_ROUTE_IPv6_RAMROUTE)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -140,4 +140,4 @@ int net_addroute_ipv6(net_ipv6addr_t target, net_ipv6addr_t netmask,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NET_ROUTE */
|
||||
#endif /* CONFIG_ROUTE_IPv4_RAMROUTE || CONFIG_ROUTE_IPv6_RAMROUTE */
|
||||
|
@ -50,7 +50,7 @@
|
||||
#include "route/ramroute.h"
|
||||
#include "route/route.h"
|
||||
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE)
|
||||
#if defined(CONFIG_ROUTE_IPv4_RAMROUTE) || defined(CONFIG_ROUTE_IPv6_RAMROUTE)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
@ -242,4 +242,4 @@ int net_delroute_ipv6(net_ipv6addr_t target, net_ipv6addr_t netmask)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NET && CONFIG_NET_ROUTE */
|
||||
#endif /* CONFIG_ROUTE_IPv4_RAMROUTE || CONFIG_ROUTE_IPv6_RAMROUTE */
|
||||
|
@ -49,7 +49,7 @@
|
||||
#include "route/ramroute.h"
|
||||
#include "route/route.h"
|
||||
|
||||
#ifdef CONFIG_NET_ROUTE
|
||||
#if defined(CONFIG_ROUTE_IPv4_RAMROUTE) || defined(CONFIG_ROUTE_IPv6_RAMROUTE)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -130,4 +130,4 @@ int net_foreachroute_ipv6(route_handler_ipv6_t handler, FAR void *arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NET_ROUTE */
|
||||
#endif /* CONFIG_ROUTE_IPv4_RAMROUTE || CONFIG_ROUTE_IPv6_RAMROUTE */
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include "route/romroute.h"
|
||||
#include "route/route.h"
|
||||
|
||||
#ifdef CONFIG_NET_ROUTE
|
||||
#if defined(CONFIG_ROUTE_IPv4_ROMROUTE) || defined(CONFIG_ROUTE_IPv6_ROMROUTE)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -105,4 +105,4 @@ int net_foreachroute_ipv6(route_handler_ipv6_t handler, FAR void *arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NET_ROUTE */
|
||||
#endif /* CONFIG_ROUTE_IPv4_ROMROUTE || CONFIG_ROUTE_IPv6_ROMROUTE */
|
||||
|
@ -42,14 +42,6 @@
|
||||
#include "route/ramroute.h"
|
||||
#include "route/route.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
@ -44,6 +44,8 @@
|
||||
|
||||
#include "route/route.h"
|
||||
|
||||
#if defined(CONFIG_ROUTE_IPv4_RAMROUTE) || defined(CONFIG_ROUTE_IPv6_RAMROUTE)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@ -229,4 +231,5 @@ FAR struct net_route_ipv6_entry_s *
|
||||
struct net_route_ipv6_queue_s *list);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_ROUTE_IPv4_RAMROUTE || CONFIG_ROUTE_IPv6_RAMROUTE */
|
||||
#endif /* __NET_ROUTE_RAMROUTE_H */
|
||||
|
@ -44,6 +44,8 @@
|
||||
|
||||
#include "route/route.h"
|
||||
|
||||
#if defined(CONFIG_ROUTE_IPv4_ROMROUTE) || defined(CONFIG_ROUTE_IPv6_ROMROUTE)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
@ -60,7 +62,7 @@ extern const unsigned int g_ipv4_nroutes;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ROUTE_IPv6_ROMROUTE)
|
||||
/* The in-memory routing tables are represented as asimple array. */
|
||||
/* The in-memory routing tables are represented as a simple array. */
|
||||
|
||||
extern struct net_route_ipv6_s g_ipv6_routes[];
|
||||
extern const unsigned int g_ipv6_nroutes;
|
||||
@ -70,4 +72,5 @@ extern const unsigned int g_ipv6_nroutes;
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
#endif /* CONFIG_ROUTE_IPv4_ROMROUTE || CONFIG_ROUTE_IPv6_ROMROUTE */
|
||||
#endif /* __NET_ROUTE_ROMROUTE_H */
|
||||
|
Loading…
Reference in New Issue
Block a user