Commit Graph

15047 Commits

Author SHA1 Message Date
Dan Williams
bad019a1b5 2007-10-04 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.c
	  libnm-util/nm-connection.h
		- (nm_connection_verify): new function



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2933 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:11:33 +00:00
Dan Williams
6829447903 2007-10-04 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (nm_settings_verify): use #defines when possible rather than strings
		- (setting_connection_verify): ensure that 'name' and 'type' are valid
		- (setting_vpn_verify): tighter validity check on 'service_type'



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2932 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:09:59 +00:00
Dan Williams
27a1a0e95a 2007-10-04 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-settings.c
		- (nm_connection_settings_class_init): provide correct type for argument
			to the Updated signal so that dbus-glib knows how to marshal it



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2931 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:08:08 +00:00
Dan Williams
3874276f91 Ensure the GError is clear before using
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2930 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:07:25 +00:00
Dan Williams
a064cad490 2007-10-03 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-3-ethernet.c
		- (real_get_best_connection): don't create automatic connections
			internally; clients should provide a setting that applies to
			the device with 'autoconnect: True'.  Problem was that these
			internally auto-created connections don't have a proxy or service
			name becuase they weren't created by a settings daemon, and therefore
			clients have no idea what to do with them.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2929 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 18:54:40 +00:00
Dan Williams
fc8130ddd0 2007-10-03 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
	  src/nm-device-802-11-wireless.h
	  introspection/nm-device-802-11-wireless.xml
		- GetActiveNetworks -> GetAccessPoints
		- ActiveNetwork -> ActiveAccessPoint
		- NetworkAdded -> AccessPointAdded
		- NetowrkRemoved -> AccessPointRemoved

	* libnm-glib/nm-device-802-11-wireless.c
	  libnm-glib/nm-device-802-11-wireless.h
		- network-added signal -> access-point-added
		- network-removed signal -> access-point-removed
		- nm_device_802_11_wireless_get_active_network() ->
			nm_device_802_11_wireless_get_active_access_point()
		- nm_device_802_11_wireless_get_network_by_path() ->
			nm_device_802_11_wireless_get_access_point_by_path()
		- nm_device_802_11_wireless_get_networks() ->
			nm_device_802_11_wireless_get_access_points()

	* libnm-glib/libnm-glib-test.c
	  test/nm-tool.c
	  src/NetworkManagerPolicy.c
		- Fixups for Network -> AccessPoint



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2928 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 18:20:35 +00:00
Dan Williams
f9fd8667d1 2007-10-03 Dan Williams <dcbw@redhat.com>
Add a GetActiveConnections() method on the Manager object.

	* src/nm-manager.c
	  src/nm-manager.h
	  introspection/nm-manager.xml
		- (connection_get_settings_cb): keep connection type around too
		- (impl_manager_get_active_connections, add_one_connection_element):
			implement; returns all active connections and what devices they
			apply to

	* libnm-glib/nm-client.c
	  libnm-glib/nm-client.h
	  introspection/nm-manager-client.xml
		- (nm_client_get_devices): GPtrArray elements are allocated and owned
			by the caller; free here to avoid memory leak
		- (nm_client_get_active_connections): implement; return the list of
			active connections
		- (nm_client_free_active_connection_element): implement; free an element
			of the GSList returned by nm_client_get_active_connections()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2927 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 14:48:25 +00:00
