Commit graph

1951 commits

Author SHA1 Message Date
Dan Williams
1451b90417 2007-09-26 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
	  src/nm-manager.h
		- (nm_manager_get_connection_secrets): make static, unused outside
			the file
		- Provide NM_MANAGER_CONNECTION_PROXY_TAG for other users



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2891 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 02:18:49 +00:00
Tambet Ingo
571812b40c 2007-09-26 Tambet Ingo <tambet@gmail.com>
* libnm-glib/nm-vpn-plugin.c (nm_vpn_plugin_connect): Update the
        * plugin activation
        method.
        (impl_vpn_plugin_connect): Convert properties hash to
NMConnection, activate, and
        unreference the connection.

        * introspection/nm-vpn-plugin.xml: Modify the 'Connect' method
        * arguments: instead of
        passing properties hash and routes string list, pass
NMConnection (in hashed form).

        * src/vpn-manager/nm-vpn-connection.c
        * (nm_vpn_connection_get_routes): Return routes
        as GSList, no need to copy stuff around anymore.
        (nm_vpn_connection_activate): Update the plugin activation
method.

        * src/NetworkManagerSystem.c
        * (nm_system_vpn_device_set_from_ip4_config): Convert
        routes argument to GSList.

        * vpn-daemons/vpnc/src/nm-vpnc-service.c (real_connect):
        The arguments have changed, update.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2890 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-26 15:42:09 +00:00
Tambet Ingo
95e0ef0922 2007-09-26 Tambet Ingo <tambet@gmail.com>
* src/nm-manager.c (manager_device_state_changed): Listen to
        * device' NEED_AUTH
        state and try to get the secrets.

        * src/NetworkManagerPolicy.c (nm_policy_auto_get_best_device):
        * Get the list of
        connections from NMManager and let the device to choose the best
from the list.
        Since the connection list is sorted by system ones first and
user ones later,
        the devices still prefer system connections like they did
before.
        (deactivate_old_device): Implement. When a device starts
activation, we have a
        policy (for now at least) to deactivate any other device that
might be either
        active or still activating.

        * src/vpn-manager/nm-vpn-manager.c: Add NMManager back to the
        * private structure.
        It's set on construction, there will be no other way to access
it.

        * src/nm-device-802-11-wireless.c: Don't touch NMManager,
        * NMManager can listen to
        device events and drive the device, not the other way around.

        * src/nm-device-802-3-ethernet.c: Ditto.

        * src/nm-device.c (nm_device_get_best_connection): The
        * connections list is now
        sent along, pass it on to virtual functions.

        * src/nm-device-interface.c (nm_device_interface_get_iface):
        * Implement. It's static
        for now, but should really be public instead of
nm_device_get_iface() since iface
        is a property of the DeviceInterface, not Device.
        (impl_device_activate): Don't touch NMManager!




git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2889 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-26 15:38:51 +00:00
Juerg Billeter
eb179bc0ad 2007-09-26 Juerg Billeter <j@bitron.ch>
* initscript/paldo/NetworkManager.in:
	* initscript/paldo/NetworkManagerDispatcher.in:
	* src/backends/NetworkManagerPaldo.c: (nm_system_enable_loopback),
	(nm_system_flush_loopback_routes): update paldo backend


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2888 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-26 11:08:39 +00:00
Tambet Ingo
f1599fe699 2007-09-26 Tambet Ingo <tambet@gmail.com>
* src/nm-device-802-3-ethernet.c (real_get_best_connection):
        * Don't leak NMManager.
        The problem with leaking NMManager is that on shutdown, it
doesn't get destroyed,
        which means none of the devices get brought down properly, which
in turn leaves
        DHCP client running.

        * src/nm-device-802-11-wireless.c (real_get_best_connection):
        * Ditto.
        (supplicant_connection_timeout_cb): Ditto.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2887 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-26 08:46:29 +00:00
