Commit graph

570 commits

Author SHA1 Message Date
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
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
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
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
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
Robert Love
97962aac1a 2006-02-28 Robert Love <rml@novell.com>
* src/NetworkManagerSystem.h: Add nm_system_should_modify_resolv_conf.
	* src/backends/NetworkManagerSuSE.c: Implement the interface
	  nm_system_should_modify_resolv_conf() for SUSE.
	* src/backends/NetworkManagerDebian.c,
	  src/backends/NetworkManagerGentoo.c,
	  src/backends/NetworkManagerRedHat.c,
	  src/backends/NetworkManagerSlackware.c: Add stub.
	* src/named-manager/Makefile.am: Grab includes from src.
	* src/named-manager/nm-named-manager.c: Allow backends to disable the
	  automatic updating of resolv.conf.  This is useful for testing,
	  broken static configurations, and administrator lock-down.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1524 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 21:41:16 +00:00
Robert Love
8a98f605bc Yah, so, we don't want those dbus_free() calls.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1522 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 20:47:44 +00:00
Dan Williams
2489b982ba Make wpa_supplicant logging GSource low priority
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1520 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 20:25:04 +00:00
Dan Williams
c624a36ee8 2006-02-28 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- Move all the wpa_supplicant-related management stuff into its
			own struct, just for oranization's sake
		- (supplicant_exec): when exec-ing wpa_supplicant, connect its stdout
			to a GIOChannel/GSource
		- (supplicant_log_stdout): new function; grab output from the
			wpa_supplicant stdout pipe and write it to our logs.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1519 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 20:13:56 +00:00
Christopher Aillon
42d5ee0eeb 2006-02-27 Christopher Aillon <caillon@redhat.com>
* src/nm-device-802-11-wireless.c:
	Err, fix thinko in my previous commit.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1518 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 20:11:46 +00:00
Robert Love
929b45c69f 2006-02-28 Robert Love <rml@novell.com>
* libnm-util/dbus-helpers.c, src/nm-ap-security-wpa-eap.c,
	  src/nm-ap-security-wpa-psk.c: Fix FIXMEs: Callers of the DBUS
	  deserializers are responsible for freeing the returned DBUS strings.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1514 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 19:40:22 +00:00
Christopher Aillon
96c8e07e92 2006-02-27 Christopher Aillon <caillon@redhat.com>
* src/nm-device-wireless-802-11.c:
	The scan list is being pruned prematurely.  We should prune after
	the device has gone MIA for three scans, not one.  Split out the
	interval to realtime seconds function to better serve this.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1510 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 00:07:51 +00:00
Robert Love
598dda0255 2006-02-27 Robert Love <rml@novell.com>
* dispatcher-daemon/NetworkManagerDispatcher.c, src/NetworkManager.c:
	  Open the pid file O_TRUNC, so if it already exists we truncate it to
	  zero length.  Also, be more verbose about warnings generated during
	  writing out the pid file.  Finally, always write out the pid file if
	  in daemon mode.  Use "--pid-file" to override the default.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1509 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 20:06:24 +00:00
Robert Love
4fdea28f75 2006-02-27 Robert Love <rml@novell.com>
* dispatcher-daemon/NetworkManagerDispatcher.c, src/NetworkManager.c:
	  Open the pid file O_TRUNC, so if it already exists we truncate it to
	  zero length.  Also, be more verbose about warnings generated during
	  writing out the pid file.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1508 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 20:00:25 +00:00
