[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] initialisation of lwIP
From: |
franz keuner |
Subject: |
[lwip-users] initialisation of lwIP |
Date: |
Tue, 11 Jan 2005 20:32:33 +0100 (MET) |
hi,
thanks to your advice I changed some values and set the programming memory
modell (Tasking EDE) from small to large.
Now there are no messages concerning memory problems.
But I have a problem to interpret the messages which I receive from lwIP.
My initialisation code is:
printf("\nlwIP init\n");
mem_init();
printf("mem initialized.\n");
memp_init();
printf("memp initialized.\n");
pbuf_init();
printf("pbuf initialized.\n");
netif_init();
printf("netif initialized.\n");
etharp_init();
printf("etharp initialized.\n");
ip_init();
printf("ip initialized.\n");
udp_init();
printf("udp initialized.\n");
tcp_init();
printf("tcp initialized.\n");
printf("TCP/IP initialized.\n");
printf("IP-Address: 176.16.2.6\n");
printf("Netmask: 255.255.255.0\n");
printf("Gateway: 192.168.0.200\n");
IP4_ADDR(&gw, 192,168,0,200);
IP4_ADDR(&ipaddr, 172,16,2,6);
IP4_ADDR(&netmask, 255,255,255,0);
printf("\nbringing up ethernet interface.\n");
netif_set_ipaddr(ethif, &ipaddr);
netif_set_netmask(ethif, &netmask);
netif_set_gw(ethif, &gw);
netif_set_up(ethif);
printf("\nInitialization completed.\n");
while (1);
What I get from
"#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0)" defined in cc.h is:
lwIP init
mem initialized.
memp initialized.
pbuf initialized.
netif initialized.
etharp initialized.
ip initialized.
udp initialized.
tcp initialized.
TCP/IP initialized.
IP-Address: 176.16.2.6
Netmask: 255.255.255.0
Gateway: 192.168.0.200
bringing up ethernet interface.
netif_set_ipaddr: netif address being changed
netif: IP address of interface . set to 250.0.4.0
netif: netmask of interface . set to 250.0.8.0
netif: GW address of interface . set to 250.0.12.0
Initialization completed.
So the addresses aren`t the same. That`s what I don`t unterstand.
Thanks and regards,
Franz
--
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl
AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben
- [lwip-users] initialisation of lwIP,
franz keuner <=