Commit Graph

7207 Commits

Author SHA1 Message Date
Dan Winship
fc8e609784 Initial IPv6 support (only handles "manual" and "ignore" currently) 2009-07-29 21:35:01 -04:00
Dan Winship
db2748b545 Add IP6 support to NMNamedManager 2009-07-29 21:35:01 -04:00
Dan Winship
b67b1afb1a Backend IP6 config 2009-07-29 21:34:52 -04:00
Dan Winship
e324f783e2 Fix crash when nm-applet exits 2009-07-29 21:23:36 -04:00
Dan Williams
e7caf09032 dbus: fix formatting of dbus permissions file 2009-07-28 10:07:52 -04:00
Dan Williams
0d69dfe39e libnm-glib: implement new settings interfaces
The old NMExportedConnection was used for both client and server-side classes,
which was a mistake and made the code very complicated to follow.  Additionally,
all PolicyKit operations were synchronous, and PK operations can block for a
long time (ie for user input) before returning, so they need to be async.  But
NMExportedConnection and NMSysconfigConnection didn't allow for async PK ops
at all.

Use this opportunity to clean up the mess and create GInterfaces that both
server and client objects implement, so that the connection editor and applet
can operate on generic objects like they did before (using the interfaces) but
can perform specific operations (like async PK verification of callers) depending
on whether they are local or remote or whatever.
2009-07-23 09:20:52 -04:00
Daniel Drake
8f0652a9f0 core: allow devices to suppress other device's autoconnect
This allows a device (or a companion) to signal that it is not a good
time for a specific device to autoconnect to a network.

