[Top][All Lists]

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

Re: [lwip-users] Slipif serial deviece selection.

From: Simon Goldschmidt
Subject: Re: [lwip-users] Slipif serial deviece selection.
Date: Tue, 15 Nov 2011 09:24:27 +0100

address@hidden wrote:
> I don't understand what You say, but I'll have a look to git.

netif_init() can be passed a generic argument (void-pointer) that is passed on 
to the netif's init function. I modified slipif_init so that it checks if its 
'arg' is != 0. If so, it interprets it as a pointer to a number that specifies 
the SIO index (passed to sio_open). That way you can write:

u8_t sio_num = 12;
etif_add(&netif, &ipaddr, &netmask, &gw, &sio_num, slipif_init, tcpip_input);

and sio_open() will be called with 'devnum'=12.

> For the time being I'm bypassing completely arguments to sio_* functions.
> I can do it because I currently have just one slip connection.

That's OK as well, no need to modify that if you don't expect to open more than 
one in the future.

> Side question:
> Should I move from 1.4.0 as released to git?
> Would that be more stable?

I wouldn't do so. There have been bugs fixed but we also have introduced much 
new code, so there's always the possibilibty of new bugs that we don't have 
discovered, yet. I've planned to backport the bugfixes to an 1.4.1 branch and 
we wanted to release an RC for this this year, but it's not been done, yet.

NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone

reply via email to

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