Commit graph

1951 commits

Author SHA1 Message Date
Robert Love
dd31354acd 2006-03-27 Robert Love <rml@novell.com>
Patch by Jürg Billeter <j@bitron.ch>:
	* src/nm-logging.c: Add printf modifier to fix warning on 64-bit
	  systems.
	* src/nm-netlink-monitor.c: Include <net/if.h> instead of <linux/if.h>
	  as we prefer glibc over kernel headers, if possible.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1641 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-27 15:20:28 +00:00
Robert Love
b3f938f381 2006-03-27 Robert Love <rml@novell.com>
Patch by Jon Escombe <list@dresco.co.uk>:
	* gnome/applet/nm-gconf-wso.c: Add missing NM_AUTH_TYPE_WPA_EAP case.
	* gnome/applet/nm-gconf-wso-wpa-eap.c: If retrieving the gconf values
	  fail, don't bail out.  We don't expect all of the various WPA-EAP
	  values to be present.
	* src/nm-ap-security.c: We need to match all capabilities for each
	  encryption type, not any one of them.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1640 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-27 15:14:06 +00:00
Robert Love
d64140a66d 2006-03-27 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Revert 2006-03-17 commit and again
	  restart, not reload, ypbind.  Unfortunately there is no superior
	  solution.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1639 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-27 15:05:05 +00:00
Christopher Aillon
ff296fdf61 2006-03-24 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet-notifications.c:
	When displaying a notification, make sure to get rid of the
	previous notification so as to not have competing bubbles,
	and stop leaking the old one.

	* gnome/applet/applet.c:
	* gnome/applet/applet.h:
	Add a new 'notification' member to the applet, and zero it out
	and free it appropriately.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1635 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-24 14:55:40 +00:00
Robert Love
89f9c4a17e 2006-03-23 Robert Love <rml@novell.com>
Patch by j <j@bootlab.org>:
	* gnome/applet/applet.glade: Don't set the invisible_char property,
	  which simply overrides the GTK default.  By and by, this behavior
	  ought to be fixed in Glade.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1633 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-23 15:15:45 +00:00
Robert Love
e11881bccc 2006-03-22 Robert Love <rml@novell.com>
* src/dhcp-manager/nm-dhcp-manager.c: Bump timeout to 45 seconds.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1632 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 21:43:43 +00:00
Robert Love
2edcffb40e 2006-03-22 Robert Love <rml@novell.com>
Bug fix by Timo Hoenig <thoenig@suse.de>:
	* gnome/applet/applet-dbus.c: Let the applet reconnect to DBUS on
	  disconnect.  Otherwise, we have the daemon surviving DBUS restarts
	  and the applet going AWOL.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1630 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 21:17:07 +00:00
Robert Love
a82dd957f6 2006-03-22 Robert Love <rml@novell.com>
* src/dhcp-manager/nm-dhcp-manager.c: Create NM_DHCP_TIMEOUT
	  preprocessor define and use it instead of open-coded the DHCP
	  timeout, which is currently 25 seconds, everywhere.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1629 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 21:08:56 +00:00
