Find a file
Dan Williams 54aac18883 2008-04-07 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Remove the DOWN and CANCELLED device states
		- Add UNMANAGED and UNAVAILABLE device states
		- Document the device states

	* introspection/nm-device.xml
	  src/nm-device-interface.c
	  src/nm-device-interface.h
		- Add the 'managed' property

	* test/nm-tool.c
		- (detail_device): print out device state

	* src/NetworkManagerSystem.h
	  src/backends/NetworkManagerArch.c
	  src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerFrugalware.c
	  src/backends/NetworkManagerGentoo.c
	  src/backends/NetworkManagerMandriva.c
	  src/backends/NetworkManagerPaldo.c
	  src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerSlackware.c
	  src/backends/NetworkManagerSuSE.c
		- (nm_system_device_get_system_config, nm_system_device_get_disabled
		   nm_system_device_free_system_config): remove; they were unused and
			their functionality should be re-implemented in each distro's
			system settings service plugin 

	* src/nm-gsm-device.c
	  src/nm-gsm-device.h
	  src/nm-cdma-device.c
	  src/nm-cdma-device.h
		- (*_new): take the 'managed' argument

	* src/nm-device.c
		- (nm_device_set_address): remove, fold into nm_device_bring_up()
		- (nm_device_init): start in unmanaged state, not disconnected
		- (constructor): don't start device until the system settings service
			has had a chance to figure out if the device is managed or not
		- (nm_device_deactivate, nm_device_bring_up, nm_device_bring_down):
			don't set device state here, let callers handle that as appropriate
		- (nm_device_dispose): don't touch the device if it's not managed
		- (set_property, get_property, nm_device_class_init): implement the
			'managed' property
		- (nm_device_state_changed): bring the device up if its now managed,
			and deactivate it if it used to be active
		- (nm_device_get_managed, nm_device_set_managed): do the right thing
			with the managed state

	* src/nm-hal-manager.c
		- (wired_device_creator, wireless_device_creator, modem_device_creator):
			take initial managed state and pass it along to device constructors
		- (create_device_and_add_to_list): get managed state and pass to
			type creators

	* src/nm-device-802-11-wireless.c
		- (real_can_activate): fold in most of
			nm_device_802_11_wireless_can_activate()
		- (can_scan): can't scan in UNAVAILABLE or UNMANAGED
		- (link_timeout_cb): instead of deactivating, change device state and
			let the device state handler to it
		- (real_update_hw_address): clean up
		- (state_changed_cb): when entering UNAVAILABLE state, schedule an idle
			handler to transition to DISCONNECTED if the device isn't rfkilled

	* src/nm-device-802-3-ethernet.c
		- (set_carrier): move above callers and get rid of prototype
		- (device_state_changed): when entering UNAVAILABLE state, schedule an
			idle handler to transition to DISCONNECTED if the device has a
			carrier
		- (real_update_hw_address): clean up
		- (link_timeout_cb, ppp_state_changed): change state instead of calling
			deactivation directly as deactivation doesn't change state anymore

	* src/NetworkManagerPolicy.c
		- (schedule_activate_check): yay, remove wireless_enabled hack since
			the NMManager and wireless devices work that out themselves now
		- (device_state_changed): change to a switch and update for new device
			states
		- (device_carrier_changed): remove; device handles this now through
			state changes
		- (device_added): don't care about carrier any more; the initial
			activation check will happen when the device transitions to
			DISCONNECTED

	* src/nm-manager.c
		- (dispose): clear unmanaged devices
		- (handle_unmanaged_devices): update unmanaged device list and toggle
			the managed property on each device when needed
		- (system_settings_properties_changed_cb): handle signals from the
			system settings service
		- (system_settings_get_unmanaged_devices_cb): handle callback from
			getting the unmanaged device list method call
		- (query_unmanaged_devices): ask the system settings service for its
			list of unmanaged devices
		- (nm_manager_name_owner_changed, initial_get_connections): get unmanaged
			devices
		- (manager_set_wireless_enabled): push rfkill state down to wireless
			devices directly and let them handle the necessary state transitions
		- (manager_device_state_changed): update for new device states
		- (nm_manager_add_device): set initial rfkill state on wireless devices
		- (nm_manager_remove_device): don't touch the device if it's unmanaged
		- (nm_manager_activate_connection): return error if the device is
			unmanaged
		- (nm_manager_sleep): handle new device states correctly; don't change
			the state of unavailable/unmanaged devices

	* libnm-glib/nm-device-802-11-wireless.c
		- (state_changed_cb): update for new device states



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3540 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-04-08 02:58:02 +00:00
callouts 2007-11-26 Dan Williams <dcbw@redhat.com> 2007-11-26 16:59:47 +00:00
dispatcher-daemon 2008-03-24 Dan Williams <dcbw@redhat.com> 2008-03-24 15:17:30 +00:00
docs 2008-02-27 Dan Williams <dcbw@redhat.com> 2008-02-28 02:07:21 +00:00
examples/python 2006-05-24 Robert Love <rml@novell.com> 2006-05-24 15:53:07 +00:00
include 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
initscript 2008-04-01 Dan Williams <dcbw@redhat.com> 2008-04-01 21:26:09 +00:00
introspection 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
libnm-glib 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
libnm-util Add missing include 2008-04-04 20:26:13 +00:00
man Update .cvsignore for new manpage location 2006-12-03 03:45:23 +00:00
marshallers 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 01:43:17 +00:00
po Updated Belarusian Latin translation. 2008-03-29 19:44:53 +00:00
src 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
system-settings 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 01:41:49 +00:00
test 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
tools Distribute doc tools too 2008-03-24 17:42:17 +00:00
vpn-daemons 2008-03-19 Gabor Kelemen <kelemeng@gnome.hu> 2008-03-19 12:41:40 +00:00
.cvsignore Add 2005-08-10 18:08:29 +00:00
.gitignore Add some more files to .gitignore. 2008-02-28 20:28:14 +00:00
AUTHORS * AUTHORS: Update. 2006-02-26 02:34:15 +00:00
autogen.sh 2008-03-06 Dan Williams <dcbw@redhat.com> 2008-03-07 00:45:34 +00:00
ChangeLog 2008-04-07 Dan Williams <dcbw@redhat.com> 2008-04-08 02:58:02 +00:00
configure.in 2008-04-05 Dan Williams <dcbw@redhat.com> 2008-04-05 16:28:24 +00:00
CONTRIBUTING 2004-08-13 Dan Williams <dcbw@redhat.com> 2004-08-13 15:41:31 +00:00
MAINTAINERS Update MAINTAINERS 2007-09-02 23:57:41 +00:00
Makefile.am 2008-04-05 Dan Williams <dcbw@redhat.com> 2008-04-05 16:28:24 +00:00
NetworkManager.pc.in 2008-03-04 Dan Williams <dcbw@redhat.com> 2008-03-04 21:59:24 +00:00
NEWS NEWS: Synchronize with the 0.6 branch 2006-03-28 15:13:06 +00:00
README Fix README linebreaks (patch from Michael Biebl) 2008-01-03 15:35:57 +00:00
TODO TODO: update 2006-04-06 17:49:21 +00:00

