[openbeosnetteam] Re: new if_flag IFF_CONNECTED

"Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx> wrote:
> Why should the interface not go up immediately (except for dial-on-
> demand)? I mean, > we must ask ourselves what use this would have and 
to the user it would have no use > at all.
> IMHO, the user wants to do one of these:
> 1) dial automatically when needed
> 2) ask me before dialing
> 3) let me dial manually
> 
> 1) and 2) are managed by dial-on-demand. Interfaces for 3) are not 
> created at all. 
> Does the user bother if the interface goes up when it is created? An 
> app that wants to
> dial later SHOULD dial later.
> 
> Could you both please tell me: when is all that needed? I cannot 
> think of any case. It
> will only make more work.

How is that possible? When you create an interface without the IFF_UP 
flag, it shouldn't go up. When you provide it later, it should. When 
you clear that flag, the interface should go down. When you send IFF_UP 
again, it should go online again. It should behave like any other 
interface as well, I can't see how that could be more work as it has to 
implement the standard interface anyway (and connecting/hangup).

Bye,
   Axel.


Other related posts: