Skip to content

Commit

Permalink
ia32-generic-qemu: Enable IPv6
Browse files Browse the repository at this point in the history
JIRA: COG-42
  • Loading branch information
mateuszkobak committed Apr 18, 2024
1 parent eb5969e commit c67fa4c
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _projects/ia32-generic-qemu/build.project
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

[ "${BASH_SOURCE[0]}" -ef "$0" ] && echo "You should source this script, not execute it!" && exit 1

#
# lwIP configuration
#
export LWIPOPTS_DIR="$(pwd)/_projects/ia32-generic-qemu/lwip"

#
# Ports configuration - additional to the one from _targets
Expand Down
91 changes: 91 additions & 0 deletions _projects/ia32-generic-qemu/lwip/lwipopts.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
#define LWIP_TCPIP_CORE_LOCKING 1
#define LWIP_SUPPORT_CUSTOM_PBUF 1
#define LWIP_NETIF_LOOPBACK 1
#define LWIP_HAVE_SLIPIF 0
#define LWIP_NETIF_API 1
#define LWIP_SOCKET 1
#define LWIP_COMPAT_SOCKETS 0
#define LWIP_ARP 1
#define LWIP_ICMP 1
#define LWIP_RAW 1
#define LWIP_DHCP 1
#define LWIP_DNS 1
#define LWIP_AUTOIP 1
#define LWIP_UDP 1
#define LWIP_TCP 1
#define LWIP_TCP_KEEPALIVE 1
#define MEM_LIBC_MALLOC 1
#define MEMP_MEM_MALLOC 1
#define LWIP_ERRNO_INCLUDE "errno.h"
#define LWIP_DNS_API_DEFINE_ERRORS 0
#define LWIP_DNS_API_DEFINE_FLAGS 0
#define LWIP_DNS_API_DECLARE_STRUCTS 0
#define LWIP_DNS_API_DECLARE_H_ERRNO 0
#define MEMP_NUM_NETCONN 1024
#define PPP_SUPPORT 1
#define PPPOS_SUPPORT 1
#define PAP_SUPPORT 1
#define CHAP_SUPPORT 1
#define MSCHAP_SUPPORT 1
#define LWIP_TIMEVAL_PRIVATE 0
#define LWIP_IPV6 1
#define LWIP_IPV6_AUTOCONFIG 1


#if 0 // debugging LWiP PPPoS
#define LWIP_DEBUG 1
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
#define LWIP_DBG_TYPES_ON LWIP_DBG_ON
#define PPP_DEBUG LWIP_DBG_ON
#endif

#if 0
#define LWIP_DEBUG 1
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
#define LWIP_DBG_TYPES_ON LWIP_DBG_ON
#define PBUF_DEBUG LWIP_DBG_OFF
#define SOCKETS_DEBUG LWIP_DBG_ON
#endif

#ifndef LWIP_STATS
#define LWIP_STATS 0
#endif

#if LWIP_STATS
#define LWIP_STATS_DISPLAY 1
#define LINK_STATS 1
#define IP_STATS 1
#define ICMP_STATS 1
#define IGMP_STATS 1
#define IPFRAG_STATS 1
#define UDP_STATS 1
#define TCP_STATS 1
#define MEM_STATS 1
#define MEMP_STATS 1
#define PBUF_STATS 1
#define SYS_STATS 1
#endif /* LWIP_STATS */

#define TCP_MSS 1460
#define TCP_WND (32 * TCP_MSS)
#define TCP_SND_BUF TCP_WND
#define ETH_PAD_SIZE 2
#define ETHARP_TABLE_MATCH_NETIF 1
#define IP_REASSEMBLY 1
#define IP_FRAG 1
#define SO_REUSE 1
#define DEFAULT_THREAD_STACKSIZE (4 * 4096)
#define TCPIP_THREAD_STACKSIZE (4 * 4096)
#define TCPIP_THREAD_PRIO 3
#define TCPIP_MBOX_SIZE 256
#define DEFAULT_RAW_RECVMBOX_SIZE 32
#define DEFAULT_UDP_RECVMBOX_SIZE 32
#define DEFAULT_TCP_RECVMBOX_SIZE 32
#define DEFAULT_ACCEPTMBOX_SIZE 32
#define LWIP_HOOK_FILENAME "phoenix-hooks.h"
#define LWIP_EXT_PF 1
#define LWIP_NETIF_STATUS_CALLBACK 1
#define LWIP_DHCP_AUTOIP_COOP 1
#define LWIP_DHCP_AUTOIP_COOP_TRIES 3
#define LWIP_SO_RCVTIMEO 1
#define ifreq lwip_ifreq
4 changes: 2 additions & 2 deletions busybox_config
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ CONFIG_FEATURE_LESS_MAXLINES=0
#
# Networking Utilities
#
# CONFIG_FEATURE_IPV6 is not set
CONFIG_FEATURE_IPV6=y
# CONFIG_FEATURE_UNIX_LOCAL is not set
# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set
# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set
Expand Down Expand Up @@ -881,7 +881,7 @@ CONFIG_NTPD=y
# CONFIG_FEATURE_NTPD_SERVER is not set
CONFIG_FEATURE_NTPD_CONF=y
CONFIG_PING=y
# CONFIG_PING6 is not set
CONFIG_PING6=y
CONFIG_FEATURE_FANCY_PING=y
# CONFIG_PSCAN is not set
CONFIG_ROUTE=y
Expand Down

0 comments on commit c67fa4c

Please sign in to comment.