Commit Graph

8762 Commits

Author SHA1 Message Date
Dan Williams
2164c14559 ifcfg-rh: use GHashTableIter a bit more 2009-08-12 17:11:07 -05:00
Dan Williams
fb34976ab9 system-settings: remove redundant default methods for update/delete
NMExportedConnection implements these already, and we want the functionality
that it provides, so we don't need to override them here.
2009-08-12 17:10:20 -05:00
Dan Williams
00e1be621e libnm-glib: exported connection fixes
Ensure that updating the connection really sends out the updated signal, and
that trying to update/delete a read-only connection over D-Bus returns an
error.
2009-08-12 17:04:21 -05:00
Dan Winship
fc8661a24c libnm-util: fix verifying METHOD_IGNORE in NMSettingIP6Config 2009-08-12 10:33:21 -04:00
Dan Williams
7dc07202e3 polkit: fix policy for polkit >= 0.92 2009-08-11 16:06:07 -05:00
Dan Williams
549b303e9b libnm-glib: (NMSettingsConnectionInterface) emit 'removed' signal on successful deletion 2009-08-11 15:32:39 -05:00
Dan Williams
d26b436d9e libnm-glib: NMSettingsInterface::add_connection() should take an NMConnection
instead of an NMSettingsConnectionInterface, because we won't always have an
object that implements NMSettingsConnectionInterface.  Plus, since NMConnection
is a prerequisite of NMSettingsConnectionInterface, the NMConnection will
always be there anyway.
2009-08-11 14:12:48 -05:00
Dan Williams
cb0303180d libnm-glib: don't expose NMRemoteConnetions until they are valid
Give them time to get their settings from the remote settings service
first, then let subclasses/users/whatever know about them.
2009-08-11 10:33:13 -05:00
Dan Williams
cff9205ebd libnm-glib: remove redundant Scope and Path properties on NMSettingsConnectionInterface
Since NMSettingsConnectionInterface already has NM_TYPE_CONNECTION as a prerequisite,
which already implements these properties, it's pointless to have them on
NMSettingsConnectionInterface too.
2009-08-11 09:53:34 -05:00
Dan Williams
4fb162e754 libnm-glib: implement stub update & delete functions 2009-08-11 00:11:36 -05:00
Dan Williams
ce7ebaa7f9 libnm-util: ensure NMConnection scope & path can be set on construction 2009-08-11 00:02:05 -05:00
Dan Williams
27d425d853 libnm-glib: fix signal marshaller type 2009-08-11 00:01:53 -05:00
Dan Williams
71507c9fa3 system-settings: fix issues with system settings service property types 2009-08-10 23:52:03 -05:00
Dan Williams
155f19cb2a libnm-glib: don't require a bus connection at construction time 2009-08-10 23:39:08 -05:00
Dan Williams
890866bef9 system-settings: clean up settings service classes
Make NMSettingsService implement most of the NMSettingsInterface
API to make subclasses simpler, and consolidate exporting of
NMExportedConnection subclasses in NMSettingsService instead of
in 3 places.  Make NMSysconfigSettings a subclass of
NMSettingsService and save a ton of code.
2009-08-10 23:25:11 -05:00
Dan Williams
f64354d0cc Merge commit 'origin/master' into polkit1
Conflicts:
	system-settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
2009-08-10 16:27:16 -05:00
Dan Williams
38f732a721 Merge branch 'iscsi' 2009-08-10 15:52:28 -05:00
Dan Williams
0993ea3989 libnm-util: fix DEFAULT_MAP_SIZE; broken by ff88cf12c2 2009-08-10 15:21:16 -05:00
Dan Williams
39feeeb065 introspection: add a few missing files 2009-08-10 11:50:26 -05:00
Dan Williams
1d5a68db74 ifcfg-rh: read iBFT config and convert to NM IPv4 config 2009-08-07 12:13:54 -05:00
Dan Williams
869e57524c core: fix uninitialized variable usage 2009-08-06 15:15:46 -04:00
Dan Williams
78bb1c01b7 core: implement connection assumption
Mark activation requests that contain connections to be assumed,
and use that to short-circuit various parts of the activation
process by not touching various device attributes, since they
are already set up.  Also ensure the device is not deactivated
when it initially becomes managed, because that would kill the
connection we are about to assume.
2009-08-05 18:03:09 -04:00
Daniel Drake
ff88cf12c2 olpc: add mesh device logic and config setting 2009-08-05 16:34:02 -04:00
Dan Williams
4802094985 Merge commit 'origin/master' into iscsi 2009-08-05 15:46:11 -04:00
Dan Williams
4bab33405b ipv6: fix missing introspection file in distcheck 2009-08-04 14:55:22 -04:00
Dan Williams
e9c4a16ea3 Merge commit 'danw-ipv6/ipv6'
Conflicts:
	src/nm-manager.c
2009-08-04 14:18:05 -04:00
Dan Williams
f2eb3dea65 core: base infrastructure for connection assumption
Figure out what connections can be assumed when a device is added,
and on shutdown don't blow away connections that can be assumed on
NM restart.
2009-08-03 17:15:03 -04:00
Dan Williams
a77655df06 core: don't send properties-changed events for internal properties 2009-07-30 10:39:57 -04:00
Dan Winship
e4d03e1f9d manager: fix crash when applets exit
Due to bad refcounting of D-Bus proxies of the connections applets
expose.
2009-07-30 09:27:21 -04:00
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
90bd1ad5cd Install and fix up libnm-util IPv6 config stuff 2009-07-29 21:34:19 -04:00
Dan Winship
e324f783e2 Fix crash when nm-applet exits 2009-07-29 21:23:36 -04:00
Dan Williams
e5347169f6 peap: add GTC as a recognized phase2 method (bgo #565065) (rh #451027) (lp #284211) 2009-07-29 14:08:54 -04:00
Dan Williams
18788a26d3 build: remove duplicate automake bits 2009-07-28 10:14:21 -04:00
Dan Williams
f1d8033044 build: add BT introspection to dist tarball 2009-07-28 10:12:27 -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
b582b4e384 docs: clarify UUID property, document NMSettingCdma 2009-07-12 10:27:10 -04:00
Dan Williams
1bb492935a bluetooth: fixes and addition of NMDeviceBt to libnm-glib 2009-07-10 10:45:24 -04:00