Robert Love
bd62301db9 * src/vpn-manager: misc. stuff
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1507 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 18:30:04 +00:00
Robert Love
b6401e4655 * src/.cvsignore: add nm-crash-logger
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1504 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 16:25:34 +00:00
Dan Williams
e64e90cd3b 2006-02-27 Dan Williams <dcbw@redhat.com>
* dispatcher-daemon/NetworkManagerDispatcher.c
		- Accept --pid-file with a path to a pidfile, write it out on
			startup, and delete it on shutdown

	* src/NetworkManager.c
		- Accept --pid-file with a path to a pidfile, write it out on
			startup, and delete it on shutdown
		- Move nm_print_usage() lower

	* initscripts/RedHat/NetworkManager.in
		- Use new --pid-file option
		- Fix service stopping to wait a bit for NM to quit

	* initscripts/RedHat/NetworkManagerDispatcher.in
		- Use new --pid-file option


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1500 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 05:50:28 +00:00
Dan Williams
b06df42628 2006-02-26 Dan Williams <dcbw@redhat.com>
* src/Makefile.am
		- make and install nm-crash-logger

	* src/nm-logging.[ch]
	  	- New files; consolidate logging and crash handling

	* src/nm-crash-logger.c
	  src/gdb-cmd
		- Standalong crashlogger for NM, grab a backtrace
			using GDB

	* src/NetworkManager.[ch]
		- Remove signal handling and put it into nm-logging.c


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1499 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 04:31:52 +00:00
Dan Williams
ad38b25413 2006-02-26 Dan Williams <dcbw@redhat.com>
* configure.in
	  gnome/applet/Makefile.am
		- Conditionalize all the notify stuff

	Merge most of Chris Aillon's notification patch:

	* gnome/applet/applet-notifications.[ch]
		- New files; show a notification

	* gnome/applet/applet-dbus-devices.[ch]
		- (nmwa_dbus_device_activated, nmwa_dbus_device_activated_cb,
		   nmwa_dbus_device_deactivated, nmwa_dbus_device_deactivated_cb):
			new functions, do the right thing when a device change occurs

	* gnome/applet/applet-dbus.c
		- (nmwa_dbus_filter): Split out DeviceNowActive and DeviceNoLongerActive
			signals, so we can handle them specially

	* gnome/applet/applet.[ch]
		- nmwa_schedule_vpn_login_banner -> nmwa_show_vpn_login_banner
		- nmwa_schedule_vpn_failure_alert -> nmwa_show_vpn_failure_alert
		- (nmwa_notify_state): remove
		- (nmwa_update_state); remove call to nmwa_notify_state, since the
			notification work is now done when the appropriate dbus signals
			are received.
		- (nmwa_show_vpn_login_banner, nmwa_show_vpn_failure_alert): don't
			defer execution of the notification/dialog stuff.  That was an
			artifact of the previous multi-threaded nature of the applet
			and is now pointless.
		- (nmwa_notify_vpn_failure, nmwa_notify_vpn_login_banner): remove,
			no longer needed.  Function folded into applet-notifications.c

	* src/NetworkManagerPolicy.c
		- (nm_policy_activation_finish): send the AP along with the device
			status change signal, if the connection is wireless.  Should
			fix the race where applet would show a connection to "unknown"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1498 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-26 06:52:26 +00:00
Robert Love
eaca24a5be [ Add new files; missing from previous commit. ]
2006-02-25  Robert Love  <rml@novell.com>

	Add WPA Enterprise support:
	* gnome/applet/Makefile.am: Build the files nm-gconf-wso-wpa-eap.c and
	  nm-gconf-wso-wpa-eap.h.
	* gnome/applet/nm-gconf-wso-wpa-eap.c,
	  gnome/applet/nm-gconf-wso-wpa-eap.h:  Add WPA Enterprise Gconf
	  serialization and deserialization.
	* gnome/applet/nm-gconf-wso-wpa-psk.c, gnome/applet/nm-gconf-wso.c,
	  gnome/applet/wireless-security-option.c, gnome/applet/wso-wpa-psk.c,
	  gnome/applet/wso-wpa-psk.h: Clean up, support new defines.
	* gnome/applet/wireless-applet.glade: Add UI for configurating security
	  settings related to WPA Enterprise.
	* gnome/applet/wireless-security-manager.c: Invoke wso_wpa_eap_new() to
	  instantiate WPA Enterprise wireless-security-option.
	* gnome/applet/wso-wpa-eap.c, gnome/applet/wso-wpa-eap.h: New files.
	  Implement WPA Enterprise wireless-security-option object.
	* include/NetworkManager.h: Add new NM_AUTH_TYPE_* and NM_EAP_METHOD_*
	  defines.  Cleanup.
	* libnm-util/cipher-wpa-psk-hex.c,
	  libnm-util/cipher-wpa-psk-passphrase.c: Cleanup.
	* libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h: Add
	  nmu_security_serialize_wpa_eap() to serialize input to DBUS method,
	  nmu_security_serialize_wpa_eap_with_cipher() to serialize input
	  including the cipher to DBUS method, and
	  nmu_security_deserialize_wpa_eap() to deserialize from DBUS return
	  to output.
	* src/Makefile.am: Build the files nm-ap-security-wpa-eap.c and
	  nm-ap-security-wpa-eap.h
	* src/NetworkManagerAP.c: Add NM_AUTH_TYPE_WPA_EAP to
	  NM_802_11_CAP_KEY_MGMT_802_1X cipher to capability mapping.
	* src/nm-ap-security-wpa-eap.c, src/nm-ap-security-wpa-eap.h: New
	  files.  Implement NMAPSecurityWPA_EAP object.
	* src/nm-ap-security-wpa-psk.c: Cleanup.
	* src/nm-ap-security.c: Support NM_AUTH_TYPE_EAP cipher and instantiate
	  an NMAPSecurityWPA_EAP object via the method
	  nm_ap_security_wpa_eap_new_deserialize().
	* src/nm-dbus-nm.c: Cleanup.
	* test/nm-tool.c: Display "Enterprise" for wireless networks providing
	  WPA Enterprise support.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1494 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-26 02:24:46 +00:00
