Commit graph

1951 commits

Author SHA1 Message Date
Robert Love
8481bbd914 2006-01-16 Robert Love <rml@novell.com>
* src/Makefile.am: Don't install NMLoadModules
	* src/NMLoadModules, test/NMLoadModules: Move the NMLoadModules script
	  from src/ to test/ as no one uses it anymore.  Note that I would be
	  fine with removing it altogether.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1353 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-17 21:25:08 +00:00
Robert Love
8eb99d62fc 2006-01-16 Robert Love <rml@novell.com>
* gnome/applet/eggtrayicon.c, src/nm-device.c, src/nm-ap-security.c,
	  gnome/applet/nm-gconf-wso-wep.c, gnome/applet/nm-gconf-wso-wpa-psk.c,
	  gnome/applet/nm-gconf-wso.c, src/nm-device-802-3-ethernet.c,
	  gnome/vpn-properties/nm-vpn-properties.c, src/nm-ap-security-wep.c,
	  src/nm-ap-security-wpa-psk.c, src/nm-device-802-11-wireless.c,
	  src/nm-netlink-monitor.c: Don't miss any initializers on structure
	  declarations, ever.
	* gnome/applet/applet.c: Remove useless check (NMState is unsigned and
	  NM_STATE_DISCONNECTED is zero).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1351 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-17 18:22:56 +00:00
Robert Love
30c812e9aa 2006-01-16 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c: argv[3], not argv[4].  Fix
	  uninitialized parameter and buffer overflow.  Novell #143496.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1348 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-17 15:20:33 +00:00
Dan Williams
db7403d3f4 2006-01-16 Dan Williams <dcbw@redhat.com>
Apply the PtP Address bits of a patch from Tim Niemueller

	* src/nm-ip4-config.[ch]
		- Add ip4_ptp_address member to object
		- (nm_ip4_config_copy): copy ptp address too
		- (nm_ip4_config_get_ptp_address, nm_ip4_config_set_ptp_address):
			new functions
		- (nm_ip4_config_to_rtnl_addr): use ptp address when asked to,
			rather than local tunnel ip address

	* src/vpn-manager/nm-vpn-service.c
		- (print_vpn_config): update for PtP address
		- (nm_vpn_service_stage4_ip_config_get): switch parsing to
			DBusMessageIters in preparation for getting routes from the VPN
			service daemons too

	* vpn-daemons/openvpn/src/nm-openvpn-service-openvpn-helper.c
		- (send_config_info): update for PtP address, clean up code
		- (main): update for PtP address, clean up code, fix typo

	* vpn-daemons/openvpn/src/nm-openvpn-service.c
		- (nm_openvpn_dbus_process_helper_ip4_config): update for PtP address

	* vpn-daemons/pptp/src/nm-pptp-service-pppd-plugin.c
		- (pptp_ip_up): update for PtP address

	* vpn-daemons/pptp/src/nm-pptp-service.c
		- (nm_pptp_dbus_process_helper_ip4_config): update for PtP address

	* vpn-daemons/vpnc/src/nm-vpnc-service.c
		- (print_vpn_config): update for PtP address
		- (nm_vpnc_dbus_process_helper_ip4_config): update for PtP address


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1346 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 22:58:13 +00:00
Dan Williams
3cb4470af5 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nmwa_add_networks_helper): don't indicate an active network
			if NM is disconnected or asleep


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1341 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 19:11:11 +00:00
Dan Williams
b225c2a019 2006-01-16 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_device_change_check): switch devices if we lose the link
			on an ethernet device.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1340 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 19:10:10 +00:00
Dan Williams
a6d596b796 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/wso-wpa-psk-hex.[ch]
		- Renamed -> wso-wpa-psk.[ch]

	* gnome/applet/wso-wpa-psk.[ch]
		- New files

	* gnome/applet/wso-wpa-psk-passphrase.[ch]
		- Removed, rolled into wso-wpa-psk.[ch]

	* gnome/applet/Makefile.am
		- Updated for above changes

	* gnome/applet/wireless-applet.glade
		- Consolidate WPA-PSK options into one notebook
			widget, and make dialogs invisible by default
			to fix screen oddities

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): create the new wpa-psk widget rather
			than both the old hex & passphrase ones


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1339 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:34:13 +00:00
Dan Williams
dc74d1bd2d 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/other-network-dialog.c
		- (nmwa_ond_init): Change text to refer to "name" rather than "ESSID"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1338 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:21:08 +00:00