Dan Williams
d7f6aa32f9 2007-10-03 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_update_bssid): remove
		- (get_active_ap): new function; find the AP in the scan list which
			matches the current BSSID and SSID of the wireless device
		- (nm_device_802_11_periodic_update): get current AP using
			get_active_ap() and print AP roam messages



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2926 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 13:36:47 +00:00
Dan Williams
39910e16fe Clean up indentation; make implicit errors really errors
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2925 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 13:07:25 +00:00
Dan Williams
694278a5e9 Pass correct manager
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2924 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 02:55:58 +00:00
Dan Williams
b7e5539b8c 2007-10-01 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.h
		- Add a 'timestamp' option to NMSettingConnection
		- Add a UINT64 type

	* libnm-util/nm-setting.c
		- (uint64_to_gvalue): new function
		- (nm_setting_populate_from_hash, nm_setting_hash,
		   default_setting_clear_secrets): handle UINT64 type
		- con_table: add 'timestamp' member



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2923 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 01:50:59 +00:00
Dan Williams
ee3f96cfd9 2007-10-01 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
		- (impl_manager_activate_device): ensure the D-Bus method sends a return
			value when the connection can be activated immediately



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2922 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 01:12:55 +00:00
Dan Williams
84cd0661af 2007-10-01 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device.c
		- (nm_device_class_init): actually tell glib about the carrier-changed
			signal



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2921 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 01:12:14 +00:00
Dan Williams
7cdada8ed2 2007-10-01 Dan Williams <dcbw@redhat.com>
* configure.in
	  src/marshallers/Makefile.am
	  src/marshallers/nm-marshal.list
	  src/marshallers/nm-marshal-main.c
		- Consolidate glib marshallers into one place

	* src/dhcp-manager/Makefile.am
	  src/dhcp-manager/nm-dhcp-manager.c
	  src/supplicant-manager/Makefile.am
	  src/supplicant-manager/nm-supplicant-manager.c
	  src/supplicant-manager/nm-supplicant-interface.c
	  src/ppp-manager/Makefile.am
	  src/ppp-manager/nm-ppp-manager.c
	  src/vpn-manager/Makefile.am
	  src/vpn-manager/nm-vpn-connection.c
	  src/Makefile.am
		- Use consolidated marshallers

	* src/dhcp-manager/nm-dhcp-marshal.list
	  src/dhcp-manager/nm-dhcp-marshal-main.c
	  src/supplicant-manager/nm-supplicant-marshal-main.c
	  src/supplicant-manager/nm-supplicant-marshal.list
	  src/nm-marshal-main.c
	  src/nm-marshal.list
	  src/ppp-manager/nm-ppp-marshal-main.c
	  src/ppp-manager/nm-ppp-marshal.list
	  src/vpn-manager/nm-vpn-marshal-main.c
	  src/vpn-manager/nm-vpn-marshal.list
		- Remove



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2920 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 21:26:13 +00:00
Dan Williams
b947e5449d Add files that I forgot in the last commit
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2919 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 18:05:17 +00:00
Dan Williams
e5b834c1f9 2007-10-01 Dan Williams <dcbw@redhat.com>
* include/NetworkManagerVPN.h
		- define VPN connection state change reason codes

	* src/vpn-manager/Makefile.am
	  src/vpn-manager/nm-vpn-marshal.list
	  src/vpn-manager/nm-vpn-marshal-main.c
		- Add marshallers for StateChanged signal

	* introspection/nm-vpn-connection.xml
		- New Banner property
		- StateChanged signal now includes a 'reason' argument

	* src/vpn-manager/nm-vpn-connection.c
	  src/vpn-manager/nm-vpn-connection.h
		- Add a "Banner" property that contains the returned VPN server login
			banner (if any); valid only in the ACTIVATED state
		- (nm_vpn_connection_set_state, nm_vpn_connection_disconnect): now takes
			a 'reason' argument and emits that reason along with the
			state-changed signal
		- Fix up calls to nm_vpn_connection_set_state() to include a reason
		- (nm_vpn_connection_ip4_config_get): save banner for later
		- (nm_vpn_connection_get_banner, get_property,
		   nm_vpn_connection_class_init): implement Banner property

	* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_connections_stop): take a reason argument; copy the
			connection list because elements may get added/removed from it
			while iterating over the list
		- (connection_state_changed): signal now includes the 'reason' argument

	* libnm-glib/nm-vpn-connection.c
	  libnm-glib/nm-vpn-connection.h
		- (nm_vpn_connection_get_banner): new function
		- (state_changed_proxy): handle reason argument



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2916 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 17:57:36 +00:00
Tambet Ingo
485bcfe571 2007-09-28 Tambet Ingo <tambet@gmail.com>
* src/nm-manager.c:
        * src/nm-manager.h:
        Implement device activation through NMManager.
        Implement "pending device activation" here - If the connection