Robert Love
7301a244b2 2006-02-25 Robert Love <rml@novell.com>
Add WPA Enterprise support:
	* gnome/applet/Makefile.am: Build the files nm-gconf-wso-wpa-eap.c and
	  nm-gconf-wso-wpa-eap.h.
	* gnome/applet/nm-gconf-wso-wpa-eap.c,
	  gnome/applet/nm-gconf-wso-wpa-eap.h:  Add WPA Enterprise Gconf
	  serialization and deserialization.
	* gnome/applet/nm-gconf-wso-wpa-psk.c, gnome/applet/nm-gconf-wso.c,
	  gnome/applet/wireless-security-option.c, gnome/applet/wso-wpa-psk.c,
	  gnome/applet/wso-wpa-psk.h: Clean up, support new defines.
	* gnome/applet/wireless-applet.glade: Add UI for configurating security
	  settings related to WPA Enterprise.
	* gnome/applet/wireless-security-manager.c: Invoke wso_wpa_eap_new() to
	  instantiate WPA Enterprise wireless-security-option.
	* gnome/applet/wso-wpa-eap.c, gnome/applet/wso-wpa-eap.h: New files.
	  Implement WPA Enterprise wireless-security-option object.
	* include/NetworkManager.h: Add new NM_AUTH_TYPE_* and NM_EAP_METHOD_*
	  defines.  Cleanup.
	* libnm-util/cipher-wpa-psk-hex.c,
	  libnm-util/cipher-wpa-psk-passphrase.c: Cleanup.
	* libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h: Add
	  nmu_security_serialize_wpa_eap() to serialize input to DBUS method,
	  nmu_security_serialize_wpa_eap_with_cipher() to serialize input
	  including the cipher to DBUS method, and
	  nmu_security_deserialize_wpa_eap() to deserialize from DBUS return
	  to output.
	* src/Makefile.am: Build the files nm-ap-security-wpa-eap.c and
	  nm-ap-security-wpa-eap.h
	* src/NetworkManagerAP.c: Add NM_AUTH_TYPE_WPA_EAP to
	  NM_802_11_CAP_KEY_MGMT_802_1X cipher to capability mapping.
	* src/nm-ap-security-wpa-eap.c, src/nm-ap-security-wpa-eap.h: New
	  files.  Implement NMAPSecurityWPA_EAP object.
	* src/nm-ap-security-wpa-psk.c: Cleanup.
	* src/nm-ap-security.c: Support NM_AUTH_TYPE_EAP cipher and instantiate
	  an NMAPSecurityWPA_EAP object via the method
	  nm_ap_security_wpa_eap_new_deserialize().
	* src/nm-dbus-nm.c: Cleanup.
	* test/nm-tool.c: Display "Enterprise" for wireless networks providing
	  WPA Enterprise support.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1493 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-26 02:16:53 +00:00
