[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] Porting lwIP to MPC5200
From: |
Amir Bukhari |
Subject: |
RE: [lwip-users] Porting lwIP to MPC5200 |
Date: |
Thu, 20 Oct 2005 12:38:21 +0200 |
I have got a good understanding of the code, it was cleanly writen and
simple to understands. I will begin porting and I will post any question
here.
For example if I want to use TCPIP i should do the following in:
sys_init();
mem_init();
memp_init();
pbuf_init();
etharp_init();
tcpip_init();
someif = netif_add(&netif_0, &ip_this_addr, &ip_net_mask, &ip_gw_addr,
NULL, net_if_init,tcpip_input);
netif_set_default(someif);
And then use API netconn_*
Is that correct?
-Amir
> address@hidden wrote on
> lwip-users-bounces+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.
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users