isn't found,
        we try to wait for up to 5 seconds for the connection to be
provided.
        Add NMConnectionType argument to "connection-added" and
"connection-removed"
        signals.
        (nm_manager_get): Remove. Finally.

        * src/nm-activation-request.c: 
        * src/nm-activation-request.h: 
        Remove all the deferred activation code.

        * src/nm-device.c: Remove all the deferred activation code. Once
        * the device
        activation is started, it's started. Update the activation
virtual function
        signature.

        * src/nm-device-interface.c:
        * src/nm-device-interface.h:
        Device activation now takes only NMActRequest argument.
        Don't expose device activation directly on dbus, it's supposed
to go through
        NMManager now.

        * src/NetworkManagerPolicy.c (nm_policy_device_change_check):
        * Make the code
        a bit more compact.
        Use the new device activation methods through NMManager.

        * introspection/nm-manager-client.xml: 
        * introspection/nm-manager.xml: 
        * libnm-glib/nm-client.c:
        * libnm-glib/nm-client.h:
        Add device activation method.
        
        * libnm-glib/nm-device.c: 
        * libnm-glib/nm-device.h: 
        * introspection/nm-device.xml: 
        Remove device activation method. It's done through NMManager
now.

        * src/vpn-manager/nm-vpn-manager.c (impl_vpn_manager_connect):
        * Use the shiny
        new (nm_manager_get_device_by_path) function, get rid of our own
)find_device).



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2915 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 15:38:39 +00:00
Dan Williams
a3e10d7da2 2007-09-28 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-vpn-connection.c
		- (nm_vpn_connection_get_state): try to update state if the current
			state is UNKNOWN



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2914 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-29 03:59:57 +00:00
Dan Williams
6f4a7ae0aa 2007-09-27 Dan Williams <dcbw@redhat.com>
Patch from Bill Nottingham

	* src/supplicant-manager/nm-supplicant-config.c
		- (ADD_STRING_VAL): use correct length for binary blobs when sending
			data to the supplicant



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2913 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-29 03:18:48 +00:00
Jeremy Katz
fd8daa2a04 and adjust what gets substituted
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2912 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-29 00:28:33 +00:00
Chris Aillon
09fa64c92b git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2911 4912f4e0-d625-0410-9fb7-b9a5a253dbdc 2007-09-28 16:01:19 +00:00
Dan Williams
a61ffae29a Warning fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:50:02 +00:00
Dan Williams
592f4cc94d Fix typo
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2909 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:43:08 +00:00
Dan Williams
1e9da36cd6 Warning fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2908 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:21:32 +00:00
Dan Williams
922ce65a28 2007-09-27 Dan Williams <dcbw@redhat.com>
* auth-dialog/main.c
		- Rework password storage to match the GConf semantics of nm-applet
			better.  Also, use generic secrets, not keyring network passwords.
			Keyring network passwords are inappropriate for our usage here.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2907 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 02:52:28 +00:00