Dan Williams
43d36bc3c4 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nmwa_show_vpn_login_banner_dialog, nmwa_show_vpn_failure_dialog,
		   nmwa_driver_notify, show_warning_dialog): fix up focus-stealing
			prevention to realize window before trying to get server
			time

	* gnome/applet/other-network-dialog.c
		- (nmwa_other_network_dialog_run): fix up focus-stealing
			prevention to realize window before trying to get server
			time

	* gnome/applet/passphrase-dialog.c
		- (nmi_passphrase_dialog_new): fix up focus-stealing
			prevention to realize window before trying to get server
			time


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1337 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:20:27 +00:00
Robert Love
1a108beb3c 2006-01-16 Robert Love <rml@novell.com>
Patch from Timo Hoenig  <thoenig@suse.de:
	* libnm-util/cipher-wep-ascii.h, libnm-util/cipher-wep-hex.h,
	  libnm-util/cipher-wep-passphrase.h, libnm-util/cipher-wpa-psk-hex.h,
	  libnm-util/cipher-wpa-psk-passphrase.h, libnm-util/cipher.h,
	  libnm-util/dbus-helpers.h: add checks whether headers are used
	  within a C++ build.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1336 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 17:18:43 +00:00
Dan Williams
7d82157fc5 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/wireless-security-option.c
		- (wso_wpa_create_key_type_model): clarify AES-CCMP algorithm name


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1335 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 17:17:25 +00:00
Dan Williams
c1adb93eb1 2006-01-16 Dan Williams <dcbw@redhat.com>
* libnm-util/cipher-wpa-psk-passphrase.c
		- (cipher_wpa_psk_passphrase_new): correct passphrase length, should
			be 8 - 63 characters inclusive


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1334 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 17:16:10 +00:00
Dan Williams
a270053c6a 2006-01-16 Dan Williams <dcbw@redhat.com>
* src/nm-dbus-nm.c
		- (nm_dbus_nm_sleep): bring device down after quick deactivation


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1332 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 14:41:49 +00:00
Robert Love
1b66ef0725 2006-01-13 Robert Love <rml@novell.com>
Patch by T Sureshkumar <tsureshkuman@novell.com>:
	* src/NetworkManagerSystem.c: Don't assert iface != NULL, allowing VPN
	  modules that do not use an interface.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1329 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-13 20:24:11 +00:00
Dan Williams
8b1b8ee7a5 2006-01-13 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
	  src/nm-device.h
		- Allow subclasses to implement deactivate_quickly()
		- (nm_device_deactivate_quickly): call subclass
			deactivate_quickly() methods
		- (nm_device_set_active_link): small cleanups, and don't
			deactivate the device right away because we risk a deadlock
			when called from device thread, waiting for the device
			thread to cancel activation

	* src/nm-device-802-11-wireless.c
		- (real_deactivate_quickly): new function
		- (nm_device_802_11_wireless_class_init): hook in real_deactivate_quickly
		- (real_deactivate): move supplicant cleanup to real_deactivate_quickly
			so that we kill the supplicant when we sleep too
		- (supplicant_interface_init): work around naive naming attempts of
			wpa_ctrl when naming sockets


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1326 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-13 16:53:55 +00:00
Dan Williams
42d050e807 2006-01-13 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (supplicant_cleanup): delete old device control sockets too
		- (supplicant_get_device_socket_path): new function to consolidate
			locations that need a path to a device's control socket


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1325 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-13 14:47:30 +00:00
Robert Love
1ccbaff850 2006-01-12 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Put the ppp device in the
	  description so that the description is unique for each
	  pair (device,provider).  Fixes Novell #142773.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1324 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-12 22:21:56 +00:00
