[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: |
Mon, 02 Apr 2007 14:45:06 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #17, bug #19347 (project lwip):
About LWIP_NETIF_API (which allow to enable code only when you need this part
of the API), I thought the CHANGELOG file was enough, but if not, I will
comment more, to explain the thread-safe problem with these functions if you
want or have to call them at any time...
About a sample, yes, you're right. By example, to stop DHCP client on a
netif, you can write :
...
struct netifapi_msg msg;
msg.type = NETIFAPI_MSG_DHCP_STOP;
msg.netif = my_netif;
if (tcpip_netifapi(&msg)!=ERR_OK) {
/* error handler */
}
...
>Out of interest, why was it necessary to define a new message type rather
than just using/extending the existing API message?
I think you talk about the netconn api? I thought it was better to avoid to
merge "connection api" and "network interface api". "connection api" is
something generic, but "network interface api" is "linked" with the port or
the target. More, it will add more fields in api_msg struct (if we have to
include all netif_add parameters in the struct by example). In 1/ in
comment#15, I even propose to add extra files to separate this part of the
code.
Thank you to comment that...
_______________________________________________________
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, Kieran Mansley, 2007/04/02
- [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/04/02
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/04/02
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Frédéric Bernon, 2007/04/03
- [lwip-devel] [bug #19347] netif_add & tcpip_init problem, Simon Goldschmidt, 2007/04/03