Robert Love
db98fe8137 2006-03-22 Robert Love <rml@novell.com>
Implement "Dynamic WEP", which is basically WPA authentication and WEP
	key exchange via WPA, ostensibly providing good security without
	requiring hardware that supports full WPA.  Also, add UI elements to
	allow the user to select the pairwise & group cipher for WPA Enterprise
	networks, too:
	* gnome/applet/applet.glade: Update glade file.
	* gnome/applet/nm-gconf-wso-wpa-eap.c: Serialize and deserialize the
	  key type, too, to and from gconf.
	* gnome/applet/wireless-security-option.c: Add "wpa_eap" parameter to
	  wso_wpa_create_key_type_model(), noting whether we are handling PSK
	  or EAP configuration, and in the latter case add in "Dynamic WEP" if
	  the capabilities match.
	* gnome/applet/wso-private.h: Update wso_wpa_create_key_type_model()'s
	  prototype.
	* gnome/applet/wso-wpa-eap.c: Manage UI elements for the key type and
	  serialize from UI to DBUS.
	* gnome/applet/wso-wpa-psk.c: Cannot fail and always returns at least
	  one element.
	* libnm-util/dbus-helpers.c: Update nmu_security_serialize_wpa_eap(),
	  nmu_security_serialize_wpa_eap_with_cipher(), and
	  nmu_security_deserialize_wpa_eap() to take a "key_type" parameter and
	  serialize/deserialize the key type via DBUS as the new third DBUS
	  parameter.
	* libnm-util/dbus-helpers.h: Update prototypes.
	* src/nm-ap-security-wpa-eap.c: Deserialize the key type from DBUS,
	  too.  If the key type is WEP104, do Dynamic WEP, which means
	  "IEEE8021X" for "key_mgmt".  Also add support for user-specified
	  pairwise and group ciphers (fixes a FIXME).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1628 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 19:52:41 +00:00
Robert Love
2a63ff03ec 2006-03-21 Robert Love <rml@novell.com>
* src/NetworkManagerSystem.c, src/NetworkManagerSystem.h: Add
	  nm_system_get_mtu(), which returns a user-provided or system-mandated
	  MTU value for a given device, if any, or zero if no such value
	  exists.  Add nm_system_set_mtu() to set the MTU for a given device
	  if we have a provided value.
	* src/nm-device.c: Set the MTU of devices.
	* src/backends/NetworkManagerSuSE.c: Read MTU, if any, from sysconfig.
	* src/backends/NetworkManagerDebian.c,
	  src/backends/NetworkManagerGentoo.c,
	  src/backends/NetworkManagerRedHat.c,
	  src/backends/NetworkManagerSlackware.c: Implement stub functions.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1626 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-21 17:57:01 +00:00
Robert Love
f842f234c5 2006-03-21 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Strip hypens from hex key in
	  configuration file.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1625 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-21 15:22:55 +00:00
Robert Love
1a1cda1129 2006-03-17 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Do "rcypbind reload" to send the
	  signal SIGHUP to ypbind, not "rcypbind restart" to physically restart
	  it, in case it is not running in the first place.  We just want its
	  configuration reloaded.  Also, do not "rcypbind stop" on device down.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1615 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-17 18:37:46 +00:00
Robert Love
ebee615101 2006-03-17 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Do "rcypbind reload" to send the
	  signal SIGHUP to ypbind, not "rcypbind restart" to physically restart
	  it, in case it is not running in the first place.  We just want its
	  configuration reloaded.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1614 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-17 15:01:37 +00:00
Robert Love
f8ad81d8bc 2006-03-15 Robert Love <rml@novell.com>
* gnome/applet/applet.glade, gnome/applet/wso-wep-ascii.c,
	  gnome/applet/wso-wep-hex.c, gnome/applet/wso-wep-passphrase.c: The
	  label "WEP 40/128-bit" is inconsistent because the physical key size
	  is 40 or 104-bits, to which a 24-bit initialisation vector is
	  appended, forming a 64 or 128-bit traffic key.  Thus, the label ought
	  to read "40/104" or "64/128".  I do not care much which, but most
	  users think of "silver" and "gold" encryption as 64 and 128-bits, so
	  let's stick with that.  Thus, s/"40/128"/"64/128"/g.  Also, since our
	  WEP passphrase support only handles 128-bit keys, and any future
	  64-bit passphrase support will require a new option (no way to auto-
	  detect the target key size), explicitly label our passphrase support
	  "WEP 128-bit Passphrase".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1608 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-15 20:27:11 +00:00
Robert Love
c7e71729b7 2006-03-15 Robert Love <rml@novell.com>
* src/dhcp-manager/nm-dhcp-manager.c: Do not start dhcdbd, but rely on
	  the system init scripts (or some other mechanism) starting it (or a
	  compatible DBUS service) before NetworkManager runs.  This means that
	  distributions might need to update their init scripts.  This fixes
	  possible races and is quite a bit cleaner.
	* initscript/SUSE/networkmanager.in: Update to start dhcdbd before
	  starting the NetworkManager daemon.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1607 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-15 15:32:37 +00:00