Dan Williams
771ec68c81 2006-01-12 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (supplicant_exec): ensure GError is correctly initialized
			Reported by Diego González (gnome.org #326708)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1322 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-12 12:51:06 +00:00
Robert Love
df024f3ed8 2006-01-11 Robert Love <rml@novell.com>
* src/nm-device-802-3-ethernet.c: In case local copies of glibc do not
	  define if_mii(), open code the same results, and do so without any
	  type punning.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1320 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 22:41:53 +00:00
Robert Love
77c10f94b6 2006-01-11 Robert Love <rml@novell.com>
* gnome/applet/wireless-security-manager.c: Fix crash by not asserting
	  that wso_foo_new() returned non-NULL.  Instead, only append the new
	  wso to wsm->options if the wso is non-NULL.  The crux is that we
	  assume that the relevant key types are implied by WEP and WPA as
	  appropriate.  To be sure, they should be, but we should not expect
	  drivers to not be oozing piles of wolf fecal matter.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1319 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:48:39 +00:00
Robert Love
46efeb868a 2006-01-11 Robert Love <rml@novell.com>
* configure.in: Add the gcc flags '-Wshadow' and '-Wfloat-equal'.
	* gnome/applet/applet.c, gnome/vpn-properties/nm-vpn-properties.c,
	  src/NetworkManagerAPList.c, src/NetworkManagerDbus.c,
	  src/NetworkManagerPolicy.c, src/NetworkManagerSystem.c,
	  src/nm-dbus-device.c, src/nm-device-802-3-ethernet.c,
	  src/nm-ip4-config.c, src/vpn-manager/nm-vpn-manager.c,
	  test/nmtestdevices.c: Fix shadowed variable usage as appropriate.
	* src/nm-device-802-11-wireless.c: Fix floating point comparison by
	  comparing values within DBL_EPSILON.  Also fix shadowed variable
	  usage.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1318 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:07:29 +00:00
Dan Williams
f2c3f74a13 2006-01-11 Dan Williams <dcbw@redhat.com>
Add options for WPA2 and WPA1+CCMP (AES).

	* gnome/applet/wireless-applet.glade
		- Add UI bits for WPA+CCMP

	* gnome/applet/other-network-dialog.c
		- (nmwa_ond_init): pass capabilities into the WirelessSecurityManager,
			and don't allow creation of WPA2 Ad-Hoc networks since
			wpa_supplicant doesn't support them

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): Add WPA2 options, and pass capability
			on to the specific wireless security option being created

	* gnome/applet/wireless-security-option.[ch]
		- (wso_wpa_create_key_type_model): new utility function to create
			the model required for WPA Key Type combo box

	* gnome/applet/wso-private.h
	  gnome/applet/wireless-security-option.h
		- Move private function prototypes into wso-private.h

	* gnome/applet/wso-wpa-psk-hex.[ch]
	  gnome/applet/wso-wpa-psk-passphrase.[ch]
		- (append_dbus_params_func): get WPA version from checkbox and pass
			it to the dbus serialization helper
		- (key_type_combo_changed_cb): Set the cipher's WE Cipher when the
			key type combo changes
		- (wso_wpa_psk_hex_new): set up the key type combo with the correct
			model and options

	* libnm-util/cipher-wpa-psk-hex.c
	  libnm-util/cipher-wpa-psk-passphrase.c
		- (cipher_wpa_psk_hex_set_we_cipher, cipher_wpa_psk_passphrase_set_we_cipher):
			new function; allow the cipher to be changed after object creation

	* src/nm-ap-security-wpa-psk.c
		- (set_description): Do WPA2 descriptions too

	* src/nm-ap-security.c
		- (nm_ap_security_new_from_ap): allow CCMP with WPA1 too


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1317 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 20:46:26 +00:00
Robert Love
24a2f51a1f 2006-01-11 Robert Love <rml@novell.com>
* src/nm-device-802-3-ethernet.c: Use the if_mii() inline function that
	  is defined in <linux/mii.h> to return the mii_ioctl_data structure
	  from the ifreq structure in lieu of an open coded solution.  Removes
	  a life-threatening type-punning.
	* configure.in: Remove '-Wno-strict-aliasing' as we no longer pun any
	  types, ever, whatsoever, baby.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1316 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 20:07:56 +00:00
Robert Love
913ee23313 2006-01-11 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet-dbus.c,
	  gnome/applet/applet.c, gnome/applet/applet.h: Consolidating
	  assignments to applet->nm_state into a new nmwa_set_state() function
	  for both cleanliness and to help debugging.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1314 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 17:08:38 +00:00
Robert Love
e9091da2a3 2006-01-10 Robert Love <rml@novell.com>
* src/autoip.c: Fix FIXME.  In performing the link-local zeroconf IP
	  assignment dance, we want to sleep between PROBE_MIN and PROBE_MAX
	  seconds, exclusive.  That is, we want to sleep x seconds such that
	  1 < x < 2.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1313 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 22:07:24 +00:00
Robert Love
a8b7e75e7a 2006-01-10 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c: Remove FIXME, we do not have to free
	  the attr fields according to the example in the email available at
	  mail.gnome.org/archives/desktop-devel-list/2004-May/msg00230.html.
	  Conversely, we do have to free 'name', so we do so, fixing a leak.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1311 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 21:53:21 +00:00
