NetworkManager.git
10 years agoipv6: push router advertisement flags to listeners
Dan Williams [Fri, 15 Jan 2010 06:57:51 +0000]
ipv6: push router advertisement flags to listeners

10 years agodhcp: add initial DHCPv6 support (managed mode only)
Dan Williams [Thu, 14 Jan 2010 08:45:10 +0000]
dhcp: add initial DHCPv6 support (managed mode only)

10 years agodhcp: dhclient leasefile and pidfile fixes for IPv6
Dan Williams [Thu, 14 Jan 2010 08:39:58 +0000]
dhcp: dhclient leasefile and pidfile fixes for IPv6

Don't use the same lease and pid files for IPv6 as for IPv4.

10 years agodhcp: add the NMDHCP6Config object
Dan Williams [Thu, 14 Jan 2010 06:30:40 +0000]
dhcp: add the NMDHCP6Config object

10 years agocore: rename some DHCPv4 specific variables
Dan Williams [Thu, 14 Jan 2010 02:06:05 +0000]
core: rename some DHCPv4 specific variables

10 years agocore: simplify DHCP setup and cleanup
Dan Williams [Thu, 14 Jan 2010 01:59:54 +0000]
core: simplify DHCP setup and cleanup

nm_device_set_use_dhcp() and nm_device_get_use_dhcp() were somewhat
confusing and don't really reflect the new DHCP architecture with
NMDHCPClient.  Now that timeout and state signals are specific to
the NMDHCPClient it doesn't make sense to check for DHCP use
in the callbacks for those signals since they'll never get called
if DHCP isn't in use.  We might as well just keep the DHCP manager
around and check whether a DHCP client instance exists when we need
to figure out whether DHCP is in use.

10 years agodhcp: fix dhcp 4/6 mixup
Dan Williams [Thu, 14 Jan 2010 01:59:19 +0000]
dhcp: fix dhcp 4/6 mixup

10 years agodhcp: add DHCPv6 functionality
Dan Williams [Thu, 14 Jan 2010 00:51:20 +0000]
dhcp: add DHCPv6 functionality

10 years agodhcp: actually use runtime-selected DHCP client
Dan Williams [Wed, 13 Jan 2010 07:07:44 +0000]
dhcp: actually use runtime-selected DHCP client

10 years agodhcp: allow runtime DHCP client selection via config file
Dan Williams [Wed, 13 Jan 2010 06:55:24 +0000]
dhcp: allow runtime DHCP client selection via config file

10 years agodhcp: convert dhcp backends to classes
Dan Williams [Wed, 13 Jan 2010 06:09:28 +0000]
dhcp: convert dhcp backends to classes

10 years agodhcp6: genericize DHCP client tracking
Dan Williams [Sat, 9 Jan 2010 01:16:05 +0000]
dhcp6: genericize DHCP client tracking

Since the same interface could be used for both DHCPv4 and DHCPv6 we
can't just use 'iface' for tracking DHCP client lease changes.  Instead
use a generated client ID, and track DHCP events based on the client's
PID instead of interface name.

10 years agodhcp6: add dhclient ipv6 states
Dan Williams [Fri, 8 Jan 2010 23:22:11 +0000]
dhcp6: add dhclient ipv6 states

10 years agolibnm-util: add IPv6 method 'dhcp'
Dan Williams [Fri, 8 Jan 2010 22:57:46 +0000]
libnm-util: add IPv6 method 'dhcp'

10 years agotest: enable IPv6 setting defaults test
Dan Williams [Fri, 8 Jan 2010 22:57:23 +0000]
test: enable IPv6 setting defaults test