Dan Williams
9c2848d56a 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (device_activation_go): small hack to work around race when
			activating deferred connections; should solve this in a better way



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2886 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 19:35:26 +00:00
Dan Williams
04f8d563fa 2007-09-25 Dan Williams <dcbw@redhat.com>
* introspection/nm-device.xml
	  libnm-glib/nm-device.c
	  libnm-glib/nm-device.h
		- Add 'Carrier' property to exported NMDevice objects

	* src/nm-device-interface.h
	  src/nm-device-interface.c
	  src/nm-device.c
		- Add a 'carrier' property to internal NMDevice objects



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2884 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 17:30:01 +00:00
Dan Williams
a8c55157db 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (ap_auth_enforced): also return the encryption status of the AP so
			that callers can differentiate easily between unencrypted APs
			and encrypted ones, in addition to whether the AP has an
			authenticator
		- (link_timeout_cb, supplicant_connection_timeout_cb,
		   real_act_stage4_ip_config_timeout): handle unencrypted APs better,
			previously would request secrets from unencrypted APs at times



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2883 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 17:03:04 +00:00
Dan Williams
e6f7cb13df 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
		- (nm_manager_update_state): new function; updates state and emits
			appropriate signals ensuring a state-change signal for the same state
			never gets emitted twice in a row.
		- (manager_device_state_changed): handle more device state to get a
			better picture of the overall NM state



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2882 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 16:47:53 +00:00
Dan Williams
ae74953a4d 2007-09-25 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-settings.c
	  libnm-glib/nm-settings.h
		- (new_error -> nm_settings_new_error): make public so that subclasses
			can use the same error domain.  Also pass a valid error code to
			g_error_new_literal() so that libdbus doesn't assert when converting
			the GError into a DBusError
		- (impl_settings_list_connections, impl_connection_settings_get_id,
		   impl_connection_settings_get_settings,
		   impl_connection_settings_get_secrets): use new error creator
			function



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2879 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 08:45:31 +00:00
Dan Williams
cb286aac71 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
		- (nm_signal_handler, main): don't ignore SIGTERM/SIGINT during startup



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2878 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 08:23:07 +00:00
Dan Williams
58fff4ce04 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-manager.c
		- (poke_supplicant_cb, nm_supplicant_manager_init,
		   nm_supplicant_manager_dispose, nm_supplicant_manager_name_owner_changed,
		   nm_supplicant_manager_startup): when the supplicant isn't running,
			try to start it periodically via system bus activation.  Fixes
			a problem where if wpa_supplicant goes away, NM gets stuck waiting
			for the supplicant to come back



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2875 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 08:00:40 +00:00
Dan Williams
6e1c10d31b 2007-09-25 Dan Williams <dcbw@redhat.com>
Ensure that old activation requests are forgotten about; previously
	hitting Cancel in the password dialog would deactivate whatever device
	that password was requested for, even if that wasn't the currently
	activating connection.

	* src/nm-manager.c
	  src/nm-manager.h
		- (nm_manager_get_connection_secrets): track the pending call
			object so it can be canceled later if needed
		- (nm_manager_cancel_get_connection_secrets): cancel a pending
			GetSecrets call for a particular connection

	* src/nm-activation-request.c
		- (dispose): cancel any outstanding GetSecrets calls on the
			connection



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2874 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 07:06:28 +00:00
Dan Williams
2366b6c346 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_device_change_check): handle devices that have a
			deferred activation.  These devices are not really active _yet_,
			but need to be treated as such here.  Don't interrupt them
			automatically.

	* src/nm-device-interface.c
		- (impl_device_activate): handle devices that have a deferred activation
			like activating or active devices.  When multiple active devices
			get committed, the device shouldn't be deactivated until the
			connection details are available to avoid DoS and such.  Currently,
			any active, activating, or deferred activation device is deactivated
			here before starting the new activation request.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2873 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 06:34:05 +00:00
Dan Williams
1817c62082 2007-09-25 Dan Williams <dcbw@redhat.com>
Properly re-query secrets from the settings daemon when stuff fails.

	* src/nm-device-802-11-wireless.c
		- (ap_auth_enforced): handle static WEP correctly here by differentiating
			between Shared Key and Open System auth modes
		- (link_timeout_cb, supplicant_connection_timeout_cb,
		   real_act_stage4_ip_config_timeout): clear existing secrets and
			request new ones when something fails due to a suspected wrong key
		- (real_act_stage2_config): fix for new request_new argument to
			nm_manager_get_connection_secrets()

	* src/nm-manager.c
	  src/nm-manager.h
		- (nm_manager_get_connection_secrets): return error status; pass
			new request_new argument on to the settings daemon

	* introspection/nm-settings-connection.xml
		- New 'request_new' argument to the GetSecrets call that hints to the
			settings daemon to ask the user for completely new secrets

	* libnm-glib/nm-settings.c
	  libnm-glib/nm-settings.h
		- (impl_connection_settings_get_secrets): handle new 'request_new'
			argument



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2872 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 06:21:38 +00:00
Dan Williams
008bab498f 2007-09-25 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.c
	  libnm-util/nm-connection.h
		- (nm_connection_clear_secrets): new function; clear secrets out of
			each NMSetting in an NMConnection

	* libnm-util/nm-setting.h
	  libnm-util/nm-setting.c
		- (nm_setting_clear_secrets, default_setting_clear_secrets): clear 
			secrets out of an NMSetting
		- (nm_setting_connection_new, nm_setting_ip4_config_new, 
		   nm_setting_wired_new, nm_setting_wireless_new,
		   nm_setting_wireless_security_new, nm_setting_ppp_new,
		   nm_setting_vpn_new, nm_setting_vpn_properties_new): set clear_secrets
			to default handler default_setting_clear_secrets()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2871 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 06:11:44 +00:00
