[openbeosnetteam] Re: new if_flag IFF_CONNECTED
- From: "Philippe Houdoin" <philippe.houdoin@xxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Mon, 20 Oct 2003 17:06:57 GMT
Waldemar said:
> the pppdial app is finished and the PPPoE module should be working in
> the next few days.
Nice progress!
> 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.
Isn't the purpose of IFF_RUNNING to say "it's running", when IFF_UP say
"this interface is ready to be USED" ?
Why not use:
- IFF_UP to say the "ppp0" interface is enable
- IFF_RUNNING to say the "ppp0" interface is running/opened/connected
to some peer...
I don't see any need here to add another interface flag...
On ppp interfaces *control*, Waldemar wrote:
> I want that PPP connections are:
> 1) created by pppdial
> and
> 2) destroyed and queried by ifconfig
>
And BGA added:
> 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".
Please, interfaces creation and destruction, when this isn't managed
fully automaticly like with loopback and generic ethernet interfaces,
should be done in the same place.
As I can't think how ifconfig could know how to create/delete correctly
a new PPP interface, I better like
that only pppdial tool deal with these tasks.
However, ifconfig isn't about creating/deleting interfaces but
configuring/monitoring them...
So, even if a "ppp0" interface is not connected/running yet, she should
show up in ifconfig interfaces list, as that's a existing interface in
the stack...
So, sorry guys, I disagree with both of you ;-)
-Philippe
--
Fortune Cookie Says:
Pure drivel tends to drive ordinary drivel off the TV screen.
- Follow-Ups:
- [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- From: Waldemar Kornewald
- References:
- [openbeosnetteam] new if_flag IFF_CONNECTED
- From: Waldemar Kornewald
Other related posts:
- » [openbeosnetteam] new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- » [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- [openbeosnetteam] Re: new if_flag IFF_CONNECTED
- From: Waldemar Kornewald
- [openbeosnetteam] new if_flag IFF_CONNECTED
- From: Waldemar Kornewald