Robert Love
8c10ac7bb9 2006-03-14 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Check that we have a valid AP
	  before adding anything.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1597 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-14 15:31:13 +00:00
Robert Love
7228037fda 2006-03-13 Robert Love <rml@novell.com>
* gnome/vpn-properties/nm-vpn-properties.c: Hide the next page's
	  widgets, too, if they exist, in case the user hit the back button.
	  Fixes a bug where the details page contains the widgets of multiple
	  VPN modules (Novell bug #157048).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1596 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-13 19:43:37 +00:00
Robert Love
84b8e60496 2006-03-13 Robert Love <rml@novell.com>
Patch by Timo Hoenig <thoenig@suse.de>:
	* dispatcher-daemon/NetworkManagerDispatcher.c: Let the dispatcher
	  daemon survive DBUS restarts, too.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1593 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-13 16:57:38 +00:00
Robert Love
681c00f35a rm space
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1588 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-10 20:05:44 +00:00
Robert Love
a771796641 2006-03-10 Robert Love <rml@novell.com>
* gnome/applet/applet.glade: Add toggles to show/obfuscate the
	  passphrase or key.
	* gnome/applet/wso-wep-ascii.c, gnome/applet/wso-wep-hex.c,
	  gnome/applet/wso-wep-passphrase.c, gnome/applet/wso-wpa-eap.c,
	  gnome/applet/wso-wpa-psk.c: Show and obfuscate passphrases and keys
	  in response to "toggled" signal on new toggle.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1586 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-10 16:38:42 +00:00
Robert Love
b368cf5118 2006-03-10 Robert Love <rml@novell.com>
* src/nm-ap-security-wpa-eap.c: Pass fake empty strings for
	  serialization if strings are NULL, lest DBUS get angry.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1585 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-10 14:56:52 +00:00
Robert Love
773048ab8a 2006-03-10 Robert Love <rml@novell.com>
* src/nm-ap-security-wpa-eap.c: Don't log the password.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1582 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-10 14:19:05 +00:00
Robert Love
a0412efe26 mark noreturn
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1580 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-09 21:52:31 +00:00
Robert Love
0968ca13a1 2006-03-09 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Read in WEP and WPA static
	configurations.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1572 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-09 19:35:55 +00:00
Dan Williams
9e3fccf682 2006-03-09 Dan Williams <dcbw@redhat.com>
Track pending call requests in the applet, and report how many are
	outstanding, and how long each completed one takes.

	* gnome/applet/applet-dbus-devices.c
	  gnome/applet/applet-dbus-vpn.c
		- Track pending calls

	* gnome/applet/applet-dbus.[ch]
		- Remove some unused enums
		- (nma_dbus_send_with_callback, nma_dbus_send_with_callback_replied):
			new functions to track dbus pending calls and spit out some
			statistics about them


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1571 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-09 17:23:00 +00:00
Robert Love
16ad005600 2006-03-09 Robert Love <rml@novell.com>
* src/NetworkManagerAP.c, src/NetworkManagerAP.h: Have the function
	  nm_ap_set_timestamp() take the second and micro-second parameters as
	  direct arguments, which avoids both a dynamic memory allocation and a
	  structure-to-structure copy!  Add a new interface, the aptly named
	  nm_ap_set_timestamp_via_timestamp(), to set the timestamp from an
	  existing GTimeVal, as nm_ap_set_timestamp() once did, for use with
	  the return from nm_ap_get_timestamp().  New users should use the new
	  nm_ap_set_timestamp(), not nm_ap_set_timestamp_via_timestamp(), for
	  the extreme benefit to performance.
	* src/NetworkManagerAPList.c, src/nm-dbus-nmi.c,
	  src/backends/NetworkManagerSuSE.c: Use the new functions as needed.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1569 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-09 15:24:30 +00:00
Robert Love
7fb8bf2eea 2006-03-08 Robert Love <rml@novell.com>
* gnome/applet/applet.glade: Hide the password entry text with
	  asterisks.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1565 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-08 18:36:13 +00:00
Robert Love
32daa1d99a 2006-03-06 Robert Love <rml@novell.com>
* src/NetworkManagerSystem.h, src/nm-device.c, NetworkManagerDebian.c,
	  NetworkManagerRedHat.c, NetworkManagerGentoo.c,
	  NetworkManagerSlackware.c: Pass nm_system_device_get_system_config()
	  a second argument, NMData.
	* src/nm-ap-security.h, src/nm-ap-security.c: Export nm_ap_security_new.
	* src/backends/NetworkManagerSuSE.c: Add wireless networks from ifcfg-*
	  config files as trusted.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1564 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-08 18:33:44 +00:00
Robert Love
7bfae91c04 2006-03-06 Robert Love <rml@novell.com>
* gnome/applet/Makefile.am: Define AUTOSTARTDIR.
	* gnome/applet/applet.c: Add 'Remove' option to the right click menu,
	  to exit the applet.  As a sweet side-effect, idea courtesy of Chris
	  Rivera, detect if the applet was auto-started.  If so, ask the user
	  if he or she would like to stop automatically running the applet on
	  login.  If so, disable autostart.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1561 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-07 20:29:20 +00:00
Robert Love
6be7176a14 2006-03-06 Robert Love <rml@novell.com>
* NetworkManager.pc.in:  Provide an -I to the NetworkManager include
	  directory in CFLAGS so developers can actually use NetworkManager.h.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1560 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 21:41:05 +00:00
Robert Love
1b3aea6b02 2006-03-06 Robert Love <rml@novell.com>
* src/dhcp-manager/nm-dhcp-manager.c: Use preprocessor defines and not
	  open-coded integer constants.  Add state_to_string() to map a given
	  state to a textual description, and provide that when notifying of
	  state change.
	* src/dhcp-manager/nm-dhcp-manager.h: Provide defines for the dhcdbd
	  states, copied and cleaned up from dhcdbd.d.  Ideally, we would use
	  this header directly, but it is currently not installed on most
	  systems.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1559 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 20:21:19 +00:00
Dan Williams
a5919b696c 2006-03-05 Dan Williams <dcbw@redhat.com>
Process netlink messages in device subclasses rather than in
	NetworkManager.c.  Also add support for recognizing Wireless Events.

	* configure.in
		- Find GLIB_GENMARSHAL

	* src/Makefile.am
		- Since we're marshalling custom types for wireless event signals,
			we get to create our own marshallers using GLIB_GENMARSHAL

	* src/NetworkManager.c
		- (nm_monitor_wired_link_state): renamed to nm_monitor_setup
		- (nm_monitor_setup): renamed from nm_monitor_wired_link_state, and
			cut down somewhat.  We no longer process signals here.
		- (nm_data_new): create the netlink monitor here, and remove a
			useless call to nm_policy_schedule_device_change_check()
		- (nm_data_free): get rid of the netlink monitor here
		- (nm_device_link_activated, nm_device_link_deactivated): removed
		- (main): don't create the netlink monitor here, let nm_data_new
			do that.  Call nm_policy_schedule_device_change_check() right
			before we jump to the mainloop to figure out which device
			to use first

	* src/NetworkManagerSystem.[ch]
		- (nm_system_get_rtnl_index_from_iface, nm_system_get_iface_from_rtnl_index):
			convert back and forth from interface names to interface
			indexes

	* src/nm-device-802-11-wireless.c
		- (real_init): connect to wireless-event signals from the netlink
			monitor object
		- (nm_device_802_11_wireless_event): new function, schedule handler
			for wireless event signals from the netlink monitor object.  We
			want the handler to run in the device's context
		- (wireless_event_helper): handle wireless-event signals from netlink
		- (nm_device_802_11_wireless_dispose): disconnect wireless-event
			signal handler

	* src/nm-device-802-11-wireless.h
		- remove unused prototype for nm_device_802_11_wireless_new

	* src/nm-device-802-3-ethernet.c
		- (real_init): new function; set up signal handlers for link events
		- (nm_device_802_3_ethernet_link_activated): new function, schedule
			handler for netlink link activated events on device's main loop
		- (link_activated_helper): when we get a link activated event, set
			the device's link to be active
		- (nm_device_802_3_ethernet_link_deactivated): new function; schedule
			handler for netlink link deactivated events on device's main loop
		- (link_deactivated_helper): when we get a link deactivated event, set
			the device's link to be inactive
		- (nm_device_802_3_ethernet_dispose): disconnect signal handler on
			dispose

	* src/nm-device-802-3-ethernet.h
		- remove unused prototype for nm_device_802_3_ethernet_new

	* src/nm-device.[ch]
		- (nm_get_device_by_iface_locked): variant of nm_get_device_by_iface
			but locks the device list
		- (nm_device_set_active_link): a little bit of cleanup and de-indenting

	* src/nm-netlink-monitor.[ch]
		- (nm_netlink_monitor_class_install_signals): New signal
			"wireless-event"
		- (nm_netlink_monitor_new): keep reference to NMData so we can get
			at the device list
		- (nm_netlink_monitor_event_handler): expand for wireless events too

	* src/nm-marshal-main.c
		- Include generated nm-marshal.c and nm-marshal.h

	* src/nm-marshal.list
		- List of custom marshal functions


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1555 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 01:10:58 +00:00
Dan Williams
6eacb970f2 2006-03-05 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-notifications.h
		- Protect prototype of nma_send_event_notification() because it
			includes libnotify-specific types
		- Include libnotify/libnotify.h too, since we technically need it

	* gnome/applet/applet.c
		- (nma_show_vpn_failure_dialog): fix usage of g_return_if_fail
		- (nma_show_vpn_login_banner_dialog): add some error checking


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1551 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-05 18:54:19 +00:00
Dan Williams
ef9674ce75 2006-03-04 Dan Williams <dcbw@redhat.com>
Clean up activation cancellation.  Should be a lot faster now.  Observed
	an issue with wireless devices between stage 2 and 3 of activation, where
	activation would be cancelled, but the device thread wouldn't notice until
	the supplicant association timed out.  Reorganize activation such that
	a cancellation handler gets immediately scheduled in the device's thread,
	and devices have a chance to perform any custom cleanup too.

	* src/nm-device.[ch]
		- (activation_cancel_handler): new device-type-specific function
			for cleaning up device-type-specific stuff on cancellation
		- (cancel_activation): removed
		- (nm_device_activation_cancel): subsume functionality of
			real_cancel_activation, but instead of doing anything, punt
			operation to a handler that's run in device-thread context
		- (nm_device_schedule_activation_handle_cancel): fix spelling of
			a warning message
		- (activation_handle_cancel_helper): cancellation handler run in
			device-thread context, calls device-type-specific cancelation,
			then tears down the activation request
		- (real_activation_cancel_handler): generic cancellation handler,
			deals with cancelling any in-process DHCP request
		- (nm_device_activate_stage1_device_prepare,
		   nm_device_activate_stage2_device_config,
		   nm_device_activate_stage3_ip_config_start,
		   nm_device_activate_stage4_ip_config_get,
		   nm_device_activate_stage4_ip_config_timeout,
		   nm_device_activate_stage5_ip_commit): don't call
			nm_device_schedule_activation_handle_cancel() any more, since
			cancellation will have been already scheduled for us by
			nm_device_activation_cancel().  Just exit the function and
			assume that the cancel handler will be called next.

	* src/nm-device-802-3-ethernet.c
		- (real_act_stage2_config): remove; didn't do anything anyway

	* src/nm-device-802-11-wireless.c
		- (supplicant_status_cb): ensure we don't do anything if the activation
			got cancelled
		- (real_activation_cancel_handler): implement; cancel user key request
			on activation cancellation


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1549 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-04 06:44:05 +00:00
Dan Williams
8c5ef3b423 2006-03-04 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (supplicant_send_network_config): assume that drivers that don't
			support WPA pretty much suck, and can't handle NM scanning
			along with wpa_supplicant.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1548 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-04 06:20:42 +00:00
Robert Love
94dfb30e75 2006-03-03 Robert Love <rml@novell.com>
* configure.in: Bump version to 0.6.0.
	* NEWS: Update.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1544 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-03 20:34:13 +00:00
Robert Love
63c82d4edf 2006-03-03 Robert Love <rml@novell.com>
* configure.in: Require DBUS 0.60 or later.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1543 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-03 19:43:05 +00:00
Dan Williams
f5876bbd07 2006-03-03 Dan Williams <dcbw@redhat.com>
Fix a crash if an "Other wireless network" was chosen, failed, then
	chosen again from the applet's menu.  If the other network wasn't
	noticed in a scan, it wouldn't have any capabilities, but would still
	be listed because the user forced the network.  To fix this, we set
	sensible capabilities on the forced network, which will get overwritten
	with the correct ones if the network shows up later in a scan.

	* src/nm-ap-security.h
		- Add a new "get_default_capabilities_func" member to the
			NMAPSecurity class

	* src/nm-ap-security.c
		- (nm_ap_security_get_default_capabilities): new function

	* src/nm-ap-security.c
	  src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-psk.c
	  src/nm-ap-security-wpa-eap.c
		- Implement get_default_capabilities_func() for all, which
			uses the information contained in a specific NMAPSecurity
			object to determine default AP capabilites necessary
			to support that object

	As a secondary measure, we now prune artificial access points that fail
	to be activated right away.  The thing failed, and we have no scan data for
	it, so it's pretty much useless since security information is only saved
	in the applets when a connection is successful.

	* src/NetworkManagerAPList.c
		- (nm_ap_list_merge_scanned_ap): mark any ap noticed in a scan
			not artificial.  If we see it, it's no longer a figment of the
			user's imagination :)

	* src/NetworkManagerPolicy.c
		- (nm_policy_activation_failed): send along the failed AP if we
			have it

	* src/nm-device-802-11-wireless.c
		- (real_activation_failure_handler): remove artificial APs from
			the device list, because activation failed


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1542 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-03 17:46:35 +00:00
Robert Love
e92a2cc651 2006-03-02 Robert Love <rml@novell.com>
Add support for retrieving both the per-device speed and the
	per-network maximum supported rate.  Then change the getProperties
	DBUS API for both networks and devices to report this informaiton.
	Finally, display the information via both nm-applet and nm-tool:
	* gnome/applet/applet-dbus-devices.c: Grab the speed from getProperties
	  and set it.
	* gnome/applet/applet.c: Display the device's speed in the 'Connection
	  Information' dialog.
	* gnome/applet/applet.glade: Update the UI to show per-device speed.
	* gnome/applet/nm-device.c, gnome/applet/nm-device.h: Add interfaces
	  network_device_get_speed() and network_device_set_speed() for
	  retrieving and setting, respectively, a network device's current
	  speed.
	* src/nm-dbus-device.c: Send the device's speed on getProperties.
	* src/nm-device-802-11-wireless.c: Return the rate in Mb/s, not Kb/s,
	  in the function nm_device_802_11_wireless_get_bitrate() -- it does
	  not matter (yet) what the units are, because we only feed it its own
	  output.  Implement SIOCGIRATE and set the per-network maximum
	  supported rate during scanning.
	* src/nm-device-802-11-wireless.h: Export the function
	  nm_device_802_11_wireless_get_bitrate().
	* src/nm-device-802-3-ethernet.c, src/nm-device-802-3-ethernet.h: Add
	  function nm_device_802_3_ethernet_get_speed() for returning an
	  802.3's current speed, in Mb/s.
	* test/nm-tool.c: Display the per-device current speed, if available,
	  and the per-network maximum rate.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1540 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 23:01:33 +00:00
Dan Williams
044ab2ee83 2006-03-02 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_set_scan_interval): don't scan-spam the
			card when it gets initialized.  Since devices don't get added to
			the scan list until they are initialized, this function wasn't
			setting the intitial scan interval correctly, and was leaving
			it at 0.  This caused cards to get many scan requests in a short
			amount of time when they were initialized


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1539 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 22:25:43 +00:00
Robert Love
a0281d0e8c 2006-03-02 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Do not set the pixbuf if we don't have an
	  active device.  But do not do what we used to do and override the
	  state, which caused the dreaded icon race of '05.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1538 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 20:51:13 +00:00
