[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #19347] netif_add & tcpip_init problem
From: |
Frédéric Bernon |
Subject: |
[lwip-devel] [bug #19347] netif_add & tcpip_init problem |
Date: |
Tue, 20 Mar 2007 08:20:32 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 |
Follow-up Comment #1, bug #19347 (project lwip):
A first thing to do will be to initialize in tcpip.c the mbox like this :
static sys_mbox_t mbox = SYS_MBOX_NULL;
and in each tcpip_xxx, check mbox like this :
err_t
tcpip_input(struct pbuf *p, struct netif *inp)
{
struct tcpip_msg *msg;
if (mbox != SYS_MBOX_NULL) {
msg = memp_malloc(MEMP_TCPIP_MSG);
if (msg == NULL) {
pbuf_free(p);
return ERR_MEM;
}
msg->type = TCPIP_MSG_INPUT;
msg->msg.inp.p = p;
msg->msg.inp.netif = inp;
sys_mbox_post(mbox, msg);
}
return ERR_OK;
}
Comments ?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?19347>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/03/19
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem,
Frédéric Bernon <=
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/03/20
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/03/20
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/03/21
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/03/21
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Jonathan Larmour, 2007/03/23
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/03/23
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/03/23
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Jonathan Larmour, 2007/03/27
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/03/27
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Jonathan Larmour, 2007/03/27