
|
[openbeosnetteam]
||
[Date Prev]
[10-2003 Date Index]
[Date Next]
||
[Thread Prev]
[10-2003 Thread Index]
[Thread Next]
[openbeosnetteam] Re: new if_flag IFF_CONNECTED
- From: "Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx>
- To: <openbeosnetteam@xxxxxxxxxxxxx>
- Date: Mon, 20 Oct 2003 12:42:19 +0200
> > As PPP supports dial-on-demand there has to be a flag so that the
> > user knows (when he enters ifconfig -a) which PPP interfaces are
> > really connected and which of them are only pretending to the stack
> > that they are connected.
> > For this I added a new flag IFF_CONNECTED that is only valid if
> > IFF_POINTOPOINT is also set. For IFF_POINTOPOINT ifconfig prints
> > either "CONNECTED" or "DISCONNECTED", depending on the value of the
> > IFF_CONNECTED flag.
>
> Maybe I misunderstood you, but isn't the standar behavior like this:
>
> 1 - If the ppp connection is not created, nothing appears in the
> ifconfig output.
> 2 - If it is created but not up 9connected) it appears in the iconfig
> output as being "down".
> 3 - If it is created and connected , it appears as being "up".
Yes, but does not the stack only send packets to an interface if the flags UP
and RUNNING are set? The PPP interface must simulate a connection that is
connected to the stack to tell it that it may send data. When data is really
sent the interface tries to connect.
How can the user know when an interface is connected if connected and
disconnected PPP dial-on-demand interfaces have the same flags set? ifconfig
would show the same for both and that is not good.
Or am I wrong?
Waldemar
|

|