Robert Love
b8f2200c7f 2006-03-02 Robert Love <rml@novell.com>
Commit Dan's update of my previous commit:
	* src/nm-device-802-11-wireless.c: Always set the mode, because the
	  set_mode() function itself does the check.  But do only set the
	  frequency if in Ad-Hoc mode.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1537 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 19:19:27 +00:00
Robert Love
90819aa320 2006-03-02 Robert Love <rml@novell.com>
Patch by Brian Magnuson <magnuson@rcn.com>:
	* src/nm-device-802-11-wireless.c: During scanning, only set the wireless
	  mode to infrastructure if it is not currently in infrastructure mode.
	  For some driver, setting the mode is a costly operation, apparently.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1536 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 15:06:27 +00:00
Rodrigo Moya
3204a3b63d 2006-03-01 Rodrigo Moya <rodrigo@novell.com>
* Makefile.am: use the correct dir for autostart mechanism.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1532 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 16:51:38 +00:00
Dan Williams
a6be234a31 2006-02-28 Dan Williams <dcbw@redhat.com>
Patch from Brian Magnuson <magnuson@rcn.com>
	* gnome/applet/applet.c
		- (nma_show_vpn_failure_dialog): fix errors left over from
			libnotify support changes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1531 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 04:39:38 +00:00
