Commit Graph

4279 Commits

Author SHA1 Message Date
Robert Love
eca4d33050 misc. comment updates.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1099 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-11-04 20:57:59 +00:00
Christopher Aillon
d52b45a03a 2005-11-02 Christopher Aillon <caillon@redhat.com>
* src/NetworkManagerPolicy.c:
	(nm_policy_device_change_check) Clarify wireless switch nm_info text


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1088 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-11-02 06:29:06 +00:00
Dan Williams
044acdad23 2005-10-27 Dan Williams <dcbw@redhat.com>
Start using libnl.  You need 1.0-pre3 or higher.  Eventually
	we should replace most of the distro-specific backend code
	with libnl stuff.

	Get it here:  http://people.suug.ch/~tgr/libnl/

	* configure.in
	  src/Makefile.am
		- Add checks for libnl pkgconfig file
		- Use LIBNL_LIBS & LIBNL_CFLAGS

	* src/NetworkManagerSystem.c
	  src/nm-ip4-config.[ch]
		- Use libnl rather than ioctl() for most things
		- Remove unused functions


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1082 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-28 03:16:02 +00:00
Dan Williams
5035d2ae01 Don't try to free a nonexistent error
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1081 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-28 03:11:43 +00:00
Robert Love
96834afcc2 2005-10-27 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: fix warning message text


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1079 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-27 20:08:23 +00:00
Dan Williams
d29cc5bae0 2005-10-25 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
		- (get_scan_results): cleanups, deal cleanly with ENODATA signifying
			no scan results
		- (free_process_scan_cb_data): unref the device when freeing results
		- (nm_device_wireless_process_scan_results): free scan results a bit later
			so we don't unref the device underneath ourselves


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1073 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-26 15:49:38 +00:00
Dan Williams
d209f3a6d0 2005-10-25 Dan Williams <dcbw@redhat.com>
* Back out 2005-10-24 commit from Tor Krill.  Patch
		causes nameservers never to be removed from named.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1072 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-26 02:40:46 +00:00
Dan Williams
a81faff483 2005-10-24 Dan Williams <dcbw@redhat.com>
Clean up wireless scanning and wireless link probing.  Goal: to not be as
	touchy with intermittent connections.

	* src/NetworkManagerDevice.c
		- (nm_device_probe_wireless_link_state): instead of calling nm_get_best_ap(),
			just see if there's an activation request on the device, and check the
			current link against the activation request access point's ESSID.
		- (link_to_specific_ap): increase the # of failed links we tolerate from 3 to 6
		- (nm_device_wireless_process_scan_results): actually free our scan data, and
			don't call process_scan_results() on zero-length data
		- (nm_device_set_wireless_scan_interval): increase the init scan interval to
			15 seconds (from 10)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1070 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-25 00:56:55 +00:00
Dan Williams
af55ad0ff5 2005-10-24 Dan Williams <dcbw@redhat.com>
* src/backends/interface_parser.c
		- Add void to function declarations that need it
			to match patch from Engin AYDOGAN

	* src/backends/interface_parser.h
		- Remove unused prototype for ifparser_interfaces()

	Patch from Engin AYDOGAN <engin@bzzzt.biz>
	* src/backends/interface_parser.h:
		- Compile fixes for gcc 4.0.2 (add void)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1068 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-24 15:04:28 +00:00
Dan Williams
f54406831c 2005-10-24 Dan Williams <dcbw@redhat.com>
Patch from Tor Krill <tor@krill.nu>
	* src/named-manager/nm-named-manager.c
		- Write more than just the first nameserver to /etc/resolv.conf
		- Write out valid /etc/resolv.conf on exit


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1067 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-24 14:49:26 +00:00
Christopher Aillon
7cd89af612 2005-10-19 Christopher Aillon <caillon@redhat.com>
* src/backends/NetworkManagerGentoo.c:
	Fix path to killall.  Patch from Dave Shanker <dshanker@gmail.com>


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1064 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-21 21:50:49 +00:00
Robert Love
2930c9c4c1 2005-10-20 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: Use fabs() and DBL_EPSILON to avoid a
	  direct comparison of floating point values, which is never correct.
	  Also some misc. cleanup.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1063 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-20 20:41:51 +00:00
Dan Williams
b989888977 Don't install named config files we don't use anymore
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1050 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-19 14:28:34 +00:00
Dan Williams
ff88a840ee 2005-10-19 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
		- (process_scan_results): don't drop the last (or only)
			access point we see


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1049 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-19 14:19:53 +00:00
Christopher Aillon
de3985c598 2005-10-19 Christopher Aillon <caillon@redhat.com>
* src/backends/NetworkManagerSlackware.c:
	Patch from Nico <lordllucifer@gmail.com>
		- Update the Slackware backend.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1048 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-19 13:44:34 +00:00
Robert Love
abac41aabe 2005-10-18 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: invoke the long-in-the-tooth named
	  function nmwa_schedule_state_change_signal_broadcast() when we
	  deactivate a device, too.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1045 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-18 14:57:31 +00:00
