Re: [lwip-users] Hardware - level for netif_remove()

2010-05-11 Thread Christian Steffen
Am 11.05.2010 20:42, schrieb Kieran Mansley: Christian: would you like to open a task to ensure this gets properly tracked? Done. Mit freundlichen Grüßen / Best regards Christian Steffen -- +++ Hensel Elektronik GmbH +++ Hinrichsdorfer Straße 7c +++ 18146 Rostock +++ +++ ph

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-11 Thread Kieran Mansley
I think this suggestion of sorting out the mechanism for adding and removing netifs warrants a task on savannah. It seems like it would help in some circumstances and the limited changes necessary would have very ittle impact on code size. Christian: would you like to open a task to ensure this

RE: [lwip-users] Hardware - level for netif_remove()

2010-05-10 Thread Bill Auerbach
True. Add to the netif more function pointers, like init, power_up, power_down, shut_down, etc. I would expect being an embedded systems targeted TCP/IP stack that most applications have one netif. I've never been crazy about netif_add calling init. I would expect the netif to be added already

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-10 Thread Christian Steffen
Hi Simon, Am 08.05.2010 10:30, schrieb goldsi...@gmx.de: Being like that, we could also add another function for low_level_remove() instead of re-using the init function. I think this is a clear and traceable solution. The question is whether many people need it because it adds to the code si

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-09 Thread Christian Steffen
Hi Martin, Am 07.05.2010 17:51, schrieb Martin Persich: I can offer you my version of "ethernetif.c" and "macb.c" file if you want Thank you. I want to accept your offer. Please send the files either to the list or direct to me. Mit freundlichen Grüßen / Best regards Christian Steffen -- +

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-08 Thread goldsi...@gmx.de
Bill Auerbach wrote: Perhaps the function passed to netif_add could take a 2nd argument. Use this in netif_add: /* call user specified initialization function for netif */ if (init(netif,1) != ERR_OK) { return NULL; } And this in netif_remove: /* call user specified initializ

RE: [lwip-users] Hardware - level for netif_remove()

2010-05-07 Thread Bill Auerbach
t;[mailto:lwip-users-bounces+bauerbach=arrayonline@nongnu.org] On >Behalf Of Martin Persich >Sent: Friday, May 07, 2010 11:52 AM >To: Mailing list for lwIP users >Subject: Re: [lwip-users] Hardware - level for netif_remove() > >Hi Christian, >yes, there is missing low-level

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-07 Thread Martin Persich
ment. I can offer you my version of "ethernetif.c" and "macb.c" file if you want. Best Regards Martin Persich - Original Message - From: "Christian Steffen" To: "Mailing list for lwIP users" Sent: Friday, May 07, 2010 5:10 PM Subject: Re: [lwip-users] Hard

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-07 Thread goldsi...@gmx.de
8.0 will be OK ! Best Regards Martin Persich ----- Original Message - From: "Christian Steffen" To: "Mailing list for lwIP users" Sent: Friday, May 07, 2010 7:58 AM Subject: Re: [lwip-users] Hardware - level for netif_remove() I know this function. But this function

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-07 Thread Christian Steffen
s and allows restart of autonegotiation process if ethernet cable is unplugged and then conected to switch with another parameters (speed, FDX/HDX, ...). I believe that version Atmel SF 1.8.0 will be OK ! Best Regards Martin Persich - Original Message - From: "Christian Steffen"

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-07 Thread Martin Persich
th another parameters (speed, FDX/HDX, ...). I believe that version Atmel SF 1.8.0 will be OK ! Best Regards Martin Persich - Original Message - From: "Christian Steffen" To: "Mailing list for lwIP users" Sent: Friday, May 07, 2010 7:58 AM Subject: Re: [lwip-users] Ha

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-07 Thread Christian Steffen
I know this function. But this function don't call any hardware function stubs. When I add an Interface with netif_add() I refer a init routine and a input routine. For the AVR32 Port this are ethernetif_init() and ethernetif_input(). In the netif_remove() is no call to a similar ethernetif_rem

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-06 Thread Martin Velek
Hi, it should be. Check this link - http://www.nongnu.org/lwip/netif_8c.html#9c6e541f0c184e1ea61a5cd8afe3e979 Martin On 6 May 2010 09:21, Christian Steffen wrote: > Hi, > > for my application it's necessary to close the Ethernet hardware. > The initialisation routine is called by netif_add. Is

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-06 Thread Christian Steffen
Sorry for this double post. I was irritated by the lag. I wrote the first Message in the morning, and saw it at the list at 5pm at first. Mit freundlichen Grüßen / Best regards Christian Steffen -- +++ Hensel Elektronik GmbH +++ Hinrichsdorfer Straße 7c +++ 18146 Rostock +++ +++

[lwip-users] Hardware - level for netif_remove()

2010-05-06 Thread Christian Steffen
Hi, for my application it's necessary to close the Ethernet hardware. The initialisation routine is called by netif_add. Is there a responding routine in netif_remove, that I have overlook? I know, the ethernetif.c is a portable file of the AVR32 port and so my problem :) . But the netif.c is

[lwip-users] Hardware - level for netif_remove()

2010-05-06 Thread Christian Steffen
Hi, for my application it's necessary to close the Ethernet hardware. The initialisation routine is called by netif_add. Is there a responding routine in netif_remove, that I have overlook? I know, the ethernetif.c is a portable file of the AVR32 port and so my problem :) . But the netif.c is