Dan Williams
a4ab8e22e6 2007-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-activation-request.c
	  src/nm-activation-request.h
		- (nm_act_request_is_deferred): new function



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2870 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 06:07:24 +00:00
Dan Williams
181d130ba9 2007-09-24 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (activation_success_handler): update signal strength immediately
			after activation



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2869 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 04:07:35 +00:00
Dan Williams
192e129734 2007-09-24 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (verify_wep_key): 40-bit WEP keys are 10 bytes long, not 13



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2868 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 04:03:16 +00:00
Dan Williams
490117633c 2007-09-24 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_auto_get_best_device): don't interrupt activation of a
			device by deactivating it because it doesn't have a "best connection".
			Since autoconnect=False connections aren't automatically chosen,
			NM would interrupt activation of such a connection because it
			would never be "best" due to autoconnect=False.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2867 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 21:50:11 +00:00
Dan Williams
44b7179e8c 2007-09-24 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
		- (nm_manager_get_connection_secrets): Add a long timeout so the user
			actually has some time to enter a key before the GetSecrets call
			times out



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2866 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 21:29:53 +00:00
Dan Williams
9496e413c7 2007-09-24 Dan Williams <dcbw@redhat.com>
* introspection/nm-manager.xml
	  src/nm-manager.c
		- (impl_manager_legacy_state): fix 'state' method call return value



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2865 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 21:26:56 +00:00
Matthias Clasen
040038b20e Install nm-tool
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2864 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 18:24:56 +00:00
Dan Williams
1155cd963f 2007-09-24 Dan Williams <dcbw@redhat.com>
Patch from Ross Burton <ross@burtonini.com>

	* test/nm-tool.c
	  callouts/nm-dhcp-client-action.c
	  src/nm-netlink.c
	  src/vpn-manager/nm-vpn-connection.c
	  libnm-glib/libnm-glib-test.c
		- warning fixes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2863 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 14:58:52 +00:00
Dan Williams
336def9492 2007-09-24 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-utils.h
	  libnm-util/nm-utils.c
		- (nm_dbus_send_with_callback_replied, nm_dbus_send_with_callback):
			remove, unused



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2862 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 14:46:05 +00:00
Dan Williams
9be69751f4 2007-09-23 Dan Williams <dcbw@redhat.com>
* vpn-daemons/vpnc/properties/nm-vpnc.c
		- Update for new VPN properties API bits; instead of passing around
			a lot of random things, everything goes into the NMConnection
			object.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2861 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 04:08:02 +00:00
Dan Williams
d9b8a5e30b 2007-09-23 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- Correctly dispose of settings objects if creating them from a hash
			table fails



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2860 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 04:02:52 +00:00
Dan Williams
4a7fb5f0b3 2007-09-23 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (property_value_destroy, nm_setting_vpn_properties_new): initialize
			the hash table in a standard manner.  Clients of libnm-util should
			only call g_hash_table_remove_all(), never destroy the hash table
			and recreate it.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2859 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-24 04:01:24 +00:00
Dan Williams
275dae9e6e 2007-09-22 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (real_bring_up): update signal strength every 6 seconds, not 2.  No
			real reason to do it so often, and reduces wakeups for clients.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2854 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-23 02:25:48 +00:00