Robert Love
89ff57baf6 2006-01-10 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c, src/nm-device-802-3-ethernet.c: Make
	  sure that we close the socket!


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1310 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 21:36:31 +00:00
Robert Love
5b8589dfb0 2006-01-10 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c, src/nm-device-802-11-wireless.h,
	  src/nm-device-802-3-ethernet.c, src/nm-device-802-3-ethernet.h,
	  src/nm-device.c: Fix a FIXME!  Reimplement the function
	  nm_device_update_hw_address() in device subclass variants,
	  nm_device_802_3_ethernet_set_address() and
	  nm_device_802_11_wireless_set_address(), hook them up, and use them.
	  This fixes the existing bug where MAC addresses are all zeros.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1309 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 21:15:54 +00:00
Robert Love
5f10fc0638 2006-01-10 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet-dbus.h,
	  gnome/applet/applet.c, gnome/applet/applet.h: Add 'Enable Networking'
	  option to give users ability to globally disconnect and put NM to
	  sleep.  This is useful as a 'lockdown mode' for flying, security, and
	  clean disconnect.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1308 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 20:28:26 +00:00
Robert Love
16ca3c9055 spelling fix
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1307 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 16:29:02 +00:00
Robert Love
7b15e32bdb 2006-01-09 Robert Love <rml@novell.com>
* src/nm-device-802-3-ethernet.h:  The kernel headers <linux/mii.h> and
	  <linux/ethtool.h> leak the kernel-only types u16, u32, et al.
	  User-space does not supply these types, so we have to define them
	  ourselves.  The relevant kernel maintainer refused to accept a patch
	  switching these headers to the propre C99 types.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1304 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 16:57:09 +00:00
Dan Williams
e3c8b17d71 2006-01-09 Dan Williams <dcbw@redhat.com>
Apply Robert's 'tray icon redo' patch with fixes

	* gnome/applet/applet.c
	  gnome/applet/applet.h
		- Instead of using a menu bar + menu item, simulate menu
			behavior using a popup menu.  Highlight the area around
			the icon more like a menu too, by playing with the applet's
			size requisition


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1303 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 16:50:45 +00:00
Timo Hoenig
86ec20a304 2006-01-09 Timo Hoenig <thoenig@suse.de>
* libnm-util/dbus-helpers.c
          libnm-util/dbus-helpers.h
                - (nmu_create_dbus_error_message): rename parameter 'namespace'
                        to 'exception_namespace' (:namespace is a keyword in C++)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1301 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 15:04:43 +00:00
Dan Williams
5cac86fdd2 2006-01-09 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_device_change_check): don't autoswitch away from
			Ad-Hoc networks, since there's really no concept of "link"

	* src/nm-dbus-nm.c
		- (nm_dbus_nm_create_wireless_network): mark created networks
			as Ad-Hoc networks

	* src/nm-device-802-11-wireless.c
		- (real_activation_success_handler): add user-created Ad-Hoc
			networks to the device's scan list


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1300 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 05:11:29 +00:00
Dan Williams
fb8c10a370 2006-01-08 Dan Williams <dcbw@redhat.com>
We now require a patch for wpa_supplicant to support Ad-Hoc
	networks:
	  http://people.redhat.com/dcbw/wpa_supplicant-ctrl-iface-ap-scan.patch

	* src/nm-device-802-11-wireless.c
		- (supplicant_send_network_config): turn off wpa_supplicant's
			scanning.  Fixes Ad-Hoc networks.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1299 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 04:36:46 +00:00
Dan Williams
1754f71e7f 2006-01-08 Dan Williams <dcbw@redhat.com>
* src/nm-ap-security.c
	  src/nm-ap-security.h
		- Add a user_created argument to the write_supplicant_config
			functions

	* src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-psk.c
	  src/nm-device-802-11-wireless.c
		- Make Ad-Hoc mode somewhat work, at least write the
			correct options to wpa_supplicant


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1298 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 03:18:25 +00:00
Dan Williams
bb20df207b 2006-01-08 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- Remove unused code from the old device activation path


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1297 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 23:22:08 +00:00
Dan Williams
e73ed7ea26 2006-01-08 Dan Williams <dcbw@redhat.com>
* libnm-util/dbus-helpers.c
		- (nmu_security_serialize_wpa_psk): pass a blank key through
			dbus when key == NULL


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1296 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 23:01:51 +00:00
Dan Williams
9b602d8151 2006-01-08 Dan Williams <dcbw@redhat.com>
* gnome/applet/nm-gconf-wso-wpa-psk.c
		- (nm_gconf_wso_wpa_psk_new_deserialize_dbus): feed
			correct arguments to nmu_security_deserialize_wpa_psk()

	* src/nm-ap-security-wpa-psk.c
		- (nm_ap_security_wpa_psk_new_deserialize): feed correct
			arguments to nmu_security_deserialize_wpa_psk()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1295 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 21:34:38 +00:00
