mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
net: fix inet #14634 regression
Define wasn't imported by netconfig.h move definitions
This commit is contained in:
parent
8241a10ebc
commit
faee89b966
4 changed files with 20 additions and 24 deletions
|
@ -68,6 +68,24 @@
|
||||||
* matter. It should, however, be valid in the current configuration.
|
* matter. It should, however, be valid in the current configuration.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#undef HAVE_INET_SOCKETS
|
||||||
|
#undef HAVE_PFINET_SOCKETS
|
||||||
|
#undef HAVE_PFINET6_SOCKETS
|
||||||
|
|
||||||
|
#if defined(CONFIG_NET_IPv4) || defined(CONFIG_NET_IPv6)
|
||||||
|
# define HAVE_INET_SOCKETS
|
||||||
|
|
||||||
|
# if (defined(CONFIG_NET_IPv4) && (defined(NET_UDP_HAVE_STACK) || \
|
||||||
|
defined(NET_TCP_HAVE_STACK))) || defined(CONFIG_NET_ICMP_SOCKET)
|
||||||
|
# define HAVE_PFINET_SOCKETS
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# if (defined(CONFIG_NET_IPv6) && (defined(NET_UDP_HAVE_STACK) || \
|
||||||
|
defined(NET_TCP_HAVE_STACK))) || defined(CONFIG_NET_ICMPv6_SOCKET)
|
||||||
|
# define HAVE_PFINET6_SOCKETS
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_PFINET_SOCKETS)
|
#if defined(HAVE_PFINET_SOCKETS)
|
||||||
# define NET_SOCK_FAMILY AF_INET
|
# define NET_SOCK_FAMILY AF_INET
|
||||||
#elif defined(HAVE_PFINET6_SOCKETS)
|
#elif defined(HAVE_PFINET6_SOCKETS)
|
||||||
|
|
|
@ -34,30 +34,6 @@
|
||||||
#include <nuttx/net/net.h>
|
#include <nuttx/net/net.h>
|
||||||
#include <nuttx/net/ip.h>
|
#include <nuttx/net/ip.h>
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/* Configuration */
|
|
||||||
|
|
||||||
#undef HAVE_INET_SOCKETS
|
|
||||||
#undef HAVE_PFINET_SOCKETS
|
|
||||||
#undef HAVE_PFINET6_SOCKETS
|
|
||||||
|
|
||||||
#if defined(CONFIG_NET_IPv4) || defined(CONFIG_NET_IPv6)
|
|
||||||
# define HAVE_INET_SOCKETS
|
|
||||||
|
|
||||||
# if (defined(CONFIG_NET_IPv4) && (defined(NET_UDP_HAVE_STACK) || \
|
|
||||||
defined(NET_TCP_HAVE_STACK))) || defined(CONFIG_NET_ICMP_SOCKET)
|
|
||||||
# define HAVE_PFINET_SOCKETS
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# if (defined(CONFIG_NET_IPv6) && (defined(NET_UDP_HAVE_STACK) || \
|
|
||||||
defined(NET_TCP_HAVE_STACK))) || defined(CONFIG_NET_ICMPv6_SOCKET)
|
|
||||||
# define HAVE_PFINET6_SOCKETS
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/net/net.h>
|
#include <nuttx/net/net.h>
|
||||||
|
#include <nuttx/net/netconfig.h>
|
||||||
#include <nuttx/net/tcp.h>
|
#include <nuttx/net/tcp.h>
|
||||||
#include <nuttx/kmalloc.h>
|
#include <nuttx/kmalloc.h>
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/net/net.h>
|
#include <nuttx/net/net.h>
|
||||||
|
#include <nuttx/net/netconfig.h>
|
||||||
|
|
||||||
#include "inet/inet.h"
|
#include "inet/inet.h"
|
||||||
#include "local/local.h"
|
#include "local/local.h"
|
||||||
|
|
Loading…
Reference in a new issue