Robert Love
9977ed57e5 2005-10-17 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: Actually wait 20s, as we intend, not
	  two seconds -- tries is updated every 1/10 of a second, not every
	  second..


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1033 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-17 20:29:23 +00:00
Robert Love
3c1259fd9f 2005-10-17 Robert Love <rml@novell.com>
* src/nm-ip4-config.c: use GPOINTER_TO_UINT and not a straight cast
          in order to remain 64-bit clean.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1031 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-17 19:04:01 +00:00
Robert Love
60785e336d 2005-10-17 Robert Love <rml@novell.com>
*  src/backends/NetworkManagerDebian.c,
           src/backends/NetworkManagerRedHat,
           src/backends/NetworkManagerSuSE.c: allow '#' as a valid resolv.conf
           comment delimiter.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1028 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-17 18:28:16 +00:00
Robert Love
2d747adc14 2005-10-17 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: use SYSCONFDIR not open-coded
          "/etc"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1027 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-17 18:06:10 +00:00
Christopher Aillon
9e577ba84c 2005-10-17 Christopher Aillon <caillon@redhat.com>
* src/NetworkManagerDevice.c: (process_scan_results)
	Fix logic that checks to see whether we have an ESSID.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1026 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-17 15:36:26 +00:00
Dan Williams
994948d758 2005-10-15 Dan Williams <dcbw@redhat.com>
Move scanning code into NetworkManager rather than use iwlib's
	iw_scan() function, so that we can figure out AP capabilities.

	* NetworkManager.h
		- Add AP capability bits

	* src/NetworkManagerAP.[ch]
		- Add capability field to NMAccessPoint structure
		- Add WPA & RSN Information Element fields and accessor
			functions to NMAccessPoint

	* src/NetworkManagerDevice.c
		- Remove usage of iw_scan
		- Add scanning code to NetworkManager rather than use
			iw_scan() from iwlib

	* src/NetworkManagerUtils.[ch]
		- (nm_dispose_scan_results): remove, unused


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1023 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-15 04:11:01 +00:00
Dan Williams
a01d6f27dc 2005-10-11 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
		- Use the driver's WE version for scanning rather than
			the WE version NM was compiled with.  Fixes random
			crashes in iw_scan () in iwlib.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1017 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-11 20:13:28 +00:00
Peter Jones
68c498246d info.linux.driver is on the physical device, not the network device's parent.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1016 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-11 16:18:12 +00:00
Dan Williams
115dc5264b 2005-10-10 Dan Williams <dcbw@redhat.com>
* Remove nm_system_load_device_modules() from backend files
		and from NetworkManager.c


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1014 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-10 18:00:59 +00:00
Dan Williams
d41e3a4244 2005-10-10 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- Fix some bugs introduced by the capabilities patch


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1013 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-10 12:57:49 +00:00
Dan Williams
2916c77466 Fix warning, since warnings are treated as errors
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1011 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-10 01:25:48 +00:00
Dan Williams
91ba6be6e7 2005-10-09 Dan Williams <dcbw@redhat.com>
Patch from Bill Moss <bmoss@clemson.edu>
	* src/NetworkManagerDevice.c
		- (nm_device_set_user_key_for_network): don't try to set auth
			mode on the AP from the allowed list if it's NULL


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1010 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-10 01:21:58 +00:00
Dan Williams
d59b385719 Fix some warnings
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1008 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-09 04:46:36 +00:00
Dan Williams
69d77f6b56 2005-10-09 Dan Williams <dcbw@redhat.com>
* Replace the "driver support level" stuff with capabilities.  The
		capability field is a bitfield that is more flexible than the
		old driver support level thing.  It's mostly so we can easily
		figure out what supports WPA and what doesn't, but should be
		quite useful later.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1007 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-09 04:39:49 +00:00
Robert Love
fa4e8074e7 2005-10-07 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c, gnome/applet/applet.c,
          gnome/applet/applet.h, gnome/vpn-properties/nm-vpn-properties.c,
          src/dhcp-manager/nm-dhcp-manager.c, test/libnm_glib_test.c,
          test/nmtest.c test/nmtestdevices.c: mark functions 'static' as
          appropriate


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1004 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-07 19:17:06 +00:00
Robert Love
9a52a3ed38 2005-10-07 Robert Love <rml@novell.com>
* src/NetworkManagerWireless.c: remove stale, unused function, who goes
          by the name nm_update_device_wireless_timeouts() and once tried,
          without success, to steal my pet turtle.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1000 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-07 17:24:56 +00:00
Robert Love
1b3017ff68 2005-10-07 Robert Love <rml@novell.com>
* Cleanup prototypes: put some functions in header files and mark
          others as 'static' -- feel free to invert
        * src/vpn-manager/nm-dbus-vpn.c: remove prototype of
          nm_vpn_manager_vpn_connection_list_copy()
        * src/vpn-manager/nm-vpn-act-request.c: remove prototype of
          nm_vpn_service_get_dbus_connection()
        * src/vpn-manager/nm-vpn-manager.h: add prototypes for
          nm_vpn_manager_vpn_connection_list_copy()
        * src/vpn-manager/nm-vpn-service.c: Make
	  nm_vpn_service_act_request_failed() and
	  nm_vpn_service_stage2_daemon_wait() static.
        * src/vpn-manager/nm-vpn-service.h: add prototype for
          nm_vpn_service_get_dbus_connection()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@999 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-07 17:19:28 +00:00