Robert Love
63cd1b345d 2006-02-24 Robert Love <rml@novell.com>
Patch from Timo Hoenig <thoenig@suse.de>:
	* src/NetworkManagerDbus.c: Survive DBUS restarts like a champ.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1490 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-24 18:59:03 +00:00
Robert Love
fe1ae75408 2006-02-15 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c: Use LOCALSTATEDIR preprocessor
	  define, not an open-coded "/var", for WPA_SUPPLICANT_GLOBAL_SOCKET
	  and WPA_SUPPLICANT_CONTROL_SOCKET.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1476 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-15 21:46:42 +00:00
Robert Love
8cd691824c s/Stage x (foo) of y/Stage x of y (foo)/g
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1475 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-15 21:19:09 +00:00
Robert Love
ff9ec8e962 2006-02-15 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c, src/nm-device.c: When printing debug
	  information about what connection stage we are at, provide the total
	  number of stages, e.g. "Stage 2 of 5", so users know how far along
	  they are if they experience problems.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1474 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-15 18:33:28 +00:00
Robert Love
7eb0e146b2 2006-02-14 Robert Love <rml@novell.com>
* src/NetworkManager.c: Call closelog() on daemon shutdown to close
	  syslog's file descriptor.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1472 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-14 22:29:12 +00:00
Robert Love
8ab357c1b5 2006-02-14 Robert Love <rml@novell.com>
Fix problem since change to "deal with APs changing settings on us," checked
	in on the fifth of February in the year of the dog, wherein connecting to
	non-broadcast encrypted networks always fails because nm_ap_get_encrypted()
	always returns FALSE, even when the user provided a key, because the
	newly-created fake AP does not have any capabilities set, which is a sypmtom
	of security settings not matching capabilities (Novell bug #150787):
	* src/NetworkManagerAP.c, src/NetworkManagerAP.h: Add new interface,
	  nm_ap_add_capabilities_from_security(), which sets the given AP's
	  capabilities off the given security settings.  Also improve our handling of
	  capabilities w.r.t. NM_802_11_CAP_PROTO_NONE and NM_AUTH_CIPHER_AUTO.
	* src/nm-device-802-11-wireless.c: Call nm_ap_add_capabilities_from_security
	  to ensure that capabilities match newly updated security settings.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1470 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-14 19:46:20 +00:00
Robert Love
489eaac499 2006-02-14 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c: Clean up nm_warning calls: Print the error
	  as a string, not an integer, if possible; do not print the function name
	  twice; always give the interface, if possible; misc. cleanup.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1469 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-14 17:37:40 +00:00
Dan Williams
d8dc2c07f9 2006-02-12 Dan Williams <dcbw@redhat.com>
Patch from Tom Parker <palfrey@tevp.net>
	* src/NetworkManagerSystem.h
		- Remove prototype for nm_system_device_setup_static_ip4_config(),
			no longer used

	* src/backends/NetworkManagerDebian.c
		- Remove some dead code (nm_system_device_setup_static_ip4_config) and
			unused variables


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1466 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-13 02:16:40 +00:00
Vinay A R
ecc005aa03 2006-02-09 Dan Williams <dcbw@redhat.com>
Patch from: Vinay A R <rvinay@novell.com>
	* src/vpn-manager/nm-vpn-act-request.[ch]
		- Added 'routes' and 'routes_count' to struct NMVPNActRequest since
			IPSec VPNs require them for std gateway.
		- (nm_vpn_act_request_new): takes arguments for 'user_routes'
			and 'user_routes_count'
		- (nm_vpn_act_request_get_user_routes): new function; gets user
			defined routes	from NMVPNActRequest object, returns the string
			array of routes.

	* src/vpn-manager/nm-vpn-manager.[ch]
		- (nm_vpn_manager_activate_vpn_connection): take additional arguments
			for 'user_routes' and 'user_routes_count'

	* src/vpn-manager/nm-dbus-vpn.c
		- (nm_dbus_vpn_activate_connection): gets 'user_routes' from
			nm_dbus_vpn_get_routes() to pass to nm_vpn_manager_activate_vpn_connection()

	* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_stage3_connect): pass user routes over dbus to
			the vpn daemon

	Modifications by Dan:
	* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_stage3_connect): ensure that we don't pass NULL string
			arrays into dbus

	* vpn-daemons/vpnc/src/nm-vpnc-service.c
	* vpn-daemons/pptp/src/nm-pptp-service.c
	* vpn-daemons/openvpn/src/nm-openvpn-service.c
		- Grab user routes from dbus message
		- Free all string arrays we got from dbus


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1463 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-13 02:01:44 +00:00
Robert Love
3efccccd74 Coding style.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1457 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-06 20:31:43 +00:00
Robert Love
fbcdafef3b 2006-02-06 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c: Fix leak in supplicant_status_cb().


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1456 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-06 18:26:41 +00:00
Robert Love
dc0ce48841 2006-02-06 Robert Love <rml@novell.com>
* src/NetworkManagerUtils.c: kill_newline(): 'l' is unsigned so the
	  test ">=" is never false.  If no newline is found, we loop forever.
	  We can just check for ">" because the following if will see zero-th
	  argument if the while gets that far.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1455 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-06 17:12:04 +00:00