10 years agoifcfg-rh: add IPv6 addressing and routes support (rh #523288)
Jirka Klimes [Wed, 6 Jan 2010 01:05:01 +0000]
ifcfg-rh: add IPv6 addressing and routes support (rh #523288)

10 years agolibnm-util: add IPv6 comparison functions
Jirka Klimes [Wed, 6 Jan 2010 00:51:53 +0000]
libnm-util: add IPv6 comparison functions

10 years agorelease: bump version to 0.7.998 (rc2)
Dan Williams [Mon, 4 Jan 2010 23:30:39 +0000]
release: bump version to 0.7.998 (rc2)

10 years agopo: update italian translation (bgo #595673)
Luca Ferretti [Sun, 3 Jan 2010 00:50:27 +0000]
po: update italian translation (bgo #595673)

10 years agoifcfg-rh: add missing testcase
Dan Williams [Fri, 1 Jan 2010 19:58:34 +0000]
ifcfg-rh: add missing testcase

10 years agoifcfg-rh: ensure keys/route files are monitored for changes too
Dan Williams [Wed, 30 Dec 2009 22:30:41 +0000]
ifcfg-rh: ensure keys/route files are monitored for changes too

keys- and route- files weren't passing the should_ignore_file()
check in dir_changed() because should_ignore_file() was only
taking ifcfg- files into account.  Generalize most of the ifcfg name
handling functions so that should_ignore_file() will now handle
all three variants.

Add testcases to ensure that the name handling does what we want
it to, and optimize memory usage of utils_get_ifcfg_name() a bit.

10 years agocore: Fix another crash
Tambet Ingo [Tue, 29 Dec 2009 13:52:36 +0000]
core: Fix another crash

Need to check if the killswitch type has an object filter function
before trying to use it (in other location as well).

10 years agoarch: remove hal dependency from initscript (bgo #605530)
Dan Williams [Tue, 29 Dec 2009 01:01:57 +0000]
arch: remove hal dependency from initscript (bgo #605530)

10 years agocore: fix crash after wake due to 8f4d4c0463d6f101b852afed5117d902c3174e15
Dan Williams [Mon, 28 Dec 2009 21:20:02 +0000]
core: fix crash after wake due to 8f4d4c0463d6f101b852afed5117d902c3174e15

Need to check if the killswitch type has an object filter function
before trying to use it.

10 years agocore: fix reading WWAN state from state file
Dan Williams [Fri, 25 Dec 2009 20:42:44 +0000]
core: fix reading WWAN state from state file

10 years agocore: fix error when parsing state file for WirelessEnabled fails
Dan Williams [Fri, 25 Dec 2009 20:33:02 +0000]
core: fix error when parsing state file for WirelessEnabled fails

Found by Chen Jie <chenj@lemote.com>.

10 years agodispatcher: fix (harmless) memory leak (bgo #585714)
Dan Williams [Thu, 24 Dec 2009 21:55:59 +0000]
dispatcher: fix (harmless) memory leak (bgo #585714)

10 years agoifcfg-rh: remove another unused variable
Dan Williams [Wed, 23 Dec 2009 19:11:30 +0000]
ifcfg-rh: remove another unused variable

10 years agoifcfg-rh: remove unused variables
Dan Williams [Wed, 23 Dec 2009 19:11:11 +0000]
ifcfg-rh: remove unused variables

10 years agosupplicant: remove unused variables
Dan Williams [Wed, 23 Dec 2009 19:10:47 +0000]
supplicant: remove unused variables

10 years agocore: fix possible erroneous warning on auto-ip events
Dan Williams [Wed, 23 Dec 2009 19:10:11 +0000]
core: fix possible erroneous warning on auto-ip events

Remove unused variable too.

10 years agowifi: remove useless assignment
Dan Williams [Wed, 23 Dec 2009 19:09:37 +0000]
wifi: remove useless assignment

10 years agoethernet: remove unused variable
Dan Williams [Wed, 23 Dec 2009 19:09:22 +0000]
ethernet: remove unused variable

10 years agodhcp: clarify ignored variable name
Dan Williams [Wed, 23 Dec 2009 19:08:56 +0000]
dhcp: clarify ignored variable name

10 years agolibnm-util: fix potential crash when encrypting fails
Dan Williams [Wed, 23 Dec 2009 19:08:26 +0000]
libnm-util: fix potential crash when encrypting fails

10 years agolibnm-util: remove unused variable
Dan Williams [Wed, 23 Dec 2009 19:07:50 +0000]
libnm-util: remove unused variable

10 years agomodem: ensure deactivation on disable only happens on disable
Dan Williams [Wed, 23 Dec 2009 10:44:21 +0000]
modem: ensure deactivation on disable only happens on disable

10 years agomodem: fix activation after 1379af271138202d406de585cbdcd491ac11ed01
Dan Williams [Wed, 23 Dec 2009 09:27:47 +0000]
modem: fix activation after 1379af271138202d406de585cbdcd491ac11ed01

Got the return semantics of dbus_g_proxy_end_call() wrong...

10 years agomodem: ensure device is deactivated if the modem is disabled underneath NM
Dan Williams [Wed, 23 Dec 2009 09:23:38 +0000]
modem: ensure device is deactivated if the modem is disabled underneath NM

10 years agomodem: enable modem before connecting if required
Dan Williams [Wed, 23 Dec 2009 08:29:17 +0000]
modem: enable modem before connecting if required

10 years agolibnm-glib: add WWAN enable/disable support
Dan Williams [Wed, 23 Dec 2009 08:22:47 +0000]
libnm-glib: add WWAN enable/disable support

10 years agomanager: add WWAN enable/disable support
Dan Williams [Wed, 23 Dec 2009 08:18:18 +0000]
manager: add WWAN enable/disable support

10 years agomodem: proxy the ModemManager Enabled property
Dan Williams [Wed, 23 Dec 2009 08:09:24 +0000]
modem: proxy the ModemManager Enabled property

10 years agomanager: generalize rfkill operations
Dan Williams [Wed, 23 Dec 2009 08:03:45 +0000]
manager: generalize rfkill operations

So it's easier to support other killswitches like WWAN and WiMAX.

10 years agocore: add statefile support for WWAN devices
Dan Williams [Wed, 23 Dec 2009 07:51:08 +0000]
core: add statefile support for WWAN devices

10 years agoudev: add support for other types of rfkill switches
Dan Williams [Wed, 23 Dec 2009 07:46:06 +0000]
udev: add support for other types of rfkill switches

10 years agocore: generalize interface for enabling/disabling devices
Dan Williams [Wed, 23 Dec 2009 07:36:57 +0000]
core: generalize interface for enabling/disabling devices

We'll use it for WWAN too.

10 years agomodem: fix enable/disable/disconnect flow
Dan Williams [Mon, 21 Dec 2009 19:52:15 +0000]
modem: fix enable/disable/disconnect flow

NM shouldn't really be calling Enable(False) except in response to
direct user requests to turn off WWAN, much like rfkill, since
Enable(False) /is/ essentially rfkill for 3G.  Instead, we should
be powering up the modem before trying to use it, and only
disconnecting after we're done.  Let the user do enable/disable
when they want to.

This also fixes issues with other devices like GPS potentially
using the modem-manager at the same time as NM and ensures that NM
won't punch the modem in the face while GPS is using it.

10 years agosystem-settings: Fix using hostname from DHCP
Tambet Ingo [Tue, 22 Dec 2009 07:11:30 +0000]
system-settings: Fix using hostname from DHCP

When a plugin has hostname capability, it's NULL for hostname means "use
the hostname from DHCP server".

10 years agoifcfg-suse: Clean up, upstream the patch which has been in use for a while
Tambet Ingo [Mon, 21 Dec 2009 10:07:18 +0000]
ifcfg-suse: Clean up, upstream the patch which has been in use for a while

Since openSUSE 11.1 NetworkManager does not support reading yast network
setup. It's for your own good - you either want to use static configuration
(yast) or dynamic (NetworkManager). Mixing the two has never worked very well
and has caused a lot of confusion. The only exception to this is hostname
handling, which is handled by ifcfg-suse plugin.

10 years agoifcfg-rh: handle unquoted passphrases better
Dan Williams [Wed, 16 Dec 2009 21:29:01 +0000]
ifcfg-rh: handle unquoted passphrases better

Before Sept. 2009 the writer may not have properly quoted passphrases,
so handle that.

10 years agoifcfg-rh: fix distcheck and tests after 9e93924cca6c9f5f7fc6819babd9dd2771c1cc03
Dan Williams [Wed, 9 Dec 2009 01:28:51 +0000]
ifcfg-rh: fix distcheck and tests after 9e93924cca6c9f5f7fc6819babd9dd2771c1cc03

Since one test read in a file, wrote it out, and read it in again, we
have to be careful of whether srcdir == builddir or not.  If it doesn't,
then we need to remove the written-out connection file.  If it does, then
we don't want to remove that written-out connection file because it's
tracked by SCM.  Avoid the whole problem by writing it out to a separate
directory that we can always delete it from.

10 years agolibnm-util: client certificate should not be required to set private key (bgo #585570)
Dan Williams [Wed, 9 Dec 2009 00:52:24 +0000]
libnm-util: client certificate should not be required to set private key (bgo #585570)

Not sure what I was thinking originally; there's no way this was
correct in the first place.

10 years agorelease: bump version to 0.7.997
Dan Williams [Mon, 7 Dec 2009 23:11:13 +0000]
release: bump version to 0.7.997

10 years agoifcfg-rh: add routes file support (rh #507307)
Jirka Klimes [Mon, 7 Dec 2009 22:23:26 +0000]
ifcfg-rh: add routes file support (rh #507307)

Add support for reading and writing routes files for ifcfg connections.

10 years agoifcfg-rh: warn when device will be managed due to missing HWADDR (rh #545003)
Dan Williams [Mon, 7 Dec 2009 20:44:21 +0000]
ifcfg-rh: warn when device will be managed due to missing HWADDR (rh #545003)

10 years agoifcfg-rh: treat MODE=Auto as infrastructure mode
Dan Williams [Fri, 4 Dec 2009 19:10:22 +0000]
ifcfg-rh: treat MODE=Auto as infrastructure mode

10 years agocore: use GChecksum (bgo #502494)
Dan Williams [Thu, 3 Dec 2009 18:55:02 +0000]
core: use GChecksum (bgo #502494)

And remove cargo-culted internal stuff which is no longer needed.
The ifcfg-rh sha1 stuff wasn't even used anymore after the move to
certificate paths.

10 years agobuild: bump glib requirement to 2.18 to reflect reality
Dan Williams [Tue, 1 Dec 2009 19:33:44 +0000]
build: bump glib requirement to 2.18 to reflect reality

Already using the 'literal' variants of GError functions extensively.

10 years agoredhat: remove haldaemon dependency from initscript (rh #542078)
Dan Williams [Mon, 30 Nov 2009 18:48:40 +0000]
redhat: remove haldaemon dependency from initscript (rh #542078)

10 years agobuild: fix distcheck
Michael Biebl [Sun, 29 Nov 2009 23:32:45 +0000]
build: fix distcheck

10 years agocore: silence flush_routes() and flush_addresses() warnings
Dan Williams [Tue, 24 Nov 2009 19:19:57 +0000]
core: silence flush_routes() and flush_addresses() warnings

10 years agowifi: poll rfkill status for ipw2x00 devices
Dan Williams [Tue, 24 Nov 2009 18:43:43 +0000]
wifi: poll rfkill status for ipw2x00 devices

The ipw2x00 drivers won't be converted over to the kernel's rfkill
subsystem until 2.6.33, and thus listening for udev rfkill change
events on these devices doesn't work.  So until then, poll rfkill
state for ipw2x00 devices every few seconds in addition to listening
to other rfkill sources.

10 years agolibnm-glib: trivial documentation fixes
Dan Williams [Mon, 23 Nov 2009 23:02:56 +0000]
libnm-glib: trivial documentation fixes

10 years agoppp: increase PPPoE pppd timeout to 30 seconds
Dan Williams [Mon, 23 Nov 2009 07:56:16 +0000]
ppp: increase PPPoE pppd timeout to 30 seconds

Mostly to help debug stuff like (rh #528314) where it's hanging somewhere
in rp-pppoe while trying to connect to the access concentrator.

10 years agowifi: don't allow scan requests when associating
Dan Williams [Sat, 21 Nov 2009 10:48:46 +0000]
wifi: don't allow scan requests when associating

Shouldn't be allowing scan requests when associating or when the
supplicant is otherwise busy doing something else.

Older fullmac cards are much more likely to run into this problem
since they usually take longer to connect; since they take so
long, NM may sometimes request a scan during association or
during DHCP which can cause the card to miss DHCP replies.  I've
never seen this happen with mac80211 drivers though.

10 years agowifi: ensure wifi devices are enabled on wakeup if not rfkilled
Dan Williams [Fri, 20 Nov 2009 17:11:46 +0000]
wifi: ensure wifi devices are enabled on wakeup if not rfkilled

Since rfkill state is saved but not acted upon during sleep
(since NM shouldn't be touching devices while sleeping) we have to
remember to act on the new state when waking up.

10 years agolibnm-util: handle PEM files without an ending newline (rh #507315)
Dan Williams [Thu, 19 Nov 2009 00:29:48 +0000]
libnm-util: handle PEM files without an ending newline (rh #507315)

Due to an off-by-one bug if the ending PEM tag was the last thing
in the file, it would get missed.  Add some testcases for that too.

10 years agosystem-settings: cache secrets to protect against nm_connection_clear_secrets()
Dan Williams [Tue, 17 Nov 2009 00:48:59 +0000]
system-settings: cache secrets to protect against nm_connection_clear_secrets()

3rd patch in a series with:
0bbdc6b0fc3ca7425bb4e289571b014561b609d1
b135fa3265d1d684a93cb554a4c3f4690962f773

With NM 0.8 the system settings service was integrated into NM and
thus nm_connection_clear_secrets() acts directly on the system
settings plugins' NMConnection objects.  So when NM cleared secrets
(for example after determining that they might be bad in a device's
stage2 handler), we completely lost the secrets forever.

With this commit, the secrets are now cached and updated whenever
the connection is updated, and thus are again available to send to
NetworkManager when needed.

10 years agosystem-settings: generalize nm_sysconfig_connection_update() a bit
Dan Williams [Tue, 17 Nov 2009 00:14:50 +0000]
system-settings: generalize nm_sysconfig_connection_update() a bit

So that it can be the sole location where secrets caching happens.

10 years agosystem-settings: add helper for updating plugin connections
Dan Williams [Mon, 16 Nov 2009 23:51:40 +0000]
system-settings: add helper for updating plugin connections

nm_connection_replace_settings() replaces the connection's settings
but doesn't allow interception of the new settings.  Plugins would then
send out the update signal, but secrets are scrubbed out of them to
ensure secrets aren't leaked out into D-Bus signals.

With NM 0.8 the system settings service was integrated into NM and
thus nm_connection_clear_secrets() acts directly on the system
settings plugins' NMConnection objects.  So when NM cleared secrets
(for example after determining that they might be bad in a device's
stage2 handler), we completely lost the secrets forever.

Adding this function allows the system settings service to hook into
the connection updates when the plugin connection's backing storage
(like config files or whatever) changes and cache the secrets for
use in NMSettingsConnectionInterface get_secrets() requestes.

10 years agodoc: document NMSettingIP6Config
Dan Williams [Mon, 16 Nov 2009 21:53:23 +0000]
doc: document NMSettingIP6Config

10 years agodoc: use consistent wording in the IP4Config documentation
Dan Williams [Mon, 16 Nov 2009 21:37:35 +0000]
doc: use consistent wording in the IP4Config documentation

10 years agodoc: document the IP4Config setting
Dan Williams [Mon, 16 Nov 2009 20:33:27 +0000]
doc: document the IP4Config setting

10 years agodoc: fix up 802.1x setting documentation
Dan Williams [Mon, 16 Nov 2009 19:24:53 +0000]
doc: fix up 802.1x setting documentation

10 years agodhcp: use correct leasefile location on Mandriva
Frederik Himpe [Mon, 16 Nov 2009 06:42:16 +0000]
dhcp: use correct leasefile location on Mandriva

10 years agodnsmasq: VPN DNS fixes
Dan Williams [Sat, 14 Nov 2009 22:42:58 +0000]
dnsmasq: VPN DNS fixes

Turn DHCP and DNS debugging on with NM_DNSMASQ_DEBUG.

Without --strict-order, dnsmasq will round-robin queries which in
the case of VPN connections may result in the query going to the
non-VPN nameserver.  Also, allow dnsmasq to poll resolv.conf for
nameserver updates so that when the default connection changes,
it knows about the new nameservers.

10 years agosystem-settings: fix crash when deleting auto wired connections
Dan Williams [Sat, 14 Nov 2009 19:26:38 +0000]
system-settings: fix crash when deleting auto wired connections

Make it less magical and therefore actually work.

10 years agoifcfg-rh: interpret DEFROUTE as never-default (rh #528281)
Gene Czarcinski [Fri, 13 Nov 2009 22:40:13 +0000]
ifcfg-rh: interpret DEFROUTE as never-default (rh #528281)

Testcases and cleanups by dcbw.

10 years agodoc: generate-setings-spec: don't need to init dbus-glib
Dan Williams [Fri, 13 Nov 2009 19:53:23 +0000]
doc: generate-setings-spec: don't need to init dbus-glib

10 years agodoc: add missing property type
Dan Williams [Thu, 12 Nov 2009 16:09:51 +0000]
doc: add missing property type

10 years agoifcfg-rh: ignore .rpmnew files (rh #509621)
Dan Williams [Thu, 12 Nov 2009 01:22:59 +0000]
ifcfg-rh: ignore .rpmnew files (rh #509621)

10 years agowifi: don't fail first scan after supplicant interface is ready
Dan Williams [Thu, 12 Nov 2009 00:34:15 +0000]
wifi: don't fail first scan after supplicant interface is ready

If the supplicant interface became ready but the device was still
UNAVAILABLE, requesting a scan before transitioning to DISCONNECTED
would just fail because can_scan() returns FALSE when the device's
state is not >= DISCONNECTED.  Change device state first so that
doesn't happen.

10 years agodoc: update D-Bus API specification version and dates
Dan Williams [Wed, 11 Nov 2009 22:34:07 +0000]
doc: update D-Bus API specification version and dates

10 years agodoc: document wireless setting properties
Dan Williams [Wed, 11 Nov 2009 22:09:50 +0000]
doc: document wireless setting properties

10 years agodoc: document wireless-security setting properties
Dan Williams [Wed, 11 Nov 2009 22:08:15 +0000]
doc: document wireless-security setting properties

10 years agodoc: document wired setting properties
Dan Williams [Wed, 11 Nov 2009 22:07:42 +0000]
doc: document wired setting properties

10 years agodoc: document vpn setting properties
Dan Williams [Wed, 11 Nov 2009 22:07:25 +0000]
doc: document vpn setting properties

10 years agodoc: document serial setting properties
Dan Williams [Wed, 11 Nov 2009 22:07:14 +0000]
doc: document serial setting properties

10 years agodoc: document pppoe setting properties
Dan Williams [Wed, 11 Nov 2009 22:07:02 +0000]
doc: document pppoe setting properties

10 years agodoc: document ppp setting properties
Dan Williams [Wed, 11 Nov 2009 22:06:48 +0000]
doc: document ppp setting properties

10 years agodoc: document gsm setting properties
Dan Williams [Wed, 11 Nov 2009 22:06:33 +0000]
doc: document gsm setting properties

10 years agodoc: document cdma setting properties
Dan Williams [Wed, 11 Nov 2009 22:06:14 +0000]
doc: document cdma setting properties

10 years agodoc: document olpc-mesh setting properties
Dan Williams [Wed, 11 Nov 2009 21:50:19 +0000]
doc: document olpc-mesh setting properties

10 years agodoc: document bluetooth setting properties
Dan Williams [Wed, 11 Nov 2009 21:50:01 +0000]
doc: document bluetooth setting properties

10 years agodoc: align properties documentation cells to the top
Dan Williams [Tue, 10 Nov 2009 20:37:51 +0000]
doc: align properties documentation cells to the top

10 years agodoc: update some setting properties descriptions
Dan Williams [Tue, 10 Nov 2009 20:36:20 +0000]
doc: update some setting properties descriptions

10 years agodoc: add settings properties documentation generator
Dan Williams [Tue, 10 Nov 2009 20:23:03 +0000]
doc: add settings properties documentation generator

10 years agolibnm-util: add missing nm_setting_olpc_mesh_new()
Dan Williams [Tue, 10 Nov 2009 20:22:45 +0000]
libnm-util: add missing nm_setting_olpc_mesh_new()

10 years agoolpc-mesh: fix device added signal usage
Dan Williams [Tue, 10 Nov 2009 17:06:20 +0000]
olpc-mesh: fix device added signal usage

The object to which the signal is connected is always the first arg.