Dan Williams
03e118462b 2007-09-21 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (build_supplicant_config): wpa_supplicant requires the option
			key_mgmt=NONE for unencrypted networks
		- (real_act_stage2_config): clarify log message on activation



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2852 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-22 03:25:26 +00:00
Dan Williams
373e43fd11 2007-09-21 Dan Williams <dcbw@redhat.com>
* test/nm-supplicant-test.c
	  test/Makefile.am
		- Remove supplicant test binary; no longer applicable



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2847 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 16:30:53 +00:00
Dan Williams
31327b579f 2007-09-21 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-manager.c
		- (nm_supplicant_manager_init): poke the supplicant at startup to
			activate it on the system bus



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2846 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 16:26:56 +00:00
Dan Williams
42b3ff71be 2007-09-20 Dan Williams <dcbw@redhat.com>
* initscript/RedHat/NetworkManager.in
		- dhcdbd is no longer used, so don't try to start it from the initscripts



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2843 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 03:50:49 +00:00
Dan Williams
0802b101fb 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (nm_device_is_activating): work around a race between auto-activation
			and the user activating the same device that is being auto-activated



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2842 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 03:49:28 +00:00
Dan Williams
ad904cdc49 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/nm-device-interface.c
		- (impl_device_activate): until multiple active device support lands,
			ensure only one device can be active at a time



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2841 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 03:48:00 +00:00
Dan Williams
13a1643995 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-config.c
	  src/supplicant-manager/nm-supplicant-config.h
		- (nm_supplicant_config_add_option): hide secrets from system logs



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2840 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 03:25:41 +00:00
Dan Williams
b6dfbeb71a 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_device_change_check): re-enable the wireless device change
			checking code; insted of checking for SSIDs, check for the same
			connection instead



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2839 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 03:15:47 +00:00
Dan Williams
a8b3aa46da 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (supplicant_iface_connection_state_cb_handler): don't use the card's
			composite link state when determining when to start the disconnection
			timer; that link state is already based on the supplicant interface's
			status which is exactly what's already being examined, plus the link
			state is a conglomeration of various things that we don't want here



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2838 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 03:14:38 +00:00
Dan Williams
8626b35c99 2007-09-20 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-access-point.c
		- (handle_property_changed): strength is a UCHAR



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2837 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 02:06:33 +00:00
Dan Williams
770bee926d 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-config.c
		- (nm_supplicant_config_add_setting_wireless_security): uppercase
			string list keywords too since that's what wpa_supplicant wants



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2836 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 01:26:09 +00:00
Dan Williams
300b9e48eb 2007-09-20 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (convert_strv_to_slist): dupe the values in the list because since
			the list is a boxed value, it'll get destroyed when it's container
			(like a hash table or whatever) gets destroyed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2835 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-21 01:25:11 +00:00
Tambet Ingo
3f19c07885 2007-09-20 Tambet Ingo <tambet@gmail.com>
* libnm-util/nm-setting.h: Change the type of
        * NMSettingVPN->routes to
        GSList.

        * libnm-util/nm-setting.c (setting_vpn_destroy): Free routes
        * too.

        * src/nm-manager.c (connection_get_settings_cb): No need to use
        * weakref,
        just use (g_object_set_data_full).

        * src/vpn-manager/nm-vpn-connection.c
        * (nm_vpn_connection_get_routes): Now
        that NMSettingVPN->routes is a GSList, convert it to char **.
        (nm_vpn_connection_ip4_config_get): Free routes when done.
        (nm_vpn_connection_activate): Ditto.

        * src/nm-device-802-11-wireless.c
        * (real_connection_secrets_updated)
        (real_act_stage2_config): Use defined setting names.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2832 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-20 11:52:51 +00:00
Dan Williams
117cd4d076 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
	  src/nm-manager.c
	  src/nm-manager.h
		- Pass an NMDeviceInterface into nm_manager_get_connection_secrets()
			so that the device can be deactivated if secrets are wrong



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2830 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-20 11:25:47 +00:00
Dan Williams
174d339a34 2007-09-20 Dan Williams <dcbw@redhat.com>
* introspection/nm-settings-connection.xml
	  libnm-glib/nm-settings.c
	  libnm-glib/nm-settings.h
		- Make GetSecrets asynchronous on the server side



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2829 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-20 09:22:42 +00:00
Dan Williams
e6dae7aeed 2007-09-20 Dan Williams <dcbw@redhat.com>
* src/nm-manager.h
	  src/nm-device.c
		- (nm_device_activate): actually check if a given connection
			exists before assuming it doesn't



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2828 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-20 08:05:59 +00:00
Tambet Ingo
6746319495 2007-09-20 Tambet Ingo <tambet@gmail.com>
* libnm-util/nm-connection.c (register_default_creators): Use
        * defined
        setting names. Register NMSettingVPN and NMSettingVPNProperties.

        * libnm-util/nm-setting.c: Define property name strings, use
        * them.
        Implement NMSettingVPN and NMSettingVPNProperties settings.
        Implement NM_S_TYPE_GVALUE_HASH.
        (nm_setting_populate_from_hash): Handle NM_S_TYPE_GVALUE_HASH.
        (setting_connection_verify): Rename 'devtype' property to
