NetworkManager IPv4 routes API changes

2008-08-06 Thread Dan Williams
Hi,

To accommodate custom routes, I've made the following changes to the
D-Bus API for the IPv4 setting:

- There is a new 'ignore-auto-routes' (BOOL) item that when set will
ignore routes returned from DHCP or VPN servers
- The 'ignore-dhcp-dns' item has been renamed 'ignore-auto-dns'
- The 'routes' item is now an array of 4-member uint32 tuples; the new
4th member is 'metric'
- The IP4Config object exported by each Device object while the device
is active has a new 'routes' member that follows the same format as the
'routes' member of the IP4Config setting

Also, the 'vpn' setting's 'routes' member was removed, since that member
is superceded by the ipv4 'routes' member.

These should be the last major planned D-Bus API changes for 0.7.

Dan

[the libnm-glib libnm-util C APIs have also been updated to reflect
these changes]

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: no default route is added

2008-08-06 Thread Dan Williams
On Wed, 2008-08-06 at 16:03 -0400, Grant Williamson wrote:
> Running the latest svn snapshots of networkmanager/applet on F9.
> 
> NetworkManager 3897
> Nm-Applet 824
> 
> Wired connection is established without any issues however, no default 
> route is added.
> i.e.
> I need to run manually "route add default gw x.x.x.x"
> If I however run dhclient eth0 it adds the  gateway correctly, backing 
> out of latest releases  of NM back to svn3675 and route is added when 
> eth0 connects.

Does the DHCP server return a gateway, and is that gateway in the same
subnet as the assigned IP address?

Dan

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


no default route is added

2008-08-06 Thread Grant Williamson

Running the latest svn snapshots of networkmanager/applet on F9.

NetworkManager 3897
Nm-Applet 824

Wired connection is established without any issues however, no default 
route is added.

i.e.
I need to run manually "route add default gw x.x.x.x"
If I however run dhclient eth0 it adds the  gateway correctly, backing 
out of latest releases  of NM back to svn3675 and route is added when 
eth0 connects.


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Problem with Polkit DBUS

2008-08-06 Thread Dan Williams
On Wed, 2008-08-06 at 14:46 +0530, Kiran Kulkarni wrote:
> I am getting that polkit-dbus is not installed. Which package I should 
> install for the polkit-dbus. the output of autgen.sh was
> 
> checking for gmsgfmt... /usr/bin/msgfmt
> checking for xgettext... /usr/bin/xgettext
> checking whether byte ordering is bigendian... no
> checking for /etc/redhat-release... no
> checking for /etc/SuSE-release... no
> checking for /etc/fedora-release... no
> checking for /etc/gentoo-release... no
> checking for /etc/debian_version... yes
> checking for /etc/arch-release... no
> checking for /etc/slackware-version... no
> checking for /etc/frugalware-release... no
> checking for /etc/mandriva-release... no
> checking Linux Wireless Extensions >= 18... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for DBUS... yes
> Your dbus version is 1,1,1.
> checking for GTHREAD... yes
> checking for GLIB... yes
> checking for GMODULE... yes
> checking for GOBJECT... yes
> GIO not found; using private GFileMonitor library
> checking for HAL... yes
> checking for LIBNL... yes
> checking for POLKIT... configure: error: Package requirements 
> (polkit-dbus) were not met:
> 
> No package 'polkit-dbus' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.

Any idea where the PolicyKit .pc files are?  For example, I've got:

/usr/lib/pkgconfig/polkit-dbus.pc
/usr/lib/pkgconfig/polkit-grant.pc
/usr/lib/pkgconfig/polkit.pc

but yours may be installed in /usr/share/pkgconfig or whatever.  The
best way to figure out is to list the files in your PolicyKit devel
package that you've installed (or if you haven't installed the devel
package for PK, do that!), and look for the location of .pc files.  Let
me know where any are.

Dan

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: 56k questions