THEORY OF OPERATION:

NetworkManager attempts to keep an active network connection available at all
times.  The point of NetworkManager is to make networking configuration and
setup as painless and automatic as possible.  If using DHCP, NetworkManager is
_intended_ to replace default routes, obtain IP addresses from a DHCP server,
and change nameservers whenever it sees fit.  In effect, the goal of
NetworkManager is to make networking Just Work.  If you have special needs,
we'd like to hear about them, but understand that NetworkManager is not
intended to serve the needs of all users.


From a list of all adapters currently installed on the system, NetworkManager
will first try a wired and then a wireless adapter.  Wireless adapters that
support wireless scanning are preferred over ones that cannot.  NetworkManager
does not try to keep a connection up as long as possible, meaning that plugging
into a wired network will switch the connection to the wired network away from
the wireless one.

For wireless networking support, NetworkManager keeps a list of wireless
networks, the preferred list.  Preferred Networks are wireless networks that
the user has explicitly made NetworkManager associate with at some previous
time.  So if the user walks into a Starbucks and explicitly asks NetworkManager
to associate with that Starbucks network, NetworkManager will remember the
Starbucks network information from that point on.  Upon returning to that
Starbucks, NetworkManager will attempt to associate _automatically_ with the
Starbucks network since it is now in the Preferred Networks list.  The point of
this is to ensure that only the user can determine which wireless networks to
associate with, and that the user is aware which networks are security risks
and which are not.


STRUCTURE:

NetworkManager runs as a root-user system level daemon, since it
must manipulate hardware directly.  It communicates over DBUS with a
desktop-level per-user process, nm-applet.  Since Preferred Networks are
user-specific, there must be some mechanism of getting this information
per-user.  NetworkManager cannot store that information as it is user-specific,
and therefore communicates over DBUS to the user daemon which provides those
lists.  NetworkManager also provides an API over DBUS for any DBUS-aware
application to determine the current state of the network, including available
wireless networks the computer is aware of and specific details about those
networks.  This API also provides the means for forcing NetworkManager to
associate with a specific wireless network.  Use of DBUS allows separation of
NetworkManager, which requires no user-interface, and the parts of the user
interface which might be desktop environment specific.

The nm-applet provides a DBUS service called NetworkManagerInfo, which should
provide to NetworkManager the Preferred Networks lists upon request.  It also
should be able to display a dialog to retrieve a WEP/WPA key or passphrase from
the user when NetworkManager requests it.  The GNOME version of
NetworkManagerInfo, for example, stores Preferred Networks in GConf and
WEP/WPA keys in gnome-keyring, and proxies that information to NetworkManager
upon request.