[Top][All Lists]

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

Re: [lwip-users] lwip on freertos

From: Jesper Vestergaard
Subject: Re: [lwip-users] lwip on freertos
Date: Tue, 09 Jun 2009 14:20:14 +0200
User-agent: Thunderbird (X11/20090409)

I have been digging a little deeper and with wireshark i can see that my browser sends a SYN but never receives a SYN ACK.

The function flow looks like this:

tcpip_thread() -> ip_input() -> tcp_input -> tcp_listen_input -> tcp_output (tcp_output returns ERR_OK)

The low_level_output in ethernetif is never called so the SYN ACK is never sent. A little later my laptop requests an ARP from the board and the board successfully returns an ARP.

Can anyone help me figuring out why the SYN ACK is never send?

Jesper Vestergaard wrote:

I'm trying to implement a simple webserver with lwip version 1.3.0 on a avr32 ap7000 board running freertos. The EMAC driver is working properly.

When I load up my browser and type in the ip adress of the board, the tcpip_thread() properly receives the packet and calls the ip_input() function.

Unfortunately the mailbox fetch in netconn_accept() never returns and the webserver request is never gonna be processed.

I'm having a hard time figuring out the link between the ip_input() function and the missing delivery of the mailbox in netconn_accept(). Can anyone help me with this problem?

Here's how i use lwip:

tcpip_init( NULL, NULL );
pxHTTPListener = netconn_new( NETCONN_TCP );
netconn_bind(pxHTTPListener, IP_ADDR_ANY, 80 );
netconn_listen( pxHTTPListener );

for( ;; )
   pxNewConnection = netconn_accept(pxHTTPListener);
   vProcessConnection( pxNewConnection );

lwip-users mailing list

reply via email to

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