Commit graph

1951 commits

Author SHA1 Message Date
Robert Love
9dd733b3b5 2006-01-06 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet.c,
	  gnome/applet/applet-dbus-devices.h, src/nm-dbus-nm.c: Remove global
	  hangup code and add per-device hangup.  Tie last commit into the
	  GNOME applet.  TODO:  Save, understand, and respond to the state of
	  each dialup device.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1273 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 15:52:40 +00:00
Robert Love
9837697e06 2006-01-06 Robert Love <rml@novell.com>
Patch by Timo Hoenig <thoenig@suse.de>:
	* src/NetworkManagerSystem.h, src/nm-dbus-nm.c: Add interfaces to
	  hangup specific dialup devices.
	* src/backends/NetworkManagerDebian.c,
	  src/backends/NetworkManagerGentoo.c,
	  src/backends/NetworkManagerRedHat.c,
	  src/backends/NetworkManagerSlackware.c: Add stub backend.
	* src/backends/NetworkManagerRedHat.c,
	  src/backends/NetworkManagerSuSE.c: Add specific backend interface to
	  hangup specific dialup devices.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1272 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 15:39:55 +00:00
Robert Love
f5cfd79328 reformat
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1270 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-05 21:07:10 +00:00
Robert Love
bcbbde17ce 2006-01-04 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c,
	  gnome/applet/applet-dbus-devices.h, gnome/applet/applet.c,
	  src/nm-dbus-nm.c: Expose a menu item for hanging up active dialup
	  connections.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1269 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-05 18:56:09 +00:00
Dan Williams
9dcbf019bb 2006-01-04 Dan Williams <dcbw@redhat.com>
First dump of wpa_supplicant-related code.  It's not hooked up to
	anything yet though.  Thanks to Kay Sievers for
	wpa_supplicant_wrapper.c, which formed the basis for this work,
	and to Jouni Malinen for writing wpa_ctrl.c and wpa_ctrl.h.

	* src/Makefile.am
	  src/wpa_ctrl.[ch]
		- Add wpa_ctrl stuff from wpa_supplicant so we can talk to it

	* src/NetworkManagerUtils.[ch]
		- (nm_utils_supplicant_request, nm_utils_supplicant_request_with_check):
			Add convenience functions for talking to wpa_supplicant

	* src/nm-ap-security.[ch]
	  src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-psk.[ch]
		- Update and implement real_write_supplicant_config functions
			in all security types
		- (nm_ap_security_wpa_psk_new_from_ap): implement in
			nm-ap-security-wpa-psk.c

	* src/nm-device-802-11-wireless.c
		- (supplicant_cleanup, supplicant_watch_cb, supplicant_monitor_status_cb,
		   wpa_supplicant_start, wpa_supplicant_interface_init,
		   wpa_supplicant_send_network_config): add functions to talk to
			wpa_supplicant and write network config to it


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1267 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-05 04:44:11 +00:00
Robert Love
ab3f92194e 2006-01-04 Robert Love <rml@novell.com>
* src/NetworkManagerDialup.h: add 'type' field and NM_DIALUP_TYPE
	  values so that distribution-backends can differentiate between the
	  various types (modem, ISDN, et cetera) of dialup device that they
	  support.
	* src/backends/NetworkManagerSuSE.c: perform isdnctrl on interface, as
	  needed.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1265 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-04 19:17:43 +00:00
Dan Williams
7f07df2466 2006-01-03 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
	  src/nm-device.[ch]
	  src/nm-device-802-11-wireless.c
		- Move wireless-specific activation failure and success code
			into wireless device class


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1259 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 22:11:35 +00:00
Robert Love
ebe118b3ff 2006-01-03 Robert Love <rml@novell.com>
Patch by Preggna S:
	* src/NetworkManagerSystem.c, src/vpn-manager/nm-vpn-connection.c:
	  IPsec does not require that a VPN client be bound to an interface,
	  due to the use of the in-kernel IPSec bits.  So make the tunnel
	  device optional.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1258 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 20:58:07 +00:00
