From aea9d17572b7fa5f8e05aae6639a3deff4f79aaf Mon Sep 17 00:00:00 2001 From: lottaviano Date: Tue, 24 May 2011 13:47:50 +0000 Subject: [PATCH] sam3x tcp_server: use the correct input function in netif git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4928 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/sam3x-ek/examples/sam3x-ek_tcp_server/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/boards/sam3x-ek/examples/sam3x-ek_tcp_server/main.c b/boards/sam3x-ek/examples/sam3x-ek_tcp_server/main.c index 991a0811..8079fc58 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_tcp_server/main.c +++ b/boards/sam3x-ek/examples/sam3x-ek_tcp_server/main.c @@ -79,7 +79,7 @@ static void init(void) tcpip_init(NULL, NULL); /* Bring up the network interface */ - netif_add(&netif, &ipaddr, &netmask, &gw, NULL, ethernetif_init, ip_input); + netif_add(&netif, &ipaddr, &netmask, &gw, NULL, ethernetif_init, tcpip_input); netif_set_default(&netif); netif_set_up(&netif); } @@ -110,10 +110,7 @@ int main(void) dhcp_start(&netif); while (!netif.ip_addr.addr) - { - dhcp_fine_tmr(); timer_delay(DHCP_FINE_TIMER_MSECS); - } kprintf(">>> dhcp ok: ip = %d.%d.%d.%d (kernel %s)\n", (int)(netif.ip_addr.addr >> 0 & 0xff), (int)(netif.ip_addr.addr >> 8 & 0xff), -- 2.25.1