2008-08-06 Thread Dan Williams
On Tue, 2008-08-05 at 19:38 -0400, Darren Albers wrote:
> On Tue, Aug 5, 2008 at 7:12 PM, Jess Bermudes <[EMAIL PROTECTED]> wrote:
> > First of all, I'd like to thank everyone for their hard work on this
> > project, NM is an awesome tool. This post isn't so much a complaint as
> > it is feedback and an inquiry, so sorry if it comes off harsh.
> >
> > I'm an Ubuntu 8.04 user and occasionally I need to use my Dell
> > laptop's modem because I am not near any wireless or wired
> > connections. After finally getting the drivers up and running, I
> > noticed that using a modem in nm is a little awkward. I have two
> > options: connect to ppp0 and disconnect from ppp0. I'm trying to
> > figure out what was the design decision behind having it that way. I
> > feel like I have no real control over my modem when using nm because I
> > get no feedback about what my modem is doing. As a recent convert to
> > Linux, here's my experience using nm for dialup for the first time:
> >
> > 1. I press connect to ppp0, nothing happens, so I press it again. I'm
> > wondering "hmm, how do I know if it's dialing?" after trying again, a
> > few seconds it starts to dial. I think to myself "that was weird, but
> > oh well, it's working now"
> > 2. After the dialing process and all those classic beeps and boops and
> > screeches that we've all come to love have finished, nothing happens.
> > The icon of nm stays in the disconnected state (two computers with a
> > red [X]) I'm thinking "wait, did it connect or what?"
> > 3. I go to the dialup connections menu in nm and see that my 2 choices
> > are still "connect to ppp0" and "disconnect from ppp0". I open my
> > browser to discover that I do in fact have a connection, but I'm still
> > confused.
> > 4. When I have concluded the use of the internet, I go to "disconnect
> > from ppp0", and once again, I find no indication that it has
> > successfully disconnected.
> >
> > Now, as a little background, I'm a computer science student in
> > college, so if it confused me, I'd hate to be in the situation of
> > other users. And while some of you may suggest that there are other
> > programs out there instead of nm, if nm is the default manager for a
> > distro like ubuntu, then making it as transparent to users as possible
> > is probably a goal.
> >
> > I guess what I'd like to see is some sort of feedback from nm during
> > the use of dialup connections. Are there technical limitations that
> > prevent this, or is it more of a lack of manpower? If I can learn
> > about the situation, then perhaps I may be able to contribute to make
> > nm just as amazing for dialup as it is for wired/wireless connections.
> >
> >  - Jess Bermudes
> > ___
> > NetworkManager-list mailing list
> > NetworkManager-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> >
> 
> Ubuntu 8.04 ships with 0.6.6 which does not have dial-up support so I
> think you are seeing some Ubuntu specific additions.  If I remember
> right what you are seeing is that it just calls the Gnome dialup tools
> rather than network manager doing anything which is why NM shows you
> as disconnected.  I think version 0.7 of Network Manager will have
> much better integrated for modems

To be fair, 0.6.x does have _some_ support for modems, but that
basically just has menu items that call out to ifup.  Since, of course,
ifup is usually a binary or shellscript, you don't get any feedback
because ifup wasn't mean to give feedback in any way except on the
command line.  That's the whole problem with the badly integrated
dial-up support in 0.6.x.

We've got a much better PPP framework in 0.7.  To support dial-up, we'd
need to create some settings for modems that might include "modem
scripts" and such that we pass to pppd for use with chat.  We've got
most of the infrastructure, but the problems are mainly user-interface
issues and how to integrate random modem scripts, since the world of
dial-up is a lot more varied than GSM or CDMA.

Dial-up won't hit 0.7 and it's further back than Bluetooth support, but
I don't think it would be too hard if somebody wanted to pick it up.

Dan

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Problem with Polkit DBUS

2008-08-06 Thread Kiran Kulkarni
I am getting that polkit-dbus is not installed. Which package I should 
install for the polkit-dbus. the output of autgen.sh was


checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether byte ordering is bigendian... no
checking for /etc/redhat-release... no
checking for /etc/SuSE-release... no
checking for /etc/fedora-release... no
checking for /etc/gentoo-release... no
checking for /etc/debian_version... yes
checking for /etc/arch-release... no
checking for /etc/slackware-version... no
checking for /etc/frugalware-release... no
checking for /etc/mandriva-release... no
checking Linux Wireless Extensions >= 18... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DBUS... yes
Your dbus version is 1,1,1.
checking for GTHREAD... yes
checking for GLIB... yes
checking for GMODULE... yes
checking for GOBJECT... yes
GIO not found; using private GFileMonitor library
checking for HAL... yes
checking for LIBNL... yes
checking for POLKIT... configure: error: Package requirements 
(polkit-dbus) were not met:


No package 'polkit-dbus' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list