miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
lwipopts.h File Reference

lwIP configuration for miniOS. More...

Go to the source code of this file.

Macros

#define NO_SYS   1
#define LWIP_NO_UNISTD_H   1
#define LWIP_NO_CTYPE_H   1
#define LWIP_ARP   1
#define LWIP_IPV4   1
#define LWIP_ICMP   1
#define LWIP_UDP   1
#define LWIP_TCP   1
#define LWIP_SOCKET   0
#define LWIP_NETCONN   0
#define LWIP_RAW   1
#define LWIP_ETHERNET   1
#define LWIP_BROADCAST_PING   1
#define MEM_ALIGNMENT   4
#define MEM_SIZE   (32 * 1024)
#define MEMP_NUM_PBUF   16
#define MEMP_NUM_TCP_PCB   4
#define MEMP_NUM_UDP_PCB   4
#define MEMP_NUM_RAW_PCB   4
#define PBUF_POOL_SIZE   16
#define PBUF_POOL_BUFSIZE   1536
#define CHECKSUM_GEN_IP   1
#define CHECKSUM_GEN_UDP   1
#define CHECKSUM_GEN_TCP   1
#define CHECKSUM_CHECK_IP   1
#define CHECKSUM_CHECK_UDP   1
#define CHECKSUM_CHECK_TCP   1
#define LWIP_PROVIDE_ERRNO   1
#define LWIP_RAND()
#define LWIP_DNS   1
#define LWIP_IGMP   0
#define LWIP_DHCP   0
#define LWIP_AUTOIP   0

Functions

unsigned int miniOS_lwip_rand (void)

Detailed Description

lwIP configuration for miniOS.

Configures lwIP in NO_SYS=1 (poll-driven) mode with ARP, IPv4, ICMP, TCP, and UDP enabled. LWIP_SOCKET and LWIP_NETCONN are disabled — socket API wiring is handled in the kernel socket layer (net_socket.c).

Macro Definition Documentation

◆ CHECKSUM_CHECK_IP

#define CHECKSUM_CHECK_IP   1

◆ CHECKSUM_CHECK_TCP

#define CHECKSUM_CHECK_TCP   1

◆ CHECKSUM_CHECK_UDP

#define CHECKSUM_CHECK_UDP   1

◆ CHECKSUM_GEN_IP

#define CHECKSUM_GEN_IP   1

◆ CHECKSUM_GEN_TCP

#define CHECKSUM_GEN_TCP   1

◆ CHECKSUM_GEN_UDP

#define CHECKSUM_GEN_UDP   1

◆ LWIP_ARP

#define LWIP_ARP   1

◆ LWIP_AUTOIP

#define LWIP_AUTOIP   0

◆ LWIP_BROADCAST_PING

#define LWIP_BROADCAST_PING   1

◆ LWIP_DHCP

#define LWIP_DHCP   0

◆ LWIP_DNS

#define LWIP_DNS   1

◆ LWIP_ETHERNET

#define LWIP_ETHERNET   1

◆ LWIP_ICMP

#define LWIP_ICMP   1

◆ LWIP_IGMP

#define LWIP_IGMP   0

◆ LWIP_IPV4

#define LWIP_IPV4   1

◆ LWIP_NETCONN

#define LWIP_NETCONN   0

◆ LWIP_NO_CTYPE_H

#define LWIP_NO_CTYPE_H   1

◆ LWIP_NO_UNISTD_H

#define LWIP_NO_UNISTD_H   1

◆ LWIP_PROVIDE_ERRNO

#define LWIP_PROVIDE_ERRNO   1

◆ LWIP_RAND

#define LWIP_RAND ( )
Value:
unsigned int miniOS_lwip_rand(void)
Definition lwip_port.c:148

◆ LWIP_RAW

#define LWIP_RAW   1

◆ LWIP_SOCKET

#define LWIP_SOCKET   0

◆ LWIP_TCP

#define LWIP_TCP   1

◆ LWIP_UDP

#define LWIP_UDP   1

◆ MEM_ALIGNMENT

#define MEM_ALIGNMENT   4

◆ MEM_SIZE

#define MEM_SIZE   (32 * 1024)

◆ MEMP_NUM_PBUF

#define MEMP_NUM_PBUF   16

◆ MEMP_NUM_RAW_PCB

#define MEMP_NUM_RAW_PCB   4

◆ MEMP_NUM_TCP_PCB

#define MEMP_NUM_TCP_PCB   4

◆ MEMP_NUM_UDP_PCB

#define MEMP_NUM_UDP_PCB   4

◆ NO_SYS

#define NO_SYS   1

◆ PBUF_POOL_BUFSIZE

#define PBUF_POOL_BUFSIZE   1536

◆ PBUF_POOL_SIZE

#define PBUF_POOL_SIZE   16

Function Documentation

◆ miniOS_lwip_rand()

unsigned int miniOS_lwip_rand ( void )