Dan Williams
46d05f9ab7 2006-01-08 Dan Williams <dcbw@redhat.com>
* gnome/applet/wso-wpa-psk-hex.c
	  gnome/applet/wso-wpa-psk-passphrase.c
		- Hook up the append_dbus_params_func() function


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1294 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 21:10:47 +00:00
Dan Williams
5d9b90000e 2006-01-08 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (get_wireless_capabilities): correctly detect driver WPA
			capabilities


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1292 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 21:01:35 +00:00
Dan Williams
65b6ba0b88 2006-01-08 Dan Williams <dcbw@redhat.com>
* gnome/applet/Makefile.am
	  gnome/applet/wso-wpa-psk-hex.c
	  gnome/applet/wso-wpa-psk-hex.h
		- New files, implement WPA-PSK Hex key input

	* gnome/applet/wireless-applet.glade
		- Change existing wpa-psk stuff to wpa-psk-hex
		- Add new widgets for wpa-psk-passphrase

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): enable WPA options

	* gnome/applet/wso-wpa-psk-passphrase.c
		- (wso_wpa_psk_passphrase_new): use correct glade widgets
			for WPA-PSK passphrase


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1291 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 19:03:58 +00:00
Dan Williams
e07888aa03 2006-01-08 Dan Williams <dcbw@redhat.com>
(forgot to commit ChangeLog with changes)

	* include/NetworkManager.h
		- Add NMI_DBUS_USER_KEY_CANCELED_ERROR as a constant for
			applet/info-daemons

	* gnome/applet/passphrase-dialog.c
		- Use the constant.  Fixes a bug where the arguments to
			dbus_message_new_error() were incorrect

	* src/nm-dbus-nmi.c
		- Use the constant


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1290 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 18:55:37 +00:00
Dan Williams
e4aaefce40 2006-01-07 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- Add a link timeout so we allow the supplicant time to
			reassociate if it can, before we deactivate the card
		- Fix up link status and link updating so things work better


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1288 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 03:25:10 +00:00
Dan Williams
2d064fba32 2006-01-07 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- Switch over to using wpa_supplicant
		- Add a timeout of 10s for association of the supplicant
		- Start the monitor callback of the supplicant


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1286 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-07 23:23:09 +00:00
Dan Williams
e260b697fc 2006-01-07 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c
		- (nm_utils_supplicant_request, nm_utils_supplicant_request_with_check):
			pass correct buffer length to wpa_ctrl_request()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1284 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-07 16:22:57 +00:00
Dan Williams
30cc1984f7 2006-01-07 Dan Williams <dcbw@redhat.com>
* src/nm-device-private.h
	  src/nm-device.c
		- (nm_device_activate_schedule_stage3_ip_config_start): make this
			function available to subclasses


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1283 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-07 16:22:17 +00:00
Robert Love
5e62f41321 2006-01-06 Robert Love <rml@novell.com>
* src/NetworkManagerPolicy.c: Always prefer wired to wireless, as the
	  user plugging in a network cable signals their preference for to
	  switch, unless the user explicitly selected a wireless network and
	  therefore signaled their preference for said wireless network over
	  wired.  In other words, do exactly what makes sense.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1279 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 22:04:03 +00:00
Robert Love
af619b1594 2006-01-06 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c, src/NetworkManagerDevice.h,
	  src/NetworkManagerDevicePrivate.h, src/NetworkManagerWireless.c,
	  src/NetworkManagerWireless.h: Remove, no longer used and they keep
	  showing up in my greps.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1278 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 21:05:07 +00:00
Robert Love
22e8b28790 2006-01-06 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c,
	  gnome/applet/other-network-dialog.c, gnome/applet/wso-none.c,
	  libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h,
	  src/nm-dbus-nm.c: Fix several issues.  'Connect to Other' and 'Create
	  New Network' both failed in the non-encrypted case because we were
	  not appending the security options to the DBUS message.  And
	  'Connect to Other' was also failing in the encrypted case because
	  we were not incrementing to the next DBUS parameter.  All fixed.
	  Thanks to dcdw for some debugging help.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1276 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 20:12:31 +00:00