Robert Love
5167dc508c src/nm-device-802-11-wireless.c: Make get_supplicant_timeout() return unsigned,
not signed, integers as that is what g_timeout_source_new() expects and, as we
all know, unsigned RULES.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1453 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 23:54:47 +00:00
Dan Williams
f10cff435d 2006-02-05 Dan Williams <dcbw@redhat.com>
Refine handling of non-broadcast networks.

	* src/NetworkManagerAPList.c
		- (nm_ap_list_merge_scanned_ap): unconditionally copy the 'broadcast'
			property from scanned AP to the AP from the device list

	* src/nm-device-802-11-wireless.c
		- (supplicant_send_network_config): use ap_scan=1 for all networks
			except non-SSID-broadcasting and Ad-Hoc networks.  Use
			ap_scan=2 for those.  Also, don't set scan_ssid for Ad-Hoc
			networks since those don't have APs.
		- (add_new_ap_to_device_list): if there's no valid SSID, mark the
			AP as non-SSID-broadcasting
		- (process_scan_results): don't handle non-SSID-broadcasting here


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1452 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 23:52:49 +00:00
Robert Love
c23f1b14de src/nm-device-802-11-wireless.c: missing space.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1451 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 23:50:28 +00:00
Dan Williams
fbf6364af5 2006-02-05 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (get_supplicant_timeout): new function; return
			NM_SUPPLICANT_TIMEOUT * 2 for cards that support more than
			14 channels.  These are likely a/b/g cards, like Atheros, and
			slow as hell to scan.
		- (supplicant_timeout_cb, supplicant_monitor_start): use
			get_supplicant_timeout()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1450 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 23:29:03 +00:00
Dan Williams
2926a9777d 2006-02-05 Dan Williams <dcbw@redhat.com>
* src/dhcp-manager/nm-dhcp-manager.c
		- Loose a commit race with Robert; make sure size check
			uses size of DHCP_SERVICE_LEN, not hardcoded 15


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1448 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 16:07:12 +00:00
Robert Love
5aba504db7 2006-02-05 Robert Love <rml@novell.com>
Patch by Christoph Brill <chrisbrill@gmx.net>
	* src/dhcp-manager/nm-dhcp-manager.c: Replace two open coded defines
	  with DHCP_SERVICE_NAME.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1447 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 15:55:44 +00:00
Dan Williams
a0d0719dfb 2006-02-05 Dan Williams <dcbw@redhat.com>
Remove anything having to do with device_setup_func from the
	AP security objects, since it's no longer used.

	* src/nm-ap-security.h
		- Kill device_setup_func and nm_ap_security_device_setup()

	* src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-psk.c
		- (real_device_setup): remove

	* src/nm-ap-security.c
		- (real_device_setup): remove
		- (nm_ap_security_device_setup): remove

	* src/nm-device-802-11-wireless.[ch]
		- (nm_device_802_11_wireless_set_wep_enc_key): make static
		- (set_wireless_config, wireless_configure_adhoc): remove; unused
			and done by wpa_supplicant now anyway


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1446 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 06:05:55 +00:00
Dan Williams
53a4703ea8 2006-02-05 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (ap_need_key, real_act_stage2_config): deal with APs changing
			settings on us.  Previously NM would loop asking for the
			key but getting the same one back.  Now, if the NMI-supplied
			cipher doesn't overlap with the scanned AP capabilities,
			we request a completely new key from the user.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1445 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 05:55:06 +00:00
