lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Porting/memory/connect issues


From: Hampus Thorell
Subject: Re: [lwip-users] Porting/memory/connect issues
Date: Thu, 22 Jun 2006 11:43:54 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

Hello again,

I set memp_num_sys_timeout to 3 and the "out of memory" error message disappeared. However, I can still not connect with my client.

During connect the following is now printed instead:

tcpip_thread: IP packet
ip_input: iphdr->dest 0x96E320F1 netif->ip_addr 0x96E320F1 (0x96E30000, 0x96E30000, 0x20F1)
ip_input: packet accepted on interface e0
ip_input:
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |          | (v, hl, tos, len)
+-------------------------------+
|          ||       | (id, flags, offset)
+-------------------------------+
|    |    |    0x0080     | (ttl, proto, chksum)
+-------------------------------+
|  150  |  227  |   32  |  187  | (src)
+-------------------------------+
|  150  |  227  |   32  |  241  | (dest)
+-------------------------------+
ip_input: p->len 48 p->tot_len 48
TCP header:
+-------------------------------+
|          |          | (src port, dest port)
+-------------------------------+
|                     | (seq no)
+-------------------------------+
|                     | (ack no)
+-------------------------------+
|  |   ||          | (hdrlen, flags (SYN ), win)
+-------------------------------+
|    0x6A68     |          | (chksum, urgp)
+-------------------------------+
pbuf_header: old  new  (-109638)
pbuf_header: old  new  (-109618)
tcp_input: packed for LISTENing connection.
TCP connection request  -> .
sys_timeout:  msecs= h= arg=
tcp_enqueue(pcb=, arg=, len=, flags=FFFE2ED0, copy=)
tcp_enqueue: queuelen:
ssw h=()
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_output: nothing to send ()
tcp_output: snd_wnd , cwnd , wnd , seg == NULL, ack
sys_timeout:  msecs= h= arg=
ssw h=()
sys_timeout:  msecs= h= arg=
ssw h=()
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_output: nothing to send ()
tcp_output: snd_wnd , cwnd , wnd , seg == NULL, ack
sys_timeout:  msecs= h= arg=
ssw h=()
sys_timeout:  msecs= h= arg=
ssw h=()
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_output: nothing to send ()
tcp_output: snd_wnd , cwnd , wnd , seg == NULL, ack
sys_timeout:  msecs= h= arg=
ssw h=()
sys_timeout:  msecs= h= arg=
ssw h=()


Why does it say "nothing to send ()" ?

Hampus

Sathya Thammanur wrote:
Hello,
Can you change your lwip setting for the parameter memp_num_sys_timeout to be set to 3? This was an issue that got fixed in the latest release of Xilinx EDK.

Sathya



On 6/21/06, *Hampus Thorell* <address@hidden <mailto:address@hidden>> wrote:

    Hello!

    I am trying to port LwIP to a Xilinx v2p system with an external mac and
    no external memory. I have basically used the echoserver on Xilinx
    homepage.

    I have managed to get the server up and running and I can ping it.
    However I can't seem to get an echo client to connect to it. When using
    the LwIP debug switch I get the following errors during startup:
    "sys_sem_new: Error --  Out of semaphore resources" - This error
    message
    repeats itself three times

    Then I get the following error message:

    "memp_malloc: out of memory in pool 10"

    This message also appears when trying to connect with the echo-client.
    It then looks like this:

    
******************************************************************************
    tcpip_thread: IP packet
    ip_input: iphdr->dest 0x96E320F1 netif->ip_addr 0x96E320F1 (0x96E30000,
    0x96E30000, 0x20F1)
    ip_input: packet accepted on interface e0
    ip_input:
    IP header:
    +-------------------------------+
    | 4 | 5 |  0x00 |          | (v, hl, tos, len)
    +-------------------------------+
    |          ||       | (id, flags, offset)
    +-------------------------------+
    |    |    |    0x0080     | (ttl, proto, chksum)
    +-------------------------------+
    |  150  |  227  |   32  |  187  | (src)
    +-------------------------------+
    |  150  |  227  |   32  |  241  | (dest)
    +-------------------------------+
    ip_input: p->len 48 p->tot_len 48
    TCP header:
    +-------------------------------+
    |          |          | (src port, dest port)
    +-------------------------------+
    |                     | (seq no)
    +-------------------------------+
    |                     | (ack no)
    +-------------------------------+
    |  |   ||          | (hdrlen, flags (SYNpbuf_alloc(length=) ), win)
    +-------------------------------+
    |    0xFC3F     |          | (chksum, urgp)
    +-------------------------------
    pbuf_alloc: allocated pbuf
    pbuf_alloc(length=) ==
    pbuf_header: old  new  (-106608)
    +
    pbuf_header: old  new  (-111250)
    pbuf_header: old  new  (-111230)
    tcp_input: packed for LISTENing connection.
    TCP connection request  -> .
    memp_malloc: out of memory in pool 10

    
******************************************************************************

    Does anyone know if this is the reason I can't connect with the client
    and possibly how it can be solved?

    Best regards,

    Hampus



    _______________________________________________
    lwip-users mailing list
    address@hidden <mailto:address@hidden>
    http://lists.nongnu.org/mailman/listinfo/lwip-users



------------------------------------------------------------------------

_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users





reply via email to

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