Dan Williams
a282f30842 2006-02-28 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-act-request.[ch]
		- (nm_vpn_act_request_is_activated): don't use a switch/case for
			just one value
		- (nm_vpn_act_request_is_failed): new function; return whether or
			not the vpn activation request has failed

	* src/vpn-manager/nm-vpn-manager.c
		- (nm_vpn_manager_deactivate_vpn_connection): tell the vpn service
			daemon to kill the connection when the activation request fails.
			Fixes issue where NM would get confused if the VPN activation
			request timed out, and would not allow further VPN connections
			on that service.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1530 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 04:12:35 +00:00
Dan Williams
15a6f01743 2006-02-28 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nma_menu_add_vpn_menu): until the NM VPN manager can deal with
			overlapping connection requests, disable all VPN menu items
			but the active VPN connection


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1529 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 03:24:09 +00:00
Dan Williams
911b3a9193 2006-02-28 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-connection.c
		- (nm_vpn_connection_set_parent_device): fix C&P error which
			called g_object_unref() on the connection's parent device
			when it should have been ref-ed instead.  Fixes crash with
			repeated vpn connect requests


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1528 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 03:22:47 +00:00
Christopher Aillon
e67bb485bd 2006-02-28 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet.glade:
	Mark a few strings non-translatable, since they shouldn't be.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1527 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 00:19:20 +00:00
Dan Williams
74bfa2b3c0 2006-02-28 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_start_connection): if the vpn service daemon is
			already running, don't blindly ask it to connect, but wait until
			it's in the STOPPED state first.  Fixes an assertion when user
			starts a second vpn connection without stopping the first.
		- (nm_vpn_service_stage2_daemon_wait): ensure the vpn service's
			dbus service exists before continuing with the connection
			process, and reduce latency while waiting for it to become
			available
		- (nm_vpn_service_schedule_stage2_daemon_wait): reduce latency
			waiting for the vpn service daemon to become available
		- General log message cleanups; show progress via "Stage x of 4"
			rather than not telling anyone how many stages there are


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1526 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 22:20:32 +00:00