Dan Williams
52eb85845a 2006-02-05 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c
		- (nm_utils_supplicant_request_with_check, nm_utils_supplicant_request):
			Handle newline killing better


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1444 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 05:50:03 +00:00
Robert Love
77e9f0997e 2006-02-03 Robert Love <rml@novell.com>
* src/NetworkManagerUtils.c: Even for debugging, we should not log the
	  user's encryption key, so we print the err_msg_cmd not the command,
	  if available.  So long as SUPPLICANT_DEBUG is default, this makes
	  sense.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1441 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-03 20:18:58 +00:00
Robert Love
133134e225 2006-02-03 Robert Love <rml@novell.com>
* src/nm-device-802-11-wireless.c, src/nm-device-802-11-wireless.h:
	  Make nm_device_802_11_wireless_get_essid() return 'const char *' not
	  'char *'.
	* src/nm-ip4-config.c, src/nm-ip4-config.h: Make the functions
	  nm_ip4_config_get_hostname() and
	  nm_ip4_config_get_nis_domain() return 'const char *' not 'char *'.
	* src/backends/NetworkManagerSuSE.c: Fix up for above.  Also, do not
	  leak g_strdup() result.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1437 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-03 17:40:44 +00:00
Robert Love
7f96832191 2006-02-03 Robert Love <rml@novell.com>
* src/NetworkManagerAP.c: In nm_ap_new(), default new networks to
	  broadcast == TRUE.  Also, copy broadcast and artificial properties
	  from source network to destination in nm_ap_copy().
	* src/nm-device-802-11-wireless.c: Don't set broadcast flag to TRUE,
	  since we now default new networks to non-hidden.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1435 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-03 15:37:28 +00:00
Robert Love
fa2f9181ec src/nm-device-802-11-wireless.c: add space to nm_info().
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1431 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-02 21:22:09 +00:00
Robert Love
35238722d9 2006-02-02 Robert Love <rml@novell.com>
* src/Makefile.am: If we aren't going to create the run directory at,
	  uh, run-time, create it during install.  Then users just doing
	  'make install' are cool, too.  While we are here, create the
	  dispatcher.d directory, too.
	* src/nm-device-802-11-wireless.c: Let the Makefile define and pass in
	  the exact run directory.
	* Makefile.am: Install nm-applet.desktop.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1430 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-02 20:52:43 +00:00
Robert Love
2f71e13495 2006-02-02 Robert Love <rml@novell.com>
* src/NetworkManagerAP.c: Add 'broadcast' property to the NMAccessPoint
	  structure, which denotes whether or not the AP is hidden.  This is a
	  superset of 'artificial' -- we need 'broadcast' because a hidden AP
	  can show up in the scan list.  Add nm_ap_get_broadcast() and
	  nm_ap_set_broadcast() accessor interfaces.
	* src/NetworkManagerAP.h: Add prototypes for nm_ap_get_broadcast() and
	  nm_ap_set_broadcast().
	* src/nm-dbus-net.c: Add new argument, boolean broadcast, to the
	  "getProperties" method, which denotes whether or not the given
	  network is hidden.
	* src/nm-device-802-11-wireless.c: Set broadcast to FALSE when creating
	  an artificial network.  Set broadcast to TRUE when scanning returns
	  an ESSID and FALSE when not.
	* gnome/applet/applet-dbus-devices.c: Retrieve 'broadcast' argument
	  from "getProperties" method on a network.  Possible TODO is to
	  somehow display this.
	* test/nm-tool.c: Display "Hidden" if the AP does not broadcast.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1429 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-02 18:05:19 +00:00