Commit Graph

7207 Commits

Author SHA1 Message Date
Dan Williams
3c10e4401f 2006-07-13 Dan Williams <dcbw@redhat.com>
Patch from Thiago Bauermann <thiago.bauermann@gmail.com>
	* gnome/applet/applet.glade
	  gnome/applet/Makefile.am
	  gnome/applet/nm-gconf-wso.c
	  gnome/applet/nm-gconf-wso-leap.c
	  gnome/applet/nm-gconf-wso-leap.h
	  gnome/applet/wireless-security-manager.c
	  gnome/applet/wso-leap.c
	  gnome/applet/wso-leap.h
	  include/NetworkManager.h
	  libnm-util/dbus-helpers.c
	  libnm-util/dbus-helpers.h
	  src/Makefile.am
	  src/NetworkManagerAP.c
	  src/nm-ap-security.c
	  src/nm-ap-security-leap.c
	  src/nm-ap-security-leap.h
		- Add LEAP authentication support


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1881 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-13 17:03:31 +00:00
Dan Williams
e51cecf34b 2006-07-13 Dan Williams <dcbw@redhat.com>
Patch from Timothée Lecomte <timothee.lecomte@ens.fr>
	* configure.in
	  src/backends/NetworkManagerArch.c
	  src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerGentoo.c
	  src/backends/NetworkManagerPaldo.c
	  src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerSlackware.c
	  src/backends/NetworkManagerSuSE.c
		- Convert hardcoding of 'ip' path to configure-time
			detected one


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1879 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-13 16:40:34 +00:00
Dan Williams
7d8f84edf6 2006-07-10 Dan Williams <dcbw@redhat.com>
Patch from Valentine Sinitsyn <e_val@inbox.ru>
	* src/nm-device.c
		- (real_act_stage3_ip_config_start): don't infinite loop when
			dhcdbd isn't running (Gnome #346845)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1866 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-10 17:22:32 +00:00
