Re: [PATCH 0/3] [RFC] Support for ADSL modems
On Tue, 2011-05-10 at 19:25 +0300, Pantelis Koukousoulas wrote: > On Mon, May 9, 2011 at 9:38 PM, Dan Williams wrote: > > On Fri, 2011-05-06 at 14:23 +0300, Pantelis Koukousoulas wrote: > >> Hi, before I leave for FOSSCOMM.gr, this patch series implements the > >> initial > >> version of the support for ADSL modems in network manager. > >> > >> Notes: > >>* PPPoA-only for now. I hope that PPPoE can be added with not too much > >> trouble > >> as well, if it is possible to just create a new ethernet device for > >> the "nas0" > >> interface that br2684ctl creates and reuse the already existing > >> "wired" device > >> PPPoE support. > >> > >> This way the adsl part can manage the ATM part of the equation just > >> like it > >> does now for PPPoA. > > > > Well, the PPPoE bits aren't that complicated, so for now I'd rather > > duplicate them for the ADSL code, and we can re-merge it later. Most of > > the code is simply detecting whether PPPoE should be used, and if so, > > creating a new NMPPPManager object for the interface, then connecting to > > the signals that it provides. > > The thing is that br2684ctl creates a device that is indistinguishable from > an ethernet interface from what I can tell. So, probably udev and netlink > will report it as an ethernet device, NetworkManager will configure it > for PPPoE and everything will be ok? (in theory at least). We'd want to figure out some way of distinguishing that interface from a normal ethernet interface (since it's really not one), maybe by devtype from sysfs, or maybe by the name ("nasX" where of course we can give br2684ctl the -c parameter to specify the 'X' and look for that interface when it shows up). Then when we get a new interface notification for the nasX we can start the PPPoE. The bluetooth DUN code does something like this, except there we actually get told what the exact interface name will be instead of just picking a number. > > But lets get PPPoA working first and PPPoE can come later. > > Agreed, let's wait and see how it will work in practice. Yeah, sounds good. THanks! Dan ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH 0/3] [RFC] Support for ADSL modems
On Mon, May 9, 2011 at 9:38 PM, Dan Williams wrote: > On Fri, 2011-05-06 at 14:23 +0300, Pantelis Koukousoulas wrote: >> Hi, before I leave for FOSSCOMM.gr, this patch series implements the initial >> version of the support for ADSL modems in network manager. >> >> Notes: >> * PPPoA-only for now. I hope that PPPoE can be added with not too much >> trouble >> as well, if it is possible to just create a new ethernet device for the >> "nas0" >> interface that br2684ctl creates and reuse the already existing "wired" >> device >> PPPoE support. >> >> This way the adsl part can manage the ATM part of the equation just >> like it >> does now for PPPoA. > > Well, the PPPoE bits aren't that complicated, so for now I'd rather > duplicate them for the ADSL code, and we can re-merge it later. Most of > the code is simply detecting whether PPPoE should be used, and if so, > creating a new NMPPPManager object for the interface, then connecting to > the signals that it provides. The thing is that br2684ctl creates a device that is indistinguishable from an ethernet interface from what I can tell. So, probably udev and netlink will report it as an ethernet device, NetworkManager will configure it for PPPoE and everything will be ok? (in theory at least). > But lets get PPPoA working first and PPPoE can come later. Agreed, let's wait and see how it will work in practice. Pantelis ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH 0/3] [RFC] Support for ADSL modems
On Fri, 2011-05-06 at 14:23 +0300, Pantelis Koukousoulas wrote: > Hi, before I leave for FOSSCOMM.gr, this patch series implements the initial > version of the support for ADSL modems in network manager. > > Notes: >* PPPoA-only for now. I hope that PPPoE can be added with not too much > trouble > as well, if it is possible to just create a new ethernet device for the > "nas0" > interface that br2684ctl creates and reuse the already existing "wired" > device > PPPoE support. > > This way the adsl part can manage the ATM part of the equation just like > it > does now for PPPoA. Well, the PPPoE bits aren't that complicated, so for now I'd rather duplicate them for the ADSL code, and we can re-merge it later. Most of the code is simply detecting whether PPPoE should be used, and if so, creating a new NMPPPManager object for the interface, then connecting to the signals that it provides. But lets get PPPoA working first and PPPoE can come later. >* This is the "duct tape and gum" implementation, according to the "first > make > it work, then make it work right" motto. There are lots of > bugs/limitations > duplicate code etc but at least it works for me (TM) now :P > >* My initial patch that added everything at once got bounced for moderation > due to its size, so (for size and easier reviewing reasons) I split it to > 3 patches, in a bisect-friendly way (after each patch, NM builds and does > something useful) > >* I 'm now happily waiting for your comments / advice / testing etc :) :) More comments in reply to the patches themselves... THanks! Dan > Cheers, > Pantelis > > Pantelis Koukousoulas (3): > Settings and initial "scaffolding" > Carrier Handling and PPP support > Add libnm-glib and nmcli code > > cli/src/connections.c| 66 - > cli/src/devices.c|4 + > cli/src/settings.c | 50 > cli/src/settings.h |2 + > include/NetworkManager.h | 19 +- > introspection/Makefile.am|1 + > introspection/nm-device-adsl.xml | 15 + > libnm-glib/Makefile.am |6 + > libnm-glib/libnm-glib.ver|4 +- > libnm-glib/nm-device-adsl.c | 236 +++ > libnm-glib/nm-device-adsl.h | 62 > libnm-glib/nm-device.c | 10 +- > libnm-util/Makefile.am |2 + > libnm-util/libnm-util.ver| 12 +- > libnm-util/nm-connection.c | 25 ++- > libnm-util/nm-connection.h |2 + > libnm-util/nm-setting-adsl.c | 476 ++ > libnm-util/nm-setting-adsl.h | 97 ++ > src/Makefile.am |6 + > src/nm-device-adsl.c | 596 > ++ > src/nm-device-adsl.h | 60 > src/nm-udev-manager.c| 48 +++- > src/ppp-manager/nm-ppp-manager.c | 31 ++- > src/settings/nm-settings.c |2 + > 24 files changed, 1804 insertions(+), 28 deletions(-) > create mode 100644 introspection/nm-device-adsl.xml > create mode 100644 libnm-glib/nm-device-adsl.c > create mode 100644 libnm-glib/nm-device-adsl.h > create mode 100644 libnm-util/nm-setting-adsl.c > create mode 100644 libnm-util/nm-setting-adsl.h > create mode 100644 src/nm-device-adsl.c > create mode 100644 src/nm-device-adsl.h > ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH 0/3] [RFC] Support for ADSL modems
On Fri, 2011-05-06 at 11:58 -0300, José Queiroz wrote: > > > 2011/5/6 Pantelis Koukousoulas > Hi, before I leave for FOSSCOMM.gr, this patch series > implements the initial > version of the support for ADSL modems in network manager. > > Notes: > * PPPoA-only for now. I hope that PPPoE can be added with > not too much trouble > as well, if it is possible to just create a new ethernet > device for the "nas0" > interface that br2684ctl creates and reuse the already > existing "wired" device > PPPoE support. > > This way the adsl part can manage the ATM part of the > equation just like it > does now for PPPoA. > > * This is the "duct tape and gum" implementation, according > to the "first make > it work, then make it work right" motto. There are lots of > bugs/limitations > duplicate code etc but at least it works for me (TM) > now :P > > * My initial patch that added everything at once got bounced > for moderation > due to its size, so (for size and easier reviewing > reasons) I split it to > 3 patches, in a bisect-friendly way (after each patch, NM > builds and does > something useful) > > * I 'm now happily waiting for your comments / advice / > testing etc :) :) > > > Hi, > > Maybe this can be a little off-topic, but is there any intent to add > support to PPPoE over wifi? Yes, it's planned but we need a bit of internal re-architecture to handle it. Dan ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH 0/3] [RFC] Support for ADSL modems
> Maybe this can be a little off-topic, but is there any intent to add support > to PPPoE over wifi? Maybe it is working already? When reading the source I think I saw that wired is not required for PPPoE, but maybe I read wrong ... Nevertheless, as an answer to this patch series it is indeed off topic, please continue in a new thread :) Pantelis ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH 0/3] [RFC] Support for ADSL modems
2011/5/6 Pantelis Koukousoulas > Hi, before I leave for FOSSCOMM.gr, this patch series implements the > initial > version of the support for ADSL modems in network manager. > > Notes: > * PPPoA-only for now. I hope that PPPoE can be added with not too much > trouble > as well, if it is possible to just create a new ethernet device for the > "nas0" > interface that br2684ctl creates and reuse the already existing "wired" > device > PPPoE support. > > This way the adsl part can manage the ATM part of the equation just > like it > does now for PPPoA. > > * This is the "duct tape and gum" implementation, according to the "first > make > it work, then make it work right" motto. There are lots of > bugs/limitations > duplicate code etc but at least it works for me (TM) now :P > > * My initial patch that added everything at once got bounced for > moderation > due to its size, so (for size and easier reviewing reasons) I split it > to > 3 patches, in a bisect-friendly way (after each patch, NM builds and > does > something useful) > > * I 'm now happily waiting for your comments / advice / testing etc :) :) > > Hi, Maybe this can be a little off-topic, but is there any intent to add support to PPPoE over wifi? ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
[PATCH 0/3] [RFC] Support for ADSL modems
Hi, before I leave for FOSSCOMM.gr, this patch series implements the initial version of the support for ADSL modems in network manager. Notes: * PPPoA-only for now. I hope that PPPoE can be added with not too much trouble as well, if it is possible to just create a new ethernet device for the "nas0" interface that br2684ctl creates and reuse the already existing "wired" device PPPoE support. This way the adsl part can manage the ATM part of the equation just like it does now for PPPoA. * This is the "duct tape and gum" implementation, according to the "first make it work, then make it work right" motto. There are lots of bugs/limitations duplicate code etc but at least it works for me (TM) now :P * My initial patch that added everything at once got bounced for moderation due to its size, so (for size and easier reviewing reasons) I split it to 3 patches, in a bisect-friendly way (after each patch, NM builds and does something useful) * I 'm now happily waiting for your comments / advice / testing etc :) :) Cheers, Pantelis Pantelis Koukousoulas (3): Settings and initial "scaffolding" Carrier Handling and PPP support Add libnm-glib and nmcli code cli/src/connections.c| 66 - cli/src/devices.c|4 + cli/src/settings.c | 50 cli/src/settings.h |2 + include/NetworkManager.h | 19 +- introspection/Makefile.am|1 + introspection/nm-device-adsl.xml | 15 + libnm-glib/Makefile.am |6 + libnm-glib/libnm-glib.ver|4 +- libnm-glib/nm-device-adsl.c | 236 +++ libnm-glib/nm-device-adsl.h | 62 libnm-glib/nm-device.c | 10 +- libnm-util/Makefile.am |2 + libnm-util/libnm-util.ver| 12 +- libnm-util/nm-connection.c | 25 ++- libnm-util/nm-connection.h |2 + libnm-util/nm-setting-adsl.c | 476 ++ libnm-util/nm-setting-adsl.h | 97 ++ src/Makefile.am |6 + src/nm-device-adsl.c | 596 ++ src/nm-device-adsl.h | 60 src/nm-udev-manager.c| 48 +++- src/ppp-manager/nm-ppp-manager.c | 31 ++- src/settings/nm-settings.c |2 + 24 files changed, 1804 insertions(+), 28 deletions(-) create mode 100644 introspection/nm-device-adsl.xml create mode 100644 libnm-glib/nm-device-adsl.c create mode 100644 libnm-glib/nm-device-adsl.h create mode 100644 libnm-util/nm-setting-adsl.c create mode 100644 libnm-util/nm-setting-adsl.h create mode 100644 src/nm-device-adsl.c create mode 100644 src/nm-device-adsl.h -- 1.7.4.1 ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list