[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] tcp_new() returns NULL
From: |
Chris Frost |
Subject: |
[lwip-users] tcp_new() returns NULL |
Date: |
Wed, 1 Dec 2004 13:25:37 -0800 |
User-agent: |
Mutt/1.3.28i |
In porting lwip I'm starting simple and so am working to listen/connect
over loopback using the raw api. I'm seeing tcp_new() return NULL, because
memp_malloc() returns null, because memp_tab[type] at core/memp.c:203
is NULL. What might cause this?
Before calling tcp_new() I:
- call sem_init, mem_init, memp_init, netif_init, pbuff_init, and tcp_init,
in this order.
- setup the loopback interface:
struct netif nif;
IP4_ADDR(&nif.gw, 127,0,0,1);
IP4_ADDR(&nif.ip_addr, 127,0,0,1);
IP4_ADDR(&nif.netmask, 255,0,0,0);
if((r = loopif_init(&nif)) != ERR_OK)
panic("loopif_init: %d", r);
I don't see an error from loopif_init.
thanks for any thoughts on what I might be missing!
--
Chris Frost | <http://www.frostnet.net/chris/>
-------------+----------------------------------
Public PGP Key:
Email address@hidden with the subject "retrieve pgp key"
or visit <http://www.frostnet.net/chris/about/pgp_key.phtml>
- [lwip-users] tcp_new() returns NULL,
Chris Frost <=
- RE: [lwip-users] tcp_new() returns NULL, Tom C. Barker, 2004/12/01
- Re: [lwip-users] tcp_new() returns NULL, Chris Frost, 2004/12/02
- [lwip-users] tcp_connect is aborted (Was Re: tcp_new() returns NULL), Chris Frost, 2004/12/02
- Re: [lwip-users] tcp_connect is aborted (Was Re: tcp_new() returns NULL), K.J. Mansley, 2004/12/02
- [lwip-users] Speed of LwIP ?, Lasse Madsen, 2004/12/02
- Re: [lwip-users] Speed of LwIP ?, Craig Graham, 2004/12/03
- Re: [lwip-users] Speed of LwIP ?, Christiaan Simons, 2004/12/06
- Re: [lwip-users] Speed of LwIP ?, filter002, 2004/12/13
- Re: [lwip-users] Speed of LwIP ?, Leon Woestenberg, 2004/12/16
- Re: [lwip-users] tcp_connect is aborted (Was Re: tcp_new() returns NULL), Leon Woestenberg, 2004/12/03