Robert Love
a69781521f 2005-10-04 Robert Love <rml@novell.com>
* src/nm-dbus-device.c: Use iw_ether_ntop(), not ether_ntoa_r(), to
	  convert an ether_addr structure's MAC into a string, because the
	  latter will drop leading zero's and uses lower-case, e.g. 7:3b:4
	  versus 07:3B:04, while the former will not.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@993 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-04 18:25:24 +00:00
Robert Love
9b316c710e whitespace.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@992 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-04 15:54:04 +00:00
Robert Love
fe043ba806 2005-10-04 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet.c,
          gnome/applet/nm-device.c, gnome/applet/nm-device.h,
          gnome/applet/wireless-applet.glade, src/nm-dbus-device.c: Display
          default route in the 'Connection Information' dialog, send primary
          and secondary name servers in in "getProperties" DBUS method, add
          network_device_{get,set}_{primary,secondary}_dns(),  The primary and
          secondary domain name servers are crucial pieces of information
          that a user might need in debugging a network problem.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@991 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-04 15:23:06 +00:00
Robert Love
dcf8b76309 2005-10-04 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet.c,
          gnome/applet/nm-device.c, gnome/applet/nm-device.h,
          gnome/applet/wireless-applet.glade, src/nm-dbus-device.c: Display
          default route in the 'Connection Information' dialog, send default
          route in "getProperties" DBUS method, add network_device_set_route(),
          and network_device_get_route().  The Gateway is a crucial piece of
          connection-related information that a user might need in debugging a
          network problem.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@990 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-04 14:37:51 +00:00
Dan Williams
d31089ebec Remove unused members
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@989 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-04 13:27:29 +00:00
Robert Love
95550db528 Ack, inadvertently committed too much. Backing out most of last commit.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@987 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-03 21:18:29 +00:00
Robert Love
fe197a06de 2005-10-03 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Fix Glib error, GError must be
          NULL.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@986 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-03 21:15:24 +00:00
Dan Williams
23b0619e4f 2005-10-02 Dan Williams <dcbw@redhat.com>
* Shorten time taken to sleep by fastpathing bits of device deactivation
		necessary for sleep.

	* Fix issue where deactivating a device might deactivate the active
		VPN connection, even if the VPN was not using the device.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@985 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-02 05:02:49 +00:00
Robert Love
de03d96430 remove senseless cast.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@983 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-29 20:31:52 +00:00
Robert Love
2b0d83c58a 2005-09-29 Robert Love <rml@novell.com>
* src/NetworkManager.c: removed unused variable.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@982 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-29 18:44:23 +00:00
Dan Williams
0f90a04544 2005-09-28 Dan Williams <dcbw@redhat.com>
Support for named + DBus, using Red Hat DBus patches for named.  You
	can find those patches here, with "dbus" in the patch's filename:

		http://cvs.fedora.redhat.com/viewcvs/devel/bind/

	Don't forget the named dbus service file either.

	Instead of writing a config file and spawing a named process, NM will
	use an already-running dbus-enabled named if it finds one.  NM will
	update named's forwarder configuration on the fly using dbus.

	If there is no dbus-enabled named running, NM will automatically fall
	back to writing the most-recent DNS server information to /etc/resolv.conf
	and calling nm_system_update_dns() to kick the system's resolver.

	Accordingly, all named-related configure-time options have been removed.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@981 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-28 14:42:57 +00:00
Robert Love
3e58217df6 2005-09-26 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c, (nm_system_get_dialup_config): Add
	  ISDN support!
	* src/backends/NetworkManagerSuSE.c, (verify_and_return_provider): Fix
	  bug in error path if "ASKPASSWORD" is "no".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@978 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-26 16:16:11 +00:00
Robert Love
d2d5d9268d 2005-09-26 Robert Love <rml@novell.com>
* src/named-manager/nm-named-manager.c: only '#' is officially a valid
          comment in /etc/resolv.conf -- ';' is not.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@977 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-26 15:40:08 +00:00
Dan Williams
05b3e32e56 Fix debuginfo print, and don't require a vpn activation request for NameOwnerChanged processing
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@976 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-26 14:55:48 +00:00
Peter Jones
394abb5977 be less racy with dhcdbd's change to bound state
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@972 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-21 15:33:10 +00:00
Peter Jones
71b1632ad2 fix reporting of which stage we're in during Device Configure
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@971 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-21 15:32:33 +00:00
Dan Williams
48fe2e2876 2005-09-19 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerRedHat.c
      src/backends/NetworkManagerDebian.c
      src/backends/NetworkManagerSlackware.c
      src/backends/NetworkManagerGentoo.c
      src/backends/NetworkManagerSUSE.c
        - Fix invocations of "/sbin/ip address" to use short form instead


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@968 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-19 20:38:27 +00:00