My changes to NetworkManager

Dan Williams 45fbbecb52 Tagged for release 0.7.0-rc1 15 anni fa
callouts bfb7243663 2008-10-29 Dan Williams <dcbw@redhat.com> 15 anni fa
docs 0dfa8e9caf 2008-08-12 Tambet Ingo <tambet@gmail.com> 15 anni fa
examples 98192881d3 2006-05-24 Robert Love <rml@novell.com> 18 anni fa
gfilemonitor d7940bcb9b Rename private nm_* functions to _nm_* 15 anni fa
include f029b6f4e9 2008-10-22 Dan Williams <dcbw@redhat.com> 15 anni fa
initscript 0e1c398c66 Add bits to optionally block startup until a conneciton is made 16 anni fa
introspection f029b6f4e9 2008-10-22 Dan Williams <dcbw@redhat.com> 15 anni fa
libnm-glib bfb7243663 2008-10-29 Dan Williams <dcbw@redhat.com> 15 anni fa
libnm-util c647258f1b Fix IPv6 prefix length 15 anni fa
man 03194ce96d 2008-04-27 Dan Williams <dcbw@redhat.com> 16 anni fa
marshallers d7940bcb9b Rename private nm_* functions to _nm_* 15 anni fa
po 4fa7c20784 2008-11-01 Dan Williams <dcbw@redhat.com> 15 anni fa
policy 2f9019b268 Build fixes from Michael Biebl 16 anni fa
src c509752fde 2008-11-02 Dan Williams <dcbw@redhat.com> 15 anni fa
system-settings 2c78fb12b6 2008-10-30 Dan Williams <dcbw@redhat.com> 15 anni fa
test bfb7243663 2008-10-29 Dan Williams <dcbw@redhat.com> 15 anni fa
tools 22f1d21754 Distribute doc tools too 16 anni fa
vpn-daemons ec35b4516f Clarify translatable (bgo #554244) 15 anni fa
.cvsignore c66edf8839 Add 19 anni fa
.gitignore f37e10a2bc Add some more files to .gitignore. 16 anni fa
AUTHORS 68f8cc77bd 18 anni fa
CONTRIBUTING 1984461297 2004-08-13 Dan Williams <dcbw@redhat.com> 20 anni fa
COPYING 32aa436b40 Clarify licensing on all files 15 anni fa
ChangeLog 10ab020b29 2008-11-02 Dan Williams <dcbw@redhat.com> 15 anni fa
MAINTAINERS c4194f501e Update MAINTAINERS 16 anni fa
Makefile.am 09294555c0 2008-08-12 Tambet Ingo <tambet@gmail.com> 15 anni fa
NEWS 348ed3e98d 18 anni fa
NetworkManager.pc.in 529a246913 2008-03-04 Dan Williams <dcbw@redhat.com> 16 anni fa
README 8a43d6fde8 Fix README linebreaks (patch from Michael Biebl) 16 anni fa
TODO a1346d9780 18 anni fa
autogen.sh 725a9825a7 2008-08-18 Dan Williams <dcbw@redhat.com> 15 anni fa
configure.in 8d19530da2 2008-09-18 Dan Williams <dcbw@redhat.com> 15 anni fa

README

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.