Commit Graph

15047 Commits

Author SHA1 Message Date
Dan Williams
80fdf64b0b Small cleanup
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4140 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-02 17:06:58 +00:00
Dan Williams
57ed51e2fe 2008-10-02 Dan Williams <dcbw@redhat.com>
Patch from Alexander Sack <asac ubuntu com>

	* system-settings/plugins/ifupdown/parser.c
		- Implement more graceful ip4 config parsing for cases where
		  /etc/network/interfaces omits basic ip4 settings, such as gateway etc
		  by using default values



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4139 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-02 13:48:41 +00:00
Dan Williams
64f8dfa0af 2008-10-02 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (device_state_changed): when marking a connection invalid, clear its
			secrets too so that fresh secrets get requested the next time



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4138 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-02 13:21:14 +00:00
Dan Williams
bcd7a1075c Make argument names consistent
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4137 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-02 13:13:21 +00:00
Dan Williams
d83cc33a7f 2008-10-01 Dan Williams <dcbw@redhat.com>
* system-settings/src/dbus-settings.c
		- (nm_sysconfig_settings_init): cache system hostname on startup as
			a fallback if no plugin provides a hostname
		- (get_property): fall back to cached hostname if no plugin provides
			a hostname



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4136 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 22:59:21 +00:00
Dan Williams
8fbf9cfdbc Fix spacing
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4135 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 22:31:53 +00:00
Dan Williams
95798eb451 2008-10-01 Dan Williams <dcbw@redhat.com>
Fix setting value comparison issue that caused some settings to look the
	same when they were really different (rh #464417)

	* libnm-util/nm-param-spec-specialized.c
		- (type_is_fixed_size): return fundamental size of the fixed type too
		- (nm_gvalues_compare_collection): use the fundamental fixed type size
			in the comparison so that the _entire_ fixed type collection gets
			compared rather than just the first 'len1' bytes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4134 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 21:38:23 +00:00
Priit Laes
7d94e978a3 2008-10-01 Priit Laes <plaes at svn dot gnome dot org>
* et.po: Translation updated by Mattias Põldaru

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4133 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 06:32:01 +00:00
Priit Laes
64434ea5e4 2008-10-01 Priit Laes <plaes at svn dot gnome dot org>
* et.po: Translation updated by Mattias Põldaru

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4132 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 06:31:44 +00:00
Priit Laes
704a7eb7eb 2008-10-01 Priit Laes <plaes at svn dot gnome dot org>
* et.po: Translation updated by Mattias Põldaru

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4131 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 06:31:26 +00:00
Priit Laes
97b39e87cb 2008-10-01 Priit Laes <plaes at svn dot gnome dot org>
* et.po: Translation updated by Mattias Põldaru

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4130 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 06:27:09 +00:00
Daniel Nylander
3c807a6782 sv.po: Updated Swedish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4129 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 05:40:45 +00:00
Daniel Nylander
47ef921c13 sv.po: Updated Swedish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4128 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-01 05:40:12 +00:00
Dan Williams
c4f2dc6acf 2008-09-30 Dan Williams <dcbw@redhat.com>
* properties/nm-openvpn-dialog.glade
		- Fix the User and CA certificate entries in Password TLS mode, they
			were swapped with their labels (rh #464765)
		- Move private key password entries below private key chooser
		- Rename "Certificate Password" to "Private key password" since that's
			what they actually are

	* properties/auth-helpers.c
		- (fill_password): s/cert_password/priv_key_password/s
		- (fill_vpn_passwords): fix up for corrected widget names; fix mis-filling
			of pw_tls secret widgets where passwords were reversed
		- (auth_widget_save_secrets): fix up for corrected widget names

	* src/nm-openvpn-service.c
		- s/certpass/priv_key_pass/s becuase that's what it is



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4127 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-30 19:55:16 +00:00
Dan Williams
97f6070cfd 2008-09-30 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (lookup_thread_worker): don't store the idle handler ID becuase the
			idle handler could have already run and freed the LookupThread
			structure



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4126 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-30 16:48:16 +00:00
Tambet Ingo
50f3ec27a2 2008-09-30 Tambet Ingo <tambet@gmail.com>
* src/nm-device.c (nm_device_get_priority): Implement.
	(nm_device_set_ip4_config): Send the device priority to system ip4
	config setter.

	* src/NetworkManagerSystem.c (nm_system_device_set_from_ip4_config):
	Add priority argument and if it's >= 0, set the priority of the network
	route added automatically by netlink (or kernel?).
	(nm_system_device_set_priority): Implement.

	* src/NetworkManagerPolicy.c (get_best_device): Use
	nm_device_get_priority() instead of home-grown version. Revert the
	meaning, best priority is the lowest one.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4125 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-30 15:04:10 +00:00
Michael Biebl
11f71598b7 Do not install the convenience libs.
Make libnm-openvpn-common-gnome.la and libnm-vpnc-common-gnome.la noinst
libs as they shouldn't be installed and linked statically.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4124 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-30 13:09:13 +00:00
Dan Williams
5531fbf2a3 2008-09-29 Dan Williams <dcbw@redhat.com>
* properties/nm-pptp-dialog.glade
		- "Domain" -> "NT Domain" to clarify what it's really for



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4123 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-29 21:27:21 +00:00
Dan Williams
48c0aa1e7c 2008-09-29 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-serivce.c
		- (impl_pptp_service_need_secrets): use the expected Windows-style
			'domain\\username' format, not whatever I made up



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4122 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-29 21:25:08 +00:00
Dan Williams
0b4cd09b18 2008-09-29 Dan Williams <dcbw@redhat.com>
Patch from Robert Buchholz <rbu@gentoo.org>

	* src/nm-openvpn-service.c
		- (openvpn_watch_cb): don't access socket_channel if it doesn't exist
			because openvpn exited before the management socket could be set up



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4121 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-29 21:11:05 +00:00
Dan Williams
453940a799 2008-09-29 Dan Williams <dcbw@redhat.com>
Handle ipw3945 suspend/resume by retrying the GIWRANGE request a few times
	when it returns EAGAIN (rh #362421)

	* src/nm-device-wifi.c
		- (wireless_get_range): try GIWRANGE a few times until the card responds
		- (real_get_generic_capabilities, constructor): use wireless_get_range()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4120 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-29 11:50:43 +00:00
Dan Williams
f1a41c0a8e 2008-09-28 Dan Williams <dcbw@redhat.com>
* src/nm-serial-device.c
	  src/nm-serial-device.h
		- (nm_serial_device_close): stop PPP manager here so that PPP gets
			cleaned at the right times when subclasses close the serial port too
		- (nm_serial_device_send_command): use a default send delay; don't
			spin forever on EAGAIN
		- (get_reply_done, get_reply_got_data, nm_serial_device_get_reply):
			remove, no longer used
		- (find_response): return the matched response if any
		- (nm_serial_device_wait_reply_blocking): wait for a reply but block
			while doing so
		- (wait_for_reply_done): pass the matched response to the callback
		- (wait_for_reply_got_data): save the matched response; simplify timeout
			handling
		- (nm_serial_device_wait_for_reply): make 'responses' and 'terminators'
			const since they never get modified
		- (cleanup_device): split out common cleanup stuff to a new function
		- (real_deactivate_quickly, finalize): use cleanup_device()

	* src/nm-gsm-device.c
		- (modem_get_reply): remove, unused
		- (set_apn): give the card a bit more time to respond
		- (manual_registration_again, schedule_manual_registration_again,
		   manual_registration_response, manual_registration): handle manual
			registration timeouts better by retrying registration a few times
			because cards are a bit slow after CFUN=1
		- (automatic_registration_get_network, get_network_response): use
			modem_wait_for_reply() because it interacts better with the serial
			buffer and does more intelligent matching; need to wait for 'OK'
			rather than just matching terminators
		- (schedule_automatic_registration_again,
		   automatic_registration_response, automatic_registration): retry
			registration a few times on timeout or "searching" because cards
			take a bit to find a network after being powered up with CFUN=1
		- (power_up_response, power_up, init_full_done, enter_pin,
		   check_pin_done): power up the card with CFUN=1 before trying to
			register with the network
		- (init_modem_full, init_modem): use more standard 3G init strings

	* src/nm-hso-gsm-device.c
		- (modem_get_reply): remove, unused
		- (hso_ip4_config_response, real_act_stage3_ip_config_start): use
			modem_wait_for_reply() to match actual responses instead of single
			termination characters; it doesn't leave stuff in the serial buffer
			that might confuse later calls
		- (real_deactivate_quickly): use nm_serial_device_wait_reply_blocking()
			to ensure that the call is really disconnected and not leave extra
			stuff in the serial buffer

	* src/nm-cdma-device.c
		- (power_up_response, power_up, init_done): try Sierra-style modem
			power up before attempting to connect



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4119 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-28 22:55:40 +00:00
Dan Williams
33110acba8 2008-09-27 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-gsm.c
		- (verify): verify GSM network ID



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4118 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-28 03:17:09 +00:00
Dan Williams
a15af58cdd Fix segfault when no domain is specified (caused by incomplete r4107)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4117 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-26 15:02:11 +00:00
Jorge Gonzalez
c45d452214 Updated Spanish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4116 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-26 12:53:45 +00:00
Gabor Kelemen
318e80b3ca 2008-09-25 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4115 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 21:26:51 +00:00
Gabor Kelemen
8f0a433264 Small update
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4114 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 21:19:38 +00:00
Claude Paroz
258a181608 2008-09-25 Claude Paroz <claude@2xlibre.net>
* fr.po: Updated French translation.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4113 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 21:05:33 +00:00
Claude Paroz
e479eee4d4 2008-09-25 Claude Paroz <claude@2xlibre.net>
* fr.po: Updated French translation.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4112 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 20:59:16 +00:00
Claude Paroz
bbc4fffb9e 2008-09-25 Claude Paroz <claude@2xlibre.net>
* fr.po: Updated French translation.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4111 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 20:56:02 +00:00
Gabor Kelemen
d570b9c397 2008-09-25 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4110 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 20:42:41 +00:00
Gabor Kelemen
645b748eb5 2008-09-25 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4109 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 20:16:46 +00:00
Gabor Kelemen
8813272bd7 2008-09-25 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4108 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 19:40:32 +00:00
Dan Williams
0b012b8679 2008-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-service.c
		- (nm_pptp_ppp_service_cache_credentials, impl_pptp_service_need_secrets):
			when a domain is specified, synthesize the username passed to pppd
			as username@domain



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4107 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 17:16:18 +00:00
Dan Williams
dbd1e23f13 2008-09-25 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-gsm.c
	  libnm-util/nm-setting-gsm.h
		- Fix up NM_GSM_NETWORK_* constants to accurately reflect the network
			technology terms (bgo #551361)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4106 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 16:16:52 +00:00
Dan Williams
79256975d1 2008-09-25 Dan Williams <dcbw@redhat.com>
Fix bgo #549401 (inspired by patch from Alexander Sack)

	* src/nm-device-ethernet.c
		- (finish_supplicant_task): clean up scheduled tasks and free memory
		- (remove_supplicant_interface_error_handler): remove the supplicant
			error idle callback too
		- (supplicant_interface_release): rename from supplicant_interface_clean
			to match nm-device-wifi.c; clean up supplicant interface-related
			state tasks when the supplicant interface is disposed of
		- (schedule_state_handler): add scheduled tasks to a list so they can
			be cleaned up later
		- (supplicant_mgr_state_cb_handler, supplicant_iface_state_cb_handler,
		   supplicant_iface_connection_state_cb_handler): use
			finish_supplicant_task() to clean up each completed task
		- (supplicant_iface_connection_error_cb_handler,
		   supplicant_connection_timeout_cb): clear source id when the task is
			complete
		- (supplicant_iface_connection_error_cb): save scheduled task id for
			later cleanup
		- (nm_device_ethernet_dispose): clean up any pending supplicant state
			tasks

	* src/nm-device-wifi.c
		- (finish_supplicant_task): clean up scheduled tasks and free memory
		- (remove_supplicant_interface_error_handler): remove the supplicant
			error idle callback too
		- (supplicant_interface_release): clean up supplicant interface-related
			state tasks when the supplicant interface is disposed of
		- (schedule_state_handler): add scheduled tasks to a list so they can
			be cleaned up later
		- (supplicant_mgr_state_cb_handler, supplicant_iface_state_cb_handler,
		   supplicant_iface_connection_state_cb_handler): use
			finish_supplicant_task() to clean up each completed task
		- (supplicant_iface_connection_error_cb_handler): clear source id when
			the task is complete
		- (supplicant_iface_connection_error_cb): save scheduled task id for
			later cleanup
		- (nm_device_wifi_dispose): clean up any pending supplicant state tasks



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4105 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 10:02:28 +00:00
Ilkka Tuohela
323f61531a Updated Finnish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4104 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 03:11:43 +00:00
Žygimantas Beručka
2afe53c324 2008-09-25 Žygimantas Beručka <zygis@gnome.org>
* lt.po: Updated Lithuanian translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4103 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 22:01:52 +00:00
Žygimantas Beručka
6c71cfaa55 2008-09-25 Žygimantas Beručka <zygis@gnome.org>
* LINGUAS: Added "lt".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4102 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 21:37:12 +00:00
Žygimantas Beručka
0e0b1de96c 2008-09-25 Žygimantas Beručka <zygis@gnome.org>
* LINGUAS: Added "lt".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4101 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 21:36:15 +00:00
Žygimantas Beručka
c3c5a7b9e7 2008-09-25 Žygimantas Beručka <zygis@gnome.org>
* lt.po: Added Lithuanian translation.
        * LINGUAS: Added "lt".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4100 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 21:34:51 +00:00
Žygimantas Beručka
1909c8f899 2008-09-25 Žygimantas Beručka <zygis@gnome.org>
* lt.po: Added Lithuanian translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4099 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 21:19:41 +00:00
Žygimantas Beručka
1ad503497a 2008-09-25 Žygimantas Beručka <zygis@gnome.org>
* lt.po: Added Lithuanian translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4098 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 21:04:23 +00:00
Dan Williams
05f1b0a041 2008-09-24 Dan Williams <dcbw@redhat.com>
* common-gnome/*
	  auth-dialog/Makefile.am
	  properties/Makefile.am
		- Add the keyring helpers that Tambet forgot in the last commit :)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4097 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 19:03:07 +00:00
Daniel Nylander
ec7186d75f sv.po: Updated Swedish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4096 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 16:59:52 +00:00
Dan Williams
e15b737270 Fix possible uninitialized variable
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4095 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 16:49:59 +00:00
Tambet Ingo
7faa88681b 2008-09-24 Tambet Ingo <tambet@gmail.com>
* system-settings/plugins/keyfile/plugin.c: Implement unmanaged_devices
	method and get/set hostname property.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4094 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 15:03:33 +00:00
Tambet Ingo
6ac525267b 2008-09-24 Tambet Ingo <tambet@gmail.com>
* src/supplicant-manager/nm-supplicant-interface.c
	(nm_supplicant_interface_disconnect): Don't increment the reference
	count when disconnecting. The problem is on shutdown, when the replies
	to these commands do not arrive before NM exits, resulting on never
	calling supplicant interface's dispose(), which removes the interface
	from supplicant.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4093 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 11:45:44 +00:00
Tambet Ingo
66767578e1 2008-09-24 Tambet Ingo <tambet@gmail.com>
* properties/nm-openvpn-dialog.glade: Add "show passwords" checkbox.

	* properties/nm-openvpn.c (auth_combo_changed_cb): Change the
	sensitivity of "show passwords" checkbox depending on whether the
	active page has any password entries.

	* properties/auth-helpers.c (fill_password): Add a signal handler for
	"show passwords" checkbox to change the password entry's visibility.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4092 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 08:00:05 +00:00
Tambet Ingo
e582204090 Fix a couple of typos.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4091 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-24 07:24:17 +00:00