'type'.

        * introspection/nm-vpn-manager.xml: Use NMConnection for VPN
        * service
        properties.

        * src/vpn-manager/nm-vpn-service.c: Ditto.

        * src/vpn-manager/nm-vpn-connection.c: Ditto.

        * src/vpn-manager/nm-vpn-manager.c (nm_vpn_manager_connect):
        * Ditto.
        (nm_vpn_manager_new): Remove NMManager argument, it's easy
enough to get.

        * src/nm-device-802-11-wireless.c (find_best_connection): Use
        * defined setting
        names. NMSettingConnection->devtype got renamed to 'type'.

        * src/nm-device-802-3-ethernet.c (find_best_connection):
        (real_get_best_connection): Ditto.

        * src/NetworkManager.c (main): Update the vpn manager creation
        * arguments.

        * libnm-glib/nm-vpn-manager.[ch]: Update.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2826 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-20 06:47:15 +00:00
Dan Williams
d92897393e 2007-09-19 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
	  src/NetworkManagerAP.h
	  introspection/nm-access-point.xml
		- Change strength-changed signal into a properties-changed signal
			for all properties, not just strength.  Export that signal over dbus
			so listeners don't have to poll NM for changes.
		- (nm_ap_export_to_dbus, nm_ap_new): not every NMAccessPoint should
			get exported over D-Bus, so break up the logic and let other bits
			decided when to export the AP
		- (nm_ap_new_from_ap): remove, unused

	* src/nm-device-802-11-wireless.c
		- (merge_scanned_ap): only export APs that are actually on the device
			list, not every AP created internally

	* libnm-glib/nm-access-point.c
	  libnm-glib/nm-access-point.h
		- Cache properties internally and only hit DBus when needed.  Get
			property updates from NM signals



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2825 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-19 20:44:37 +00:00
Dan Williams
7535733df5 2007-09-16 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.c
	  libnm-util/nm-connection.h
		- (nm_connection_for_each_setting_value): new function; iterate over
			each setting's value and call a user-provided function with details
			about that value

	* libnm-util/nm-setting.c
	  libnm-util/nm-setting.h
		- (nm_setting_enumerate_values): new function; enumerate the values
			of a specific NMSetting subclass for a user-provided function with
			details about that value
		- Change wep_tx_keyidx to a uint32
		- Create settings value tables for each setting defining their type,
			key name, offset into the NMSetting subclass' structure, and whether
			they are required and/or a secret
		- (nm_setting_populate_from_hash): generic function to populate an
			NMSetting from a GHash table, make all settings use it
		- (nm_setting_hash): generic function to derive a GHashTable from
			an NMSetting object, make all settings use it



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2823 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-16 12:47:14 +00:00
Dan Williams
40dcb05871 2007-09-14 Dan Williams <dcbw@redhat.com>
Remove unused stuff in libnm-util

	* configure.in
	  libnm-util/Makefile.am
	  libnm-util/cipher-private.h
	  libnm-util/cipher-wep-ascii.c
	  libnm-util/cipher-wep-ascii.h
	  libnm-util/cipher-wep-hex.c
	  libnm-util/cipher-wep-hex.h
	  libnm-util/cipher-wep-passphrase.c
	  libnm-util/cipher-wep-passphrase.h
	  libnm-util/cipher-wpa-psk-hex.c
	  libnm-util/cipher-wpa-psk-hex.h
	  libnm-util/cipher-wpa-psk-passphrase.c
	  libnm-util/cipher-wpa-psk-passphrase.h
	  libnm-util/cipher.c
	  libnm-util/cipher.h
	  libnm-util/dbus-helpers.c
	  libnm-util/dbus-helpers.h
	  libnm-util/gnome-keyring-md5.c
	  libnm-util/gnome-keyring-md5.h
	  libnm-util/sha1.c
	  libnm-util/sha1.h
	  src/nm-device-802-11-wireless.c
	  test/libnm-util/Makefile.am
	  test/libnm-util/test-ciphers.c
	  test/libnm-util/test-dbus-helpers.c
	  test/libnm-util/test-inputs.h
		- Removed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2816 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-15 00:38:42 +00:00
Dan Williams
d9b4ce4d2a 2007-09-14 Dan Williams <dcbw@redhat.com>
* libnm-util/dbus-method-dispatcher.c
	  libnm-util/dbus-method-dispatcher.h
		- Remove, unused



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2814 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-15 00:24:45 +00:00