The OLPC mesh device will use this to prevent automatic connection
to WLAN networks while the mesh device is active.
2009-07-15 17:22:10 -04:00
Daniel Drake
38afee1e9f wifi: allow wifi scans to be inhibited by other devices
Like the OLPC mesh interface, which uses the same actual MAC & radio
as the OLPC wifi device, and thus when mesh is active the wifi
shouldn't be scanning.
2009-07-15 13:59:18 -04:00
Daniel Drake
3fe8d0eed4 core: allow devices to specify a DHCP anycast address
Relevant only for OLPC at this point; the mesh device uses it to
target DHCP requests at a pre-defined mesh portal anycast address.
2009-07-15 13:53:49 -04:00
Daniel Drake
0f56957b77 core: allow device subclasses to override DHCP timeout 2009-07-15 13:48:28 -04:00
Daniel Drake
14bc75edaa wifi: add 'scanning' property which is TRUE while device is scanning 2009-07-15 13:44:06 -04:00
Dan Williams
b35aa0a022 dhcp: fix dhcp-client-identifier format for dhclient (bgo #588008) 2009-07-14 16:10:38 -04:00
Dan Williams
c867c84ae5 core: fix connection updated/removed signal handling
The DBusGProxy was getting destroyed after all the ListConnections calls
were completed, and thus the dbus match was removed, and the signals
weren't getting reflected back up into NM to be handled.  Fix that by
attaching the DBusGProxy to the NMConnection it represents to ensure it
lives until that NMConnection dies.
2009-07-14 14:43:37 -04:00
Dan Williams
ee49af01d3 vpn: remove debugging leftover 2009-07-14 14:43:21 -04:00
Dan Williams
302c9fcbcc netlink: fix race that caused stale carrier state signals
Found by Ricardo Salveti de Araujo <ricardo.salveti@openbossa.org>

The link cache was updated immediately, but the carrier state signals
were emitted a lot later, when the cache data was already stale.  So
just update the cache at the same time we emit the signals.  The
carrier-state-request stuff wasn't originally converted to deferred
for any netlink-specific reason, just to smooth the initial device
creation process in NM.
2009-07-13 19:40:39 -04:00
Dan Williams
1bb492935a bluetooth: fixes and addition of NMDeviceBt to libnm-glib 2009-07-10 10:45:24 -04:00
Alexander Sack
524ad83bc7 core: fall back to old system-settings config file 2009-07-10 08:14:01 -04:00
Dan Williams
fec407b345 system-settings: resurrect auto-wired-default behavior
Dropped due to time during the udev conversion.
2009-07-09 11:06:31 -04:00
Sjoerd Simons
618697aaab wifi: improve scan result request throttling
Throttle requesting scan results to be at least four seconds, instead
of always forcing a 4 second delay after the first scan.
2009-07-08 12:01:09 -04:00
Dan Williams
be9bc944d4 core: fix setting device type during device creation 2009-07-07 22:25:58 -04:00
Dan Williams
b62ff36e33 core: get rid of nm_device_set_device_type() 2009-07-07 14:57:05 -04:00
Dan Williams
9b8d8fe8df ethernet: remove unused code 2009-07-07 14:39:08 -04:00
Dan Williams
fa2bde265e core: kill nm_print_device_capabilities() 2009-07-07 14:38:55 -04:00
Dan Williams
a0629647e2 core: use NMDevicePrivate everywhere 2009-07-07 14:34:01 -04:00
Dan Williams
3cdb0f6c7a core: add a 'type-desc' property to NMDeviceInterface and use it
instead of littering the code with NM_IS_*.
2009-07-07 14:24:12 -04:00
Witold Sowa
d2e88e27b7 suse: fix return of file descriptor when updating DNS 2009-07-07 12:27:49 -04:00
Dan Williams
9c8e600078 system-settings: let UID 0 bypass PolicyKit for PK < 1.0
PK < 1.0 doesn't work with UID 0 processes that aren't spawned via a
session-manager, and thus don't have the XDG_SESSION_COOKIE in their
environment (which ConsoleKit uses to figure out what session the
caller is in).  But since root could just scribble over the config
files anyway, bypassing PK for UID 0 doesn't meaningfully decrease
security.
2009-07-02 12:46:32 -04:00
Dan Williams
d034b8631b ppp: wait 20 seconds (instead of 15) for PPP connections to come up 2009-07-01 10:38:02 -04:00
Tambet Ingo
810b02121f core: Block until netconfig exits on suse. 2009-06-21 12:53:02 +03:00
Tambet Ingo
f216af1e5d wifi: Allow 63 byte long PSK (Patch from Robert Piasek). 2009-06-19 11:34:56 +03:00
Dan Williams
b1ccf86b87 modem: should be unmanaged by default
The NMManager object now handles correct managed/unmanaged settings for
devices.  Individual device types shouldn't be playing with it.
2009-06-18 14:18:42 -04:00
Dan Williams
c62701f65a modem: get and save modem master device
For later use identifying the actual physical modem device instead
of just one of the modem's ports.
2009-06-18 14:17:35 -04:00
Dan Williams
0e51037076 modem: implement check_connection_compatible for GSM and CDMA 2009-06-18 14:15:53 -04:00
Dan Williams
591a8843b0 modem: add a 'device' property to NMModem representing master modem device
i.e., the USB or PCI or whatever device that owns one or more modem ports
provided by that device.
2009-06-18 14:10:01 -04:00
Dan Williams
c72bf13456 bluetooth: implement check_connection_compatible for BT devices 2009-06-18 10:44:59 -04:00
Dan Williams
b71b1e66c8 rfkill: fix mixed-up soft/hard kill states 2009-06-17 07:24:28 -04:00
Torgny Johansson
904e7f3908 gsm: match NM network modes with updated MM network modes 2009-06-16 09:36:51 -04:00
Dan Williams
daa8d8c9ca supplicant: don't try to give dbus-glib a NULL path on interface removal 2009-06-12 10:31:16 -04:00
Dan Williams
48e7a9eb47 core: fix removal of killswitches on udev events 2009-06-12 10:30:03 -04:00
Dan Williams
c9067d8fed everything: use libgudev instead of HAL; merge NM and nm-system-settings
The only thing that doesn't work yet is the system-settings service's
"auto eth" connections for ethernet devices that don't have an existing
connection.  Might also have issues with unmanaged devices that can't
provide a MAC address until they are brought up, but we'll see.
2009-06-11 00:39:12 -04:00
Dan Williams
69eccdae34 dhcp: clean up DHCP status message format 2009-06-10 22:31:18 -04:00
Dan Williams
01a1bafc1d wifi: remove obsolete code clearing SSID and encryption
Leave it to wpa_supplicant now; if we can't trust the supplicant to
handle this, then we need to fix the supplicant.  It knows better than
us what needs to happen with drivers, and it already clears the
encryption keys anyway.
2009-06-05 12:38:32 -04:00
Dan Williams
f194ca6cff core: fix dbus reconnection by not mixing up GSourceFunc return values
TRUE means continue the timeout, FALSE means remove.  Yay for me.
2009-06-05 11:49:54 -04:00
Dan Williams
f8026260c6 rfkill: port rfkill to libgudev 2009-06-05 01:55:02 -04:00
Dan Williams
b9bdc5da4b hal: find driver for ibmebus-type 'ehea' devices 2009-06-02 18:15:10 -04:00
Bastien Nocera
0f6ed55ef9 core: allow warnings to be fatal with --g-fatal-warnings 2009-05-20 13:03:39 -04:00
Dan Williams
15e64d31ea modem: remove SECRETS_CALLER_HSO_GSM; ModemManager abstracts modems for us
Fixes a bug where if GSM secrets were required, the connection would fail
because they were requested with SECRETS_CALLER_HSO_GSM, but the function
to handle retrieved secrets only expected SECRETS_CALLER_GSM.
2009-05-20 12:30:09 -04:00
Bastien Nocera
f55ed9ffc5 core: don't warn on existing loopback interfaces
This avoids warning on startup when the loopback already exists.
2009-05-20 12:06:43 -04:00
Dan Williams
5e8c86c977 bluetooth: connect/disconnect when device's 'Connected' property changes 2009-05-20 12:05:07 -04:00
Dan Williams
9cbc3150e7 bluetooth: fix usage of dbus_g_proxy_new_for_name()
Probably caused by me not Bastien when merging
7ab907c6bc
2009-05-20 12:03:51 -04:00