Dan Williams
78d654f387 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (nm_vpnc_config_write): turn back on various options that the vpnc
			plugin had before that are used with vpnc 0.3.x



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2906 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 02:03:02 +00:00
Dan Williams
0b054be7b4 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerSystem.c
		- (nm_system_vpn_device_set_from_ip4_config): clean up indentation;
			and all address manipulation here should be happening on the
			_VPN_ device, not the active device



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2905 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 01:43:47 +00:00
Dan Williams
be5c97e72f 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-vpnc-helper.c
		- (addr_list_to_gvalue): list should contain straight guint32s, not
			GValues containing guint32s
		- (main): For Cisco/vpnc, the IP4 PTP address needs to be the same as
			the internal IP4 address



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2904 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 01:36:27 +00:00
Dan Williams
010fc5f3ea Fix indentation; fix DNS server and domain index start numbering (0, not 1)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2903 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 01:34:34 +00:00
Dan Williams
1b245ad655 Don't leak secrets
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2902 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 23:56:29 +00:00
Dan Williams
eac62e5b67 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (real_connect): close vpnc's stdin so it can actually go ahead and
			connect



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2901 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 23:53:50 +00:00
Dan Williams
790c3844a1 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-helper.c
		- (str_to_gvalue, addr_to_gvalue): ensure the GValues are zeroed when
			allocated so that they can be assigned a type later
		- (addr_list_to_gvalue): use a GArray rather than a GSList, dbus-glib
			seems ignorant of GSLists with G_TYPE_UINT elements



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2900 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 14:30:19 +00:00
Dan Williams
b1bd00af07 2007-09-26 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
	  src/nm-manager.h
	  src/nm-activation-request.c
	  src/nm-activation-request.h
		- Move the GetSecrets stuff out of the NMManager instance because it
			doesn't really need to be there and complicates things

	* src/nm-device.c
		- (connection_secrets_failed_cb, device_activation_go): connect to the
			connection-secrets-failed signal and deactivate the device if
			the GetSecrets call fails

	* src/nm-device-802-11-wireless.c
		- (link_timeout_cb, supplicant_connection_timeout_cb,
		   real_act_stage2_config, real_act_stage4_ip_config_timeout): request
			secrets and give correct hints about whether new secrets should be
			asked for by the client or not



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2899 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 04:52:03 +00:00
Dan Williams
63500816c0 2007-09-26 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-connection.c
		- (nm_vpn_connection_set_state, clear_need_auth, finalize,
		   connection_secrets_updated_cb, get_secrets_cb): don't need to attach
			to the secrets-updated signal of the NMConnection since updating
			the secrets is done within the scope of the NMVPNConnection object
			already
		- (get_connection_secrets): fix an uninialized variable usage error



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2898 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 03:06:48 +00:00
Dan Williams
50f2ce4fc8 2007-09-26 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (setting_vpn_properties_update_secrets): implement so VPN secrets
			actually get updated when the user enters them



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2897 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 03:04:22 +00:00
Dan Williams
6e47b9a495 2007-09-26 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-vpn-plugin.c
		- (impl_vpn_plugin_need_secrets): fix logic when no secrets are needed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2896 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 03:03:09 +00:00
Dan Williams
00b8633a3e 2007-09-26 Dan Williams <dcbw@redhat.com>
* include/NetworkManagerVPN.h
		- Add a NEED_AUTH state

	* src/vpn-manager/nm-vpn-connection.c
		- Implement the NEED_AUTH state.  First ask the VPN service plugin if
			the connection needs secrets, and if so, then ask the settings
			service to fill in the secrets.  Then start the connection.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2895 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 02:28:54 +00:00
Dan Williams
36bb36a119 2007-09-26 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-manager.c
		- (new_vpn_error, impl_vpn_manager_connect): set errors



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2894 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 02:24:35 +00:00
Dan Williams
98fb1e171c 2007-09-26 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (real_need_secrets, nm_vpnc_plugin_class_init): implement need_secrets



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2893 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 02:22:40 +00:00
Dan Williams
d7696ae510 2007-09-26 Dan Williams <dcbw@redhat.com>
* introspection/nm-vpn-plugin.xml
	  libnm-glib/nm-vpn-plugin.c
	  libnm-glib/nm-vpn-plugin.h
		- (impl_vpn_plugin_need_secrets): implement a call that should return
			the name of the NMSetting in an NMConnection that may require
			secrets specific to that VPN plugin



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2892 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 02:20:53 +00:00
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
55eab8b023 Fix frequency output in nm-tool
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2885 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-25 18:56:02 +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