Dan Williams
d23aba6524 2006-01-03 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
		- (nm_ap_add_capabilities_from_ie): presume no WEP unless
			the WPA IE specifies that WEP is supported

	* src/nm-device-802-11-wireless.c
		- (process_scan_results): don't mark an AP as supporting WEP
			if there's already other encryption capability info


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1256 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 19:00:09 +00:00
Dan Williams
1c5f300910 2006-01-03 Dan Williams <dcbw@redhat.com>
* src/dhcp-manager/nm-dhcp-manager.c
		- Recognize activation cancellation when waiting for DHCP
			configuration from dhcdbd
		- Ignore non-dhcdbd messages

	* src/nm-device.c
		- (real_act_stage3_ip_config_start): return to correct behavior
			of letting the dhcp-manager notify us of failure or
			success rather than incorrectly doing that ourselves
		- (nm_device_activate_stage4_ip_config_get): deal with
			activation cancellation a bit earlier


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1253 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 18:18:05 +00:00
Dan Williams
f1fad5ecd0 Fix up my dates
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1252 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 17:49:57 +00:00
Dan Williams
d242edf282 2006-1-3 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
	  src/nm-device.[ch]
		- Add hooks to subclasses for stage3_ip_config_start and
			stage4_ip_config_timeout

	* src/nm-device-802-3-ethernet.c
		- (real_get_generic_capabilities): make devices NM-supported
			by default


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1251 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 17:47:38 +00:00
Robert Love
c71d14c97f 2006-01-03 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: update to newer API (no more
	  nm_device_get_hw_address); use inet_aton in lieu of inet_addr as the
	  latter cannot differentiate between error and the address -1; misc.
	  clean up.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1250 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 17:29:08 +00:00
Dan Williams
d639dbeac0 2006-1-3 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
		- Move link-checking/probing into the device subclasses
			themselves

	* src/nm-device.[ch]
	  src/nm-device-802-11-wireless.c
	  src/nm-device-802-3-ethernet.c
		- Do periodic link checking in device subclasses rather
			than being triggered from NetworkManager.c
		- discover_wireless_capabilities -> get_wireless_capabilities
		- discover_generic_capabilities -> get_generic_capabilities
		- Device subclass activation routines now return a value of type
			NMActStageReturn to indicate what step to perform next
		- Devices now override stage4_get_ip4_config if they choose


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1249 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 17:07:07 +00:00
Dan Williams
6a35ad489c 2006-1-1 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (real_init): don't chain up to parent init because we don't
			need to do that anymore

	* src/nm-device.c
		- (discover_device_type): fix arguments to ioctl() to correctly
			pass interface name
		- (nm_device_new): consolidate generic device initialization into
			nm_device_new()
		- (real_init): remove, consolidated to nm_device_new()
		- (nm_device_deactivate, real_deactivate): consolidate


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1247 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-02 02:50:47 +00:00
Dan Williams
aff2d6bdcf 2006-1-1 Dan Williams <dcbw@redhat.com>
* src/nm-activation-request.c
		- Change dhcp_state member of the NMActRequest structure
			from guint8 to guint32

	* src/dhcp-manager/nm-dhcp-manager.[ch]
		- (nm_dhcp_manager_get_state_for_device): return guint32 rather
			than guint8 to match the dbus argument.  Turns out we were
			overwriting memory since we were passing in only a guint8


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1245 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-01 22:22:39 +00:00
Dan Williams
4ed4b491fa 2005-12-31 Dan Williams <dcbw@redhat.com>
* refactor NMDevice into a GObject-based framework with separate
		objects for wired and wireless.  The following files are no
		longer used but should stick around for a bit so we don't
		loose code through the cracks:
			NetworkManagerDevice.c
			NetworkManagerDevice.h
			NetworkManagerWireless.c
			NetworkManagerWireless.h

	The intent here is to allow each device type to manage its own
	connection & activation life-cycle, ie to allow wireless devices
	to interface with wpa_supplicant, etc.  There's a fair bit of
	encapsulation breakage right now that should gradually get pulled
	back into each device, along with things like periodic property
	updates and link probing.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1244 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-31 08:21:24 +00:00
