ReactOS  0.4.13-dev-544-gede3fdd
init.c File Reference
#include "lwip/opt.h"
#include "lwip/init.h"
#include "lwip/stats.h"
#include "lwip/sys.h"
#include "lwip/mem.h"
#include "lwip/memp.h"
#include "lwip/pbuf.h"
#include "lwip/netif.h"
#include "lwip/sockets.h"
#include "lwip/ip.h"
#include "lwip/raw.h"
#include "lwip/udp.h"
#include "lwip/tcp_impl.h"
#include "lwip/snmp_msg.h"
#include "lwip/autoip.h"
#include "lwip/igmp.h"
#include "lwip/dns.h"
#include "lwip/timers.h"
#include "netif/etharp.h"
#include "lwip/api.h"
Include dependency graph for init.c:

Go to the source code of this file.

Macros

#define LWIP_DISABLE_TCP_SANITY_CHECKS   0
 
#define LWIP_DISABLE_MEMP_SANITY_CHECKS   0
 

Functions

void lwip_init (void)
 

Detailed Description

Modules initialization

Definition in file init.c.

Macro Definition Documentation

◆ LWIP_DISABLE_MEMP_SANITY_CHECKS

#define LWIP_DISABLE_MEMP_SANITY_CHECKS   0

Definition at line 237 of file init.c.

◆ LWIP_DISABLE_TCP_SANITY_CHECKS

#define LWIP_DISABLE_TCP_SANITY_CHECKS   0

Definition at line 234 of file init.c.

Function Documentation

◆ lwip_init()

void lwip_init ( void  )

Perform Sanity check of user-configurable values, and initialize all modules.

Definition at line 286 of file init.c.

287 {
288  /* Modules initialization */
289  stats_init();
290 #if !NO_SYS
291  sys_init();
292 #endif /* !NO_SYS */
293  mem_init();
294  memp_init();
295  pbuf_init();
296  netif_init();
297 #if LWIP_SOCKET
298  lwip_socket_init();
299 #endif /* LWIP_SOCKET */
300  ip_init();
301 #if LWIP_ARP
302  etharp_init();
303 #endif /* LWIP_ARP */
304 #if LWIP_RAW
305  raw_init();
306 #endif /* LWIP_RAW */
307 #if LWIP_UDP
308  udp_init();
309 #endif /* LWIP_UDP */
310 #if LWIP_TCP
311  tcp_init();
312 #endif /* LWIP_TCP */
313 #if LWIP_SNMP
314  snmp_init();
315 #endif /* LWIP_SNMP */
316 #if LWIP_AUTOIP
317  autoip_init();
318 #endif /* LWIP_AUTOIP */
319 #if LWIP_IGMP
320  igmp_init();
321 #endif /* LWIP_IGMP */
322 #if LWIP_DNS
323  dns_init();
324 #endif /* LWIP_DNS */
325 
326 #if LWIP_TIMERS
328 #endif /* LWIP_TIMERS */
329 }
void mem_init(void)
Definition: mem.c:274
#define pbuf_init()
Definition: pbuf.h:144
void netif_init(void)
Definition: netif.c:106
STREAM tcp_init(uint32 maxlen)
Definition: tcp.c:82
void memp_init(void)
Definition: memp.c:338
void sys_timeouts_init(void)
#define stats_init()
Definition: stats.h:161
#define ip_init()
Definition: ip.h:174
void sys_init(void)
Definition: sys_arch.c:310

Referenced by main(), and tcpip_init().