Dan Williams
09c39bede0 Set driver name to <unknown> when the driver is unknown
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1863 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-09 22:08:18 +00:00
Tor Krill
642a1a181d Applied two patches from Valentine Sinitsyn <e_val@inbox.ru>
- Explicitly check for DHCP configuration
- Check if daemons are running before starting them


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1861 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-04 19:22:49 +00:00
Dan Williams
d285ae516f 2006-06-24 Dan Williams <dcbw@redhat.com>
* src/dhcp-manager/nm-dhcp-manager.c
		- (nm_dhcp_manager_process_signal): clean up spacing


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1851 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-25 03:05:46 +00:00
Dan Williams
f210f07248 2006-06-21 Dan Williams <dcbw@redhat.com>
* nm-dbus-device.c
		- (nm_dbus_device_get_driver): don't try to stuff a NULL
			through dbus


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1850 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-21 14:33:35 +00:00
Dan Williams
e16831d1a4 2006-06-19 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
		- Clarify usage of user_created

	* src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-eap.c
	  src/nm-ap-security-wpa-psk.c
	  src/nm-ap-security.c
	  src/nm-ap-security.h
		- s/user_created/adhoc, because we really do mean adhoc

	Patch from Bernard Blackham <bernard@blackham.com.au>
	* src/nm-device-802-11-wireless.c
		- (supplicant_send_network_config): instead of user_created,
			use adhoc, and do AP_SCAN 2 for adhoc networks


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1846 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-20 02:24:57 +00:00
Robert Love
2f83566a03 2006-06-15 Robert Love <rml@novell.com>
* gnome/applet/nm-gconf-wso-wpa-eap.c: Don't set the Gconf keys unless
	  we have a value to set.  Gconf generates a warning if `val' is NULL.
	* src/nm-ap-security-wpa-eap.c: Don't set the key for an Enterprise AP
	  unless we actually received a valid private key file passphrase or
	  password.  Otherwise, we don't know to later ask the applet to pull
	  the key from the keyring.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1845 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-19 17:43:18 +00:00
Robert Love
ab09843c9f 2006-06-14 Robert Love <rml@novell.com>
* src/nm-ap-security-wpa-eap.c: In real_copy_constructor(), actually
         copy the strings.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1828 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-14 18:19:38 +00:00
Dan Williams
845e4b3705 2006-06-14 Dan Williams <dcbw@redhat.com>
Patch from Lorenzo Colitti <lorenzo@colitti.com>  gnome.org #344825
	* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_set_essid): only wait for orinoco cards
			or ones where the driver is unknown
		- (supplicant_exec): don't wait for supplicant startup here
		- (supplicant_interface_init): finer grained polling for supplicant
			startup


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1825 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-14 14:08:58 +00:00
Robert Love
eb13a05c2b 2006-06-13 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c: Don't set the fallback bit to FALSE
	  if it is currently set to TRUE.  Otherwise, we will reset the value
	  when we connect normally.
	* src/nm-device-802-11-wireless.c: For the roaming code, make sure that
	  the old BSSID is valid, too.  The recently added ESSID check may not be
	  sufficient (we can remove it?).  What we really want to catch is the
	  case of going from all-zeros to the BSSID of some other network, which
	  happens on failure.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1823 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-13 19:54:22 +00:00
Dan Williams
768354a19c 2006-06-09 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerSystem.[ch]
		- (nm_system_device_set_up_down_with_iface): remove 'dev' argument,
			it was unused and pointless
		- (nm_system_vpn_device_set_from_iface, nm_system_device_set_up_down):
			fix for set_up_down_with_iface change

	* src/vpn-manager/nm-vpn-connection.c
		- (nm_vpn_connection_deactivate): fix for set_up_down_with_iface change

	* src/backends/NetworkManagerPaldo.c
	  src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerSuSE.c
	  src/backends/NetworkManagerArch.c
	  src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerGentoo.c
		- (nm_system_enable_loopback): use set_up_down_with_iface where
			appropriate
		- (nm_system_flush_loopback_routes): use flush_routes_with_iface
			where appropriate


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1817 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-09 14:24:19 +00:00
Dan Williams
05dbe5238c 2006-06-09 Dan Williams <dcbw@redhat.com>
Patch from Peter Jones:
	* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_update_bssid): make sure that the
			SSID hasn't changed from what we expect before automatically
			updating the saved BSSID from a new AP


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1816 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-09 14:14:01 +00:00
Robert Love
75478a3768 2006-06-08 Robert Love <rml@novell.com>
Add 'fallback' support.  NetworkManager will attempt to brute-force
	connect to networks marked as fallback if there are no better wireless
	connections available.  This is useful as a method of last resort, to
	work around driver problems, and for use with hidden networks.
	* gnome/applet/applet-dbus-devices.c,
	  gnome/applet/applet-dbus-devices.h: Add fallback parameter.
	* gnome/applet/applet-dbus-info.c: Retrieve fallback bit from Gconf and
	  pass it on via DBUS.
	* gnome/applet/applet.c: No fallback by default.
	* gnome/applet/applet.glade, gnome/applet/other-network-dialog.c:
	  Update other-network-dialog to add UI checkbox toggling fallback.
	* src/NetworkManagerAP.c, src/NetworkManagerAP.h: Remove "trusted"
	  propery from AP object.  Add "fallback" property to AP object.
	* src/nm-dbus-nm.c: Grab the fallback parameter via DBUS.
	* src/nm-dbus-nmi.c: Grab the fallback parameter via DBUS.
	* src/nm-device-802-11-wireless.c: Break out blacklist logic into
	  separate function.  Add get_best_fallback_ap() for returning an AP
	  on which to attempt fallback.
	* src/backends/NetworkManagerSuSE.c: Set stored network as fallback.
	* test/nm-set-fallback: New file.  Sets a given network as fallback.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1814 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-08 21:01:37 +00:00
Robert Love
faeff6152a 2006-06-07 Robert Love <rml@novell.com>
* gnome/applet/gconf-helpers.c: Bug fix: nm_gconf_helper_get_bool()
	  checked that the return type was GCONF_VALUE_STRING, not the correct
	  GCONF_VALUE_BOOL, and thus it never worked.
	* src/NetworkManagerAPList.c: Before concluding that two networks are
	  identical based on their BSSID, make sure that the BSSID in question
	  is actually valid.  Specifically, an empty or all zero BSSID does not
	  cut it.
	* gnome/applet/applet-dbus-info.c, gnome/applet/other-network-dialog.c,
	  src/nm-dbus-nmi.c, src/nm-device-802-11-wireless.c: White space and
	  similar invariant clean up.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1811 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-07 17:35:33 +00:00
Dan Williams
79f75aa61e 2006-05-28 Dan Williams <dcbw@redhat.com>
Patch from Chris Fuller <crf@grandecom.net>:
	* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_dispose): add a is_initialized member and
			don't dispose of wireless-specific stuff unless it is actually
			initialized.  Gnome.org #341263


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1776 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-28 20:45:19 +00:00
Dan Williams
e18e59e356 2006-05-28 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_device_change_check): don't switch devices if the "best"
			AP is essentially the same as the current activation request, but
			the current activation request isn't done activating yet.  Fixes
			multiple requests for keyring password on startup for Gnome applet.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1775 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-28 20:08:11 +00:00
Dan Williams
6392fe3fdf Fix up spacing.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1773 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-28 03:30:44 +00:00
Nicolas Trangez
4202ba0ea1 2006-05-26 Nicolas Trangez <eikke@eikke.com>
* src/NetworkManager.c: use GOptions instead of getopt
	* configure.in: bump glib required version to >= 2.6 for GOption
	  support


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1771 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-28 02:55:44 +00:00
Robert Love
33aec50e50 2006-05-25 Robert Love <rml@novell.com>
* src/nm-device.h: Introduce nm_ioctl_info(), which defines to
	  nm_info() if IOCTL_DEBUG is set and a no-op if not.  We can use this
	  instead of dumping ifdef's throughout the code.
	* src/NetworkManagerSystem.c, src/nm-device-802-11-wireless.c,
	  src/nm-device-802-3-ethernet.c, src/nm-device.c: Remove ifdef's and
	  use nm_ioctl_info() in lieu.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1768 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-25 22:37:41 +00:00
Robert Love
98192881d3 2006-05-24 Robert Love <rml@novell.com>
* examples/python/systray/eggtrayicon.c, gnome/applet/eggtrayicon.c,
	  gnome/applet/passphrase-dialog.c, gnome/applet/vpn-password-dialog.c,
	  src/NetworkManager.c: Include <glib/gi18n.h> and not <libintl.h>.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1760 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 15:53:07 +00:00
Robert Love
f560d48b7d 2006-05-24 Robert Love <rml@novell.com>
* gnome/applet/Makefile.am, gnome/vpn-properties/Makefile.am,
	  libnm-util/Makefile.am, src/Makefile.am,
	  vpn-daemons/openvpn/auth-dialog/Makefile.am,
	  vpn-daemons/openvpn/properties/Makefile.am,
	  vpn-daemons/pptp/auth-dialog/Makefile.am,
	  vpn-daemons/pptp/properties/Makefile.am,
	  vpn-daemons/vpnc/auth-dialog/Makefile.am,
	  vpn-daemons/vpnc/properties/Makefile.am: Do not override what the
	  user passed for --datadir, if anything, when setting the GNOME locale
	  directory.  It should be a function of the specified datadir and not
	  the prefix.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1759 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 15:08:22 +00:00
Robert Love
a4ac9ec0fb 2006-05-24 Robert Love <rml@novell.com>
* gnome/applet/main.c, gnome/vpn-properties/nm-vpn-properties.c,
	  src/NetworkManager.c: Take care to call bindtextdomain with the
	  location of msgid files.
	* src/Makefile.am: Set GNOMELOCALEDIR to the location of GNOME mo
	  files.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1758 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 14:16:48 +00:00
Robert Love
e8f14d0ffc 2006-05-22 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c: Don't chain up to the parent's
	  stage4_timeout on failure unless the wireless network is Ad-Hoc.
	  99% of the time there is a real problem with wireless, and a
	  seemingly successful connection via Zeroconf just confuses the user.
	  And that 1% of the time the network is probably Ad-Hoc, anyhow.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1757 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-22 21:24:19 +00:00
Robert Love
628bc77f10 2006-05-22 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Reload, do not restart, ypbind and
	  autofs on interface up if NIS is configured.  On interface down, do
	  nothing.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1756 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-22 15:24:04 +00:00
Dan Williams
bc52f21f37 2006-05-21 Dan Williams <dcbw@redhat.com>
Fix gnome.org #330832 based on patch from Crispin Flowerday <crispin@gnome.org>

	* src/NetworkManagerDbus.[ch]
		- nm_dbus_get_device_from_object_path -> nm_dbus_get_device_from_escaped_object_path:
			clarify that function's argument should be an escaped dbus object
			path, and look for path segment end before returning a match
	* src/nm-dbus-nm.c:
		- Fix up users of nm_dbus_get_device_from_escaped_object_path()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1749 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-21 17:28:02 +00:00
Robert Love
12e183cced * src/nm-device-802-11-wireless.c: Lentils.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1743 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-17 21:27:34 +00:00
Robert Love
27e78ebd39 * src/nm-device-802-11-wireless.c: Whoops!
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1742 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-17 21:24:25 +00:00
Robert Love
b428d9d8a2 2006-05-17 Robert Love <rml@novell.com>
Functionality to automatically add BSSIDs to the allowed-MAC list as
	one roams from access point to access point on a given network:
	* src/NetworkManagerUtils.c: Add nm_ethernet_addresses_are_equal(),
	  helper function to compare two ether_addr structures and return TRUE
	  if they contain the same MAC address.
	* src/NetworkManagerUtils.h: Add nm_ethernet_addresses_are_equal()
	  prototype.
	* src/nm-device-802-11-wireless.c: New function to update the BSSID
	  stored with the current AP.  If the BSSID has indeed changed, we
	  send it out to the applet, allowing the allowed-MAC list to grow
	  automatically in response to roaming.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1739 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-17 15:02:57 +00:00
Robert Love
8d0012453a 2006-05-16 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Don't touch ypbind or autofs unless
	  dhcp:DHCLIENT_MODIFY_NIS_CONF is set to "yes".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1737 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-16 17:26:01 +00:00
Robert Love
e68fabc5ea src/backends/NetworkManagerSuSE.c: The var is in dhcp, not config.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1735 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-15 14:21:13 +00:00
Dan Williams
5f9f987e17 2006-05-13 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-3-ethernet.c
		- (real_get_generic_capabilities): Don't ignore devices that can't do
			carrier detect (Debian bug #366373)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1733 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-13 19:06:05 +00:00
Robert Love
8628b47086 misc. bits, all trivial
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1731 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-11 21:31:43 +00:00
Dan Williams
15a5def1ee 2006-05-11 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@teco.edu>
	* src/backends/NetworkManagerDebian.c
		- Debian backend fixups


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1727 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-11 15:26:58 +00:00
Robert Love
3359a3f374 vim7 does spell checking !@!
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1726 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-10 21:00:25 +00:00
Robert Love
c2872a8b6b 2006-05-10 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Fix double free (Novell #173442).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1725 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-10 14:38:44 +00:00
Dan Williams
8495eeca54 2006-05-05 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_set_wep_enc_key): convert to
			nm_device_802_11_wireless_disable_encryption() since that's all
			we use it for anymore; we don't ever set WEP keys ourselves.
		- (real_deactivate_quickly): reset SSID and encryption keys
		- (real_deactivate): move SSID and encryption key reset to
			real_deactivate_quickly(), which gets run before us anyway


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1721 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-05 20:42:48 +00:00
Robert Love
f1fb0b5e24 2006-05-05 Robert Love <rml@novell.com>
* src/NetworkManager.c: Set the umask to 0022 when daemonizing, in case
	  root has a wacky default of its own (or, more common, a user has a
	  bad umask and uses su/sudo to restart NetworkManager).  Anything other
	  than 0022 does not do what we want with, for example, resolv.conf.  This
	  problem is amplified by our judicious use of fopen(), which uses mode
	  0666 -- implying that the only way to get the permissions we want is
	  with a umask of 0022.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1719 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-05 19:42:20 +00:00
Robert Love
3b3af29576 2006-05-03 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Respect the variable
	  dhcp:DHCLIENT_MODIFY_RESOLV_CONF, not
	  config:MODIFY_RESOLV_CONF_DYNAMICALLY, when deciding whether or not
	  to dynamically update /etc/resolv.conf.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1716 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-03 19:29:15 +00:00
Jeremy Katz
927d2b3394 2006-04-27 Jeremy Katz <katzj@redhat.com>
* src/nm-device.c (discover_device_type): Actually use the hal
	device type instead of ioctl poking


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1710 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-27 15:49:40 +00:00
Robert Love
71b7fcc56a 2006-04-25 Robert Love <rml@novell.com>
* src/nm-ap-security-wep.c: Bug fix: We stopped setting the
	  key mode (the authentication algorithm), e.g. open or shared, when we
	  moved to using wpa_supplicant.  wpa_supplicant defaults to open, so
	  only shared was broken.  If the user specified a shared key, set it
	  explicitly, otherwise let wpa_supplicant go with the default.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1705 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-25 18:08:19 +00:00
Dan Williams
552a3e3bc5 2006-04-24 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_set_essid): fix setting of "any" essid


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1704 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-24 21:15:08 +00:00
Dan Williams
4a0434fa70 2006-04-24 Dan Williams <dcbw@redhat.com>
Commit the async scanning patch

	* src/nm-device-802-11-wireless.c
		- get rid of scan_mutex
		- (wireless_event_helper): act on wireless scan events
		- (real_start): schedule a pending scan
		- (link_to_specific_ap): fake the link to the AP during a scan
		- (nm_device_802_11_wireless_update_signal_strength): ignore signal
			strength during scans
		- (nm_device_get_frequency, nm_device_set_frequency, nm_device_get_bitrate,
			nm_device_set_bitrate): unused with new scanning code, disable
		- (nm_device_wireless_schedule_scan): removed
		- (nm_device_wireless_process_scan_results): renamed to convert_scan_results()
		- (request_and_convert_scan_results): new function; retrieve scan
			results from the driver and schedule the processing function
		- (scan_results_timeout): timeout triggered when card doesn't send
			a scan results wireless event during a certain interval
		- (schedule_scan_results_timeout): new function; schedule the scan
			results timeout
		- (cancel_scan_results_timeout): new function; cancel the scan
			results timeout
		- (nm_device_802_11_wireless_scan): if wpa_supplicant is running, ask it
			to do the scanning.  Otherwise, just request a scan but don't
			grab results here; instead schedule a timeout for scan results and
			let netlink notify us of scan completion events
		- (nm_device_wireless_schedule_scan): new function; schedule a wireless scan
		- (cancel_pending_scan): new function; cancel a pending wireless scan
		- (supplicant_status_cb): ignore disconnect events while scanning
		- (supplicant_exec): wait a bit longer for the supplicant to start up
		- (nm_device_802_11_wireless_dispose): cancel pending scans and results
			timeouts
		- (get_scan_results): removed; folded into request_and_convert_scan_results()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1703 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-24 21:09:38 +00:00
Robert Love
6fd1cc39d2 2006-04-20 Robert Love <rml@novell.com>
Fix bug where hidden ESSID's would not show up in the applet, even
	if NMI provided a BSSID -> ESSID mapping from Gconf.  This occurred
	because nm_policy_device_list_update_from_allowed_list() would merge
	the data, putting a name to the hidden networks, but never notify NMI
	of the changes.  Simple fix is to invoke the function
	nm_dbus_signal_wireless_network_change() if we make a mapping.
	* src/NetworkManagerAPList.c: Call the function
	  nm_dbus_signal_wireless_network_change() if we made a successful
	  BSSID to ESSID mapping, notifying the applet of the "new" network.
	* src/NetworkManagerAPList.h: Update the prototypes for both
	  nm_ap_list_copy_essids_by_address() and
	  nm_ap_list_copy_one_essid_by_address().


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1700 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-20 20:40:25 +00:00
Nicolas Trangez
8d569f052f Gentoo initscript and backend updates
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1693 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-18 17:06:03 +00:00
Robert Love
cd73c091c5 2006-04-06 Robert Love <rml@novell.com>
Fix bad but simple bug where an active modem connection did not update
	NM's connection state, breaking any app that did online/offline:
	* src/NetworkManagerMain.h: Add 'modem_active' member to NMData,
	  represented whether a dial up connection is active, or not.
	* src/nm-dbus-nm.c: Set and unset 'modem_active' in response
	  to modem activation and deactivation.
	* src/NetworkManagerDbus.c: When asked our state, do not return
	  disconnected if the modem is active.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1674 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-06 14:12:23 +00:00
Tor Krill
3f94755dfe 2006-04-02 Tor Krill <tor@krill.nu>
* initscript/Arch/networkmanager.in: Added checks for HAL and dhcdbd
          in start of service.
        * src/backends/NetworkManagerArch.c: (nm_system_get_mtu): Added to
          get Archlinux backend up to date.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1669 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-02 14:34:29 +00:00
Robert Love
992f148ffa * src/NetworkManagerDbus.c: Fix comment.
* src/NetworkManagerPolicy.c: Fix crasher.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1664 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-30 14:42:43 +00:00
Robert Love
e79ccc1a10 2006-03-29 Robert Love <rml@novell.com>
Patch by Vinay R <rvinay@novell.com> and Robert Love <rml@novell.com>,
	to add support for per-route MSS and improve support for per-interface
	MTU:
	* src/NetworkManagerSystem.c: Modify nm_system_device_set_ip4_route to
	  optionally take an MSS parameter and set it for the given route.
	  Remove nm_system_device_set_ip4_route_with_iface.  Pass in the
	  NMIP4Config's stored MSS, if any.
	* src/nm-ip4-config.c: Add 'mtu' and 'mss' to NMIP4Config, representing
	  the interface's MTU and the route's MSS, respectively.  Add functions
	  nm_ip4_config_get_mtu, nm_ip4_config_set_mtu, nm_ip4_config_get_mss,
	  and nm_ip4_config_set_mss for retrieving and setting the MTU and the
	  MSS.
	* src/nm-ip4-config.h: Add prototypes for nm_ip4_config_get_mtu,
	  nm_ip4_config_set_mtu, nm_ip4_config_get_mss, and
	  nm_ip4_config_set_mss.
	* src/vpn-manager/nm-vpn-service.c: Modify to receive the MSS from the
	  VPN daemon.
	* src/backends/NetworkManager{Arch,Debian,Gentoo,RedHat,Slackware,SUSE}.c:
	  Change the retval of nm_system_get_mtu to guint32.
	* src/dhcp-manager/nm-dhcp-manager.c: Set the MTU on the new DHCP-given
	  NMIP4Config to the MTU provided by the system, if any.  TODO: If DHCP
	  servers can specify MTU's, we should set it here if the MTU was not
	  provided.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1660 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-29 19:26:53 +00:00