Dan Williams
2588e28c21 2005-12-29 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Add NM_802_11_CAP_PROTO_NONE since we need to recognize
			between networks that don't have any encryption at all


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1241 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-29 17:09:52 +00:00
Dan Williams
4783f65521 2005-12-29 Dan Williams <dcbw@redhat.com>
* test/test-common.c
	  test/test-common.h
	  test/Makefile.am
		- Move to a test-common subdirectory

	* test/libnm-util/test-ciphers.c
		- Move test data to test-inputs.h
		- Test WPA ciphers too

	* test/libnm-util/test-dbus-helpers.c
		- Test serialization/deserialization of ciphers


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1240 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-29 17:03:46 +00:00
Dan Williams
c957948a82 2005-12-29 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-devices.c
		- Replace 'enc' parameter with 'capabilities' for wireless networks
			in dbus calls to NM
		- Set capabilities on WirelessNetwork objects
		- Receive and save type-specific device capabilities too

	* gnome/applet/applet-dbus-info.c
	  gnome/applet/applet-dbus.c
		- Passphrase dialog no longer a singleton; new instance gets created
			on each request.  Updates to deal with that.

	* gnome/applet/applet.c
		- (nmwa_has_encrypted_networks_helper): use AP capabilities rather
			than single 'encrypted' flag
		- (nmwa_menu_add_vpn_menu): if NM isn't connected, disable any VPN
			menu items
		- Passphrase dialog updates per above

	* gnome/applet/menu-items.c
		- (network_menu_item_update): use AP capabilities to determine
			encryption

	* gnome/applet/nm-device.[ch]
		- Add accessors for type-specific device capabilities

	* gnome/applet/other-network-dialog.c
		- Rework to respect device capabilities.  i.e., if the device doesn't
			support WPA, remove that option from the security dropdown

	* gnome/applet/passphrase-dialog.c
		- Massive rework so that a new instance is created each time
			it's used, to support wireless network capabilities

	* gnome/applet/wireless-network.[ch]
		- Add accessors and members for wireless network capabilities

	* gnome/applet/wireless-security-manager.[ch]
		- (wsm_set_capabilities): called after creation to set which
			security options get shown to the user


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1238 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-29 16:54:34 +00:00
Dan Williams
4dd1456235 2005-12-29 Dan Williams <dcbw@redhat.com>
* libnm-util/cipher-wpa-psk-passphrase.c
		- (cipher_wpa_psk_passphrase_hash_func): return key as hex string
			like other ciphers


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1236 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-29 16:33:06 +00:00
Dan Williams
020309a6eb 2005-12-23 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
		- (nmi_dbus_get_key_for_network): if there's no entry in
			GConf for a network, assume we want a new key
		- (nmi_save_network_info): serialize wireless security info
			into GConf so its saved

	* src/nm-dbus-nm.c
		- Fix warning as we may not be passed security info when
			connecting to a wireless network


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1231 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-23 09:59:26 +00:00
Dan Williams
5c35a1372c 2005-12-23 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-compat.c
		- Fix bugs in GConf entry conversion

	* gnome/applet/applet-dbus-info.c
		- (nmi_dbus_get_network_properties): handle case of the BSSID
			list being zero-length

	* libnm-util/cipher-*
	  libnm-util/dbus-helpers.c
		- All ciphers must now return hashed keys as UTF-8 valid
			hexadecimal strings, ie "8f3dae4023".  They are pushed
			through dbus as strings too.
		- Consolidate various functions that do bin->hex and hex->bin
			conversion into cipher.c

	* src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-psk.c
		- Handle NULL keys since we may not know keys right away

	* src/nm-dbus-nmi.c
		- (nm_dbus_get_network_data_cb): actually advance to the start
			of the wireless security info before we try to deserialize it

	* libnm-util/test-ciphers.c
		- Update cipher tests for the change to UTF-8 hexadecimal strings


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1230 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-23 08:20:12 +00:00
Dan Williams
3d423f41e6 2005-12-22 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-compat.[ch]
		- Convert old-format GConf and keyring entries
			when the applet starts up.

	* gnome/applet/applet.c
		- (nmwa_get_instance): Call the conversion function
			on startup before dbus is initialized


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-23 01:26:17 +00:00
Dan Williams
eedb5aeaee 2005-12-22 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
		- Remove nmi_dbus_create_error_message() in favor of
			nmu_create_dbus_error_message()
		- (nmi_dbus_get_network_properties): Error message cleanups
		- (nmi_dbus_get_network_properties): BSSIDs are now in the 'bssids'
			gconf key rather than 'addresses', since they really are BSSIDs
		- (nmi_dbus_get_network_properties): Dispose of the security
			object when we're done with it


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1226 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-22 19:58:26 +00:00
Dan Williams
036e35a5ca 2005-12-21 Dan Williams <dcbw@redhat.com>
* Consolidate the info-daemon's "updateNetworkInfo" and
		"addNetworkAddress" calls into just "updateNetworkInfo"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1224 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-22 00:24:11 +00:00
Dan Williams
7ef4a5e36a 2005-12-21 Dan Williams <dcbw@redhat.com>
* Make connection after key retrieval work again


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1221 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-21 22:16:22 +00:00
Dan Williams
b5c3269266 2005-12-21 Dan Williams <dcbw@redhat.com>
* gnome/applet/nm-gconf-wso*
		- Make the serialize functions return gboolean
			rather than int

	* gnome/applet/nm-gconf-wso.c
		- (nm_gconf_wso_dispose, nm_gconf_wso_finalize): fix up
			parent class handling so we don't segfault

	* src/NetworkManagerAP.[ch]
		- (nm_ap_get_capabilities): new function, return capabilities
			now that something can use them
		- (nm_ap_set_encrypted): assume that an access point supports
			both WEP104 and WEP40 if its set encrypted.  FIXME: can
			we even tell whether it just supports WEP40?

	* src/NetworkManagerDevice.c
		- (ap_need_key): resurrect and update for the New World Order
		- (nm_device_wireless_get_activation_ap): if we're not given
			security info to use, create some based on access point
			capabilities

	* src/nm-ap-security-wep.c
		- (nm_ap_security_wep_new_from_ap): create a new object
			based on a certain access point's capabilities

	* src/nm-ap-security.c
		- (nm_ap_security_new_from_ap): delegate creation of a new
			object based on access point capabilities to a subclass
		- (nm_ap_security_copy_properties): don't segfault if we
			don't have a key yet

	* src/nm-dbus-nm.c
		- (nm_dbus_nm_set_active_device): provide more informative
			output when errors occur.  Also construct security info
			for a given access point if we weren't given any


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1219 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-21 21:08:00 +00:00
Žygimantas Beručka
9c1c832db2 2005-12-21 Žygimantas Beručka <zygis@gnome.org>
* configure.in: Added Lithuanian to ALL_LINGUAS.
        * po/lt.po: Added Lithuanian translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1218 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-21 11:17:19 +00:00
Dan Williams
29598dfdc0 2005-12-21 Dan Williams <dcbw@redhat.com>
* test/libnm-util
		- Add some testcases for WEP ciphers


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1217 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-21 08:11:57 +00:00
Dan Williams
fad972d5a0 2005-12-17 Dan Williams <dcbw@redhat.com>
* Fix bugs


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1212 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-18 02:53:32 +00:00
Dan Williams
f003ba8ef7 2005-12-17 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Finally kill NMEncKeyType

	* gnome/applet/applet-dbus-info.c
		- (nmi_save_network_info): convert to NMGConfWSO

	* gnome/applet/nm-gconf-wso-*.c
		- Implement gconf serialization functions

	* src/NetworkManagerPolicy.c
		- (nm_policy_activation_finish): fix up meaning of
			automatic/user_requested


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1211 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-17 21:39:19 +00:00
Dan Williams
a601e80848 2005-12-17 Dan Williams <dcbw@redhat.com>
* gnome/applet/*
		- More applet cleanups
		- Use the dbus-method-dispatcher

	* libnm-util/dbus-method-dispatcher.[ch]
		- Generalize the implementation from NM in
			NetworkManagerUtils.c


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1210 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-17 21:10:37 +00:00
Dan Williams
4a9cb5a3f0 2005-12-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/*
		- Fix up the passphrase dialog to use all the
			WirelessSecurityOption stuff (untested)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1208 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 22:22:42 +00:00
Robert Love
ff340cf167 2005-12-16 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Do not invoke ypbind or autofs
	  binaries unless they exist (nm_spawn_process() emits a warning if
	  asked to spawn a non-existant process).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1205 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 19:07:36 +00:00
Dan Williams
4682733535 2005-12-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
		- Clean up lots of gconf-related code


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1204 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 18:25:35 +00:00
Robert Love
4ad3dc157c 2005-12-16 Robert Love <rml@novell.com>
* Makefile.am: Build fix: Reorder 'SUBDIRS' so our deps are right.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1203 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 16:30:24 +00:00
Dan Williams
9594bca7e6 2005-12-16 Dan Williams <dcbw@redhat.com>
* nm_device_set_enc_key -> nm_device_set_wep_enc_key

	* Fix up NM -> NMI get-user-key dbus calls in NM (applet
		bits still to be done)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1202 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 15:44:12 +00:00
Dan Williams
b822a5cdc2 2005-12-16 Dan Williams <dcbw@redhat.com>
* Finally move info-daemon related stuff out of
		NetworkManagerDbus.c to nm-dbus-nmi.c


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1201 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 15:16:54 +00:00
Dan Williams
a22b039c11 2005-12-16 Dan Williams <dcbw@redhat.com>
* Kill auth_method for access points, since that's now done
		by NMAPSecurity objects

	* Add a copy-constructor of sorts to NMAPSecurity
		(how do you do this properly in glib???)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1200 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 15:04:40 +00:00
Dan Williams
7b37a13850 2005-12-15 Dan Williams <dcbw@redhat.com>
* Exorcise encryption key hashing on APs
	* Use libnm-util's serialization/deserialization in both the
		applet and NM
	* Random other stuff


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1198 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-16 03:23:36 +00:00
Robert Love
9f19609cbb 2005-12-15 Robert Love <rml@novell.com>
* gnome/applet/menu-items.c: A new icon, "network-wireless-encrypted"
	  is being added to the icon naming spec, so let's use that (Tango CVS
	  has the icon).  Because it is new, however, we fall back to the
	  current "gnome-lockscreen" if the new icon is not around, thus
	  behavior is the same.
	* gnome/applet/applet.c: Remove setup_stock().  We do not need the
	  factory junk.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1196 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-15 21:52:45 +00:00
Robert Love
540b85a116 2005-12-15 Robert Love <rml@novell.com>
* src/gnome/applet.c: Don't show the 'Help' menu item until we have,
	  well, help to give.  Couple other misc. bits.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1195 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-15 18:31:46 +00:00
Dan Williams
5cf219f7c8 2005-12-15 Dan Williams <dcbw@redhat.com>
* libnm-util/dbus-helpers.[ch]
		- Make this the one-stop-shop for serializing/deserializing
			AP & connection security settings over dbus.  Both NM
			and applets should use this to ensure consistent dbus
			API going forwared.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1194 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-15 18:24:28 +00:00
Robert Love
7ea7ac394a 2005-12-15 Robert Love <rml@novell.com>
Patch by Timo Hoenig  <thoenig@suse.de>:
	* src/NetworkManagerDbus.c
		- (nm_dbus_signal_filter) return DBUS_HANDLER_RESULT_HANDLED
			if HAL jumps off the system bus.  Otherwise libdbus
			(dbus_connection_dispatch) will try to run the filter
			function of our libhal context which is already freed.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1193 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-15 18:21:10 +00:00
Alexander Shopov
c8ff0a7364 2005-12-15 Alexander Shopov <ash@contact.bg>
* Added Bulgarian translation by
	Alexander Shopov <ash@contact.bg>


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1192 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-15 06:00:45 +00:00
Dan Williams
7ae6819f31 2005-12-14 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
	  src/NetworkManagerWireless.c
		- Rearrange 802.11 wireless-specific capabilities again

	* src/Makefile.am
		- Forgot to add wpa.c/wpa.h to the makefiles

	* src/NetworkManagerAP.[ch]
		- Implement access point capabilities and parse the
			WPA/RSN IEs into the capability bitfield
		- Switch the "encrypted" attribute to utilize the bitfield
			and capabilities rather than being independent

	* src/NetworkManagerDevice.c
		- (nm_device_wireless_get_activation_ap): break it horribly
			until we can push NMAPSecurity objects into access point
			objects and through the activation chain
		- Stuff WPA & RSN IEs into AP capabilities

	* src/nm-dbus-nm.c
		- Take a shot at actually making setActiveDevice work

	* src/wpa.[ch]
		- Make the API a bit saner


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1191 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-14 20:48:08 +00:00
Dan Williams
423383c0e5 2005-12-14 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Add 802.11-specific capability for 802.1x key
			management

	* src/wpa.[ch]
		- Pull in WPA IE and RSN IE parsing code from
			wpa_supplicant so we can determine access point
			capabilities
		- Move WPA-related constants here from NetworkManagerAP.h
			and NetworkManagerDevice.c

	* src/NetworkManagerDevice.c
	  src/NetworkManagerAP.[ch]
		- Use WPA-related constants from wpa.h


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1190 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-14 19:12:20 +00:00
Dan Williams
1da42ec835 Ooops, fix order after conflict
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1189 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-14 17:57:08 +00:00
Dan Williams
a00992c902 2005-12-14 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Update and split 802.11 wireless-specific capabilities from
			generic device capabilities

	* src/NetworkManagerDevice.c
	  src/NetworkManagerDevicePrivate.h
		- (nm_device_wireless_discover_capabilities): Move 802.11
			wireless-specific capability checks to
			NetworkManagerWireless.c
		- Rename NMDeviceWirelessOptions -> NMDevice80211WirelessOptions
		- Rename NMDeviceWiredOptions -> NMDevice80211EthernetOptions

	* src/NetworkManagerWireless.[ch]
		- (nm_802_11_wireless_discover_capabilities): Check extended
			802.11 wireless-specific capabilities of the driver


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1188 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-14 17:56:35 +00:00