lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Porting lwIP to MPC5200


From: Christiaan Simons
Subject: Re: [lwip-users] Porting lwIP to MPC5200
Date: Wed, 19 Oct 2005 09:16:46 +0200


address@hidden wrote on 18-10-2005
22:02:39:

> But I can't find how the whole lwIP is initialized. For example what is
the
> sequence to do until application can send data across network.
> Can someone give me a brief guide about this?

If you're going to use the 'raw api' this can be the init sequence:

#ifdef STATS
stats_init();
#endif
sys_init();
mem_init();
memp_init();
pbuf_init();
etharp_init();
ip_init();
udp_init();
tcp_init();
someif = netif_add(&netif_0, &ip_this_addr, &ip_net_mask, &ip_gw_addr,
                  NULL, net_if_init, ip_input);
netif_set_default(someif);
som_pcb = udp_new();

and call netif_set_up(someif);

Note this also depends on how you're going
to use or configure lwip (lwipopts.h).
E.g. no TCP -> no TCP init etc.

Also runtime IP configuration
(manual IP / DHCP selection) plays a role here.
Have a look at the contrib/ports to get an idea.

Bye,

Christiaan Simons

Hardware / Software Engineer
Axon Digital Design

+31 (0)13 511 66 66
+31 (0)13 511 41 51

http://www.axon.tv

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named.  If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]