Commit Graph

8762 Commits

Author SHA1 Message Date
Dan Williams
8f4d4c0463 manager: add WWAN enable/disable support 2009-12-23 01:30:54 -08:00
Dan Williams
a0f732c8cb modem: proxy the ModemManager Enabled property 2009-12-23 01:30:54 -08:00
Dan Williams
5605709e80 manager: generalize rfkill operations
So it's easier to support other killswitches like WWAN and WiMAX.
2009-12-23 01:30:54 -08:00
Dan Williams
843c251d26 core: add statefile support for WWAN devices 2009-12-23 01:30:54 -08:00
Dan Williams
c80b729e77 udev: add support for other types of rfkill switches 2009-12-23 01:30:54 -08:00
Dan Williams
052cf6b2e2 core: generalize interface for enabling/disabling devices
We'll use it for WWAN too.
2009-12-23 01:30:54 -08:00
Dan Williams
7b10ec29a2 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.
2009-12-23 01:30:54 -08:00
Dan Williams
18ca453969 Merge commit 'origin/master' into btdun 2009-12-23 00:30:25 -08:00
Tambet Ingo
d98c431c65 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".
2009-12-22 09:11:30 +02:00
Tambet Ingo
b9ca266d94 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.
2009-12-21 12:07:18 +02:00
Tambet Ingo
75c734f1a9 wimax: Implement WiMAX support 2009-12-18 15:41:27 +02:00
Dan Williams
1e1be1cd57 ifcfg-rh: handle unquoted passphrases better
Before Sept. 2009 the writer may not have properly quoted passphrases,
so handle that.
2009-12-16 13:29:01 -08:00
Dan Williams
c6bf930b1f Merge commit 'origin/master' into btdun 2009-12-15 15:32:48 -08:00
Dan Williams
cbe313b447 ifcfg-rh: fix distcheck and tests after 9e93924cca
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.
2009-12-08 17:28:51 -08:00
Dan Williams
4274edf47d 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.
2009-12-08 16:52:24 -08:00
Dan Williams
30ca263727 release: bump version to 0.7.997 2009-12-07 15:11:13 -08:00
Jirka Klimes
9e93924cca ifcfg-rh: add routes file support (rh #507307)
Add support for reading and writing routes files for ifcfg connections.
2009-12-07 14:23:26 -08:00
Dan Williams
e0fb3125f9 ifcfg-rh: warn when device will be managed due to missing HWADDR (rh #545003) 2009-12-07 12:44:21 -08:00
Dan Williams
96a61a9909 ifcfg-rh: treat MODE=Auto as infrastructure mode 2009-12-04 11:10:22 -08:00
Dan Williams
9c371949bf 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.
2009-12-03 10:55:02 -08:00
Dan Williams
0278884c6b Merge commit 'origin/master' into btdun 2009-12-01 11:44:29 -08:00
Dan Williams
1d2d65151c build: bump glib requirement to 2.18 to reflect reality
Already using the 'literal' variants of GError functions extensively.
2009-12-01 11:33:44 -08:00
Dan Williams
bde54958a9 redhat: remove haldaemon dependency from initscript (rh #542078) 2009-11-30 10:48:40 -08:00
Michael Biebl
1669e3a778 build: fix distcheck 2009-11-29 15:32:45 -08:00
Dan Williams
5d9a367e63 core: silence flush_routes() and flush_addresses() warnings 2009-11-24 11:19:57 -08:00
Dan Williams
e123fcb143 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.
2009-11-24 10:43:43 -08:00
Dan Williams
66994a18a3 libnm-glib: trivial documentation fixes 2009-11-23 15:02:56 -08:00
Dan Williams
830bded555 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.
2009-11-23 00:08:35 -08:00
Dan Williams
6f21e935d6 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.
2009-11-21 02:48:46 -08:00
Dan Williams
f1444bbabe 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.
2009-11-20 09:11:46 -08:00
Dan Williams
15497fd10f 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.
2009-11-18 16:29:48 -08:00
Dan Williams
1151ac2478 system-settings: cache secrets to protect against nm_connection_clear_secrets()
3rd patch in a series with:
0bbdc6b0fc
b135fa3265

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.
2009-11-16 16:48:59 -08:00
Dan Williams
0bbdc6b0fc system-settings: generalize nm_sysconfig_connection_update() a bit
So that it can be the sole location where secrets caching happens.
2009-11-16 16:14:50 -08:00
Dan Williams
b135fa3265 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.
2009-11-16 15:51:40 -08:00
Dan Williams
198f8f48cf doc: document NMSettingIP6Config 2009-11-16 13:53:23 -08:00
Dan Williams
f790fb38c1 doc: use consistent wording in the IP4Config documentation 2009-11-16 13:37:35 -08:00
Dan Williams
960bcb6dfa doc: document the IP4Config setting 2009-11-16 12:33:27 -08:00
Dan Williams
943a85b2d7 doc: fix up 802.1x setting documentation 2009-11-16 11:24:53 -08:00
Frederik Himpe
f4c1a52876 dhcp: use correct leasefile location on Mandriva 2009-11-15 22:42:16 -08:00
Dan Williams
cfb2b72dc6 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.
2009-11-14 14:42:58 -08:00
Dan Williams
50fdbabbcb system-settings: fix crash when deleting auto wired connections
Make it less magical and therefore actually work.
2009-11-14 11:26:38 -08:00
Gene Czarcinski
f7d7b3193d ifcfg-rh: interpret DEFROUTE as never-default (rh #528281)
Testcases and cleanups by dcbw.
2009-11-13 14:40:13 -08:00
Dan Williams
9253d1bc16 doc: generate-setings-spec: don't need to init dbus-glib 2009-11-13 11:53:23 -08:00
Dan Williams
16c18a0c8f doc: add missing property type 2009-11-12 08:09:51 -08:00
Dan Williams
420ea0220c ifcfg-rh: ignore .rpmnew files (rh #509621) 2009-11-11 17:22:59 -08:00
Dan Williams
92db663514 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.
2009-11-11 16:34:15 -08:00
Dan Williams
b94510e3b3 doc: update D-Bus API specification version and dates 2009-11-11 14:34:07 -08:00
Dan Williams
a943ed93a6 doc: document wireless setting properties 2009-11-11 14:09:50 -08:00
Dan Williams
54775f6a64 doc: document wireless-security setting properties 2009-11-11 14:08:15 -08:00
Dan Williams
0539c2b6d2 doc: document wired setting properties 2009-11-11 14:07:42 -08:00