1. 28 Mar, 2005 1 commit
  2. 27 Mar, 2005 1 commit
  3. 26 Mar, 2005 1 commit
    • Dan Williams's avatar
      2005-03-25 Dan Williams <dcbw@redhat.com> · 4acd2f31
      Dan Williams authored
      	* panel-applet/NMWirelessApplet.c
      		- (nmwa_about_cb): Add some more contributors
      		- (nmwa_update_state): show the applet when there's no connection
      		- Enable the "Stop/Resume all wireless devices" option in the
      			context menu
      		- New "no connection" icon
      	* src/NetworkManager.c
      		- (nm_poll_and_update_wireless_link_state): don't do anything if
      			wireless is disabled or we're asleep
      	* src/NetworkManagerDHCP.c
      		- Remove trailing "\n" on debug messages
      	* src/NetworkManagerDbus.c
      		- (nm_dbus_network_status_from_data): new state "asleep"
      	* src/NetworkManagerDevice.c
      		- Merge most of Peter Jones' "completion" patch that greatly reduces
      			latency and wait times for most operations
      		- (nm_device_wireless_scan): Don't scan when asleep
      	* src/NetworkManagerPolicy.c
      		- (nm_policy_get_best_device): return no device when asleep
      		- (nm_policy_allowed_ap_list_update): From Bill Moss: merge properties
      			for all wireless devices on update, not just active device
      	* src/NetworkManagerUtils.c
      		- Merge Peter Jones' "completion" patch
      	* src/nm-dbus-nm.c
      		- (nm_dbus_nm_set_wireless_enabled): bring down wireless devices when
      			we're told to disable them
      		- (nm_dbus_nm_sleep, nm_dbus_nm_wake): new functions for sleep/wake
      	* utils/nm-utils.h
      		- New variants of the warn/info/error/debug print functions that can take
      			variables rather than static strings
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@510 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  4. 17 Mar, 2005 1 commit
    • Dan Williams's avatar
      2005-03-17 Dan Williams <dcbw@redhat.com> · 80991593
      Dan Williams authored
      	Patch from Tom Parker:
      	* src/nm-netlink-monitor.c
      		- Include unistd.h
      	* info-daemon/NetworkManagerInfoDbus.c
      		- (nmi_dbus_update_network_auth_method): free GConf values
      	Patch from Nathaniel McCallum <npmccallum@gentoo.org>:
      	* src/NetworkManagerDevice.c
      		- (nm_device_set_wireless_config): wait for successful
      			association longer for some cards (Atheros a/b/g)
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@502 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  5. 15 Mar, 2005 1 commit
    • Ray Strode's avatar
      2005-03-14 Ray Strode <rstrode@redhat.com> · 278e500f
      Ray Strode authored
      	Fourth (probably working) cut at porting to
      	dbus 0.30 api and new hal. This cut adds
      	some new logging macros to make debugging
      	* dispatcher-daemon/NetworkManagerDispatcher.c:
      	* info-daemon/NetworkmanagerInfo.c:
      	* info-daemon/NetworkManagerInfoPassphraseDialog.c:
      	* info-daemon/NetworkManagerInfoVPN.c:
      	* src/NetworkManager.c:
      	* src/NetworkManagerAP.c:
      	* src/NetworkManagerAPList.c:
      	* src/NetworkManagerDHCP.c:
      	* src/NetworkManagerDbus.c:
      	* src/NetworkManagerDevice.c:
      	* src/NetworkManagerPolicy.c:
      	* src/NetworkManagerSystem.c:
      	* src/NetworkManagerUtils.c:
      	* src/NetworkManagerWireless.c:
      	* src/autoip.c:
      	* src/nm-dbus-nm.c:
      	* src/backends/NetworkManagerDebian.c:
      	* src/backends/NetworkManagerGentoo.c:
      	* src/backends/NetworkManagerRedHat.c:
      	* src/backends/NetworkManagerSlackware.c:
      	use new logging macros.
      	* dispatcher-daemon/NetworkManagerDispatcher.c:
      	(nmd_dbus_filter): s/dbus_free/g_free/
      	* info-daemon/Makefile.am: link in utils library.
      	* info-daemon/NetworkmanagerInfo.c: use new logging
      	(nmi_dbus_get_network): don't assume enumerations
      	are 32-bit.
      	(nmi_dbus_nmi_message_handler): don't free what
      	doesn't belong to us.
      	* libnm_glib/libnm_glib.c:
      	(libnm_glib_init): don't free what doesn't
      	belong to us.
      	(libnm_glib_dbus): strdup result, so it doesn't get
      	lost when message is unref'd.
      	* panel-applet/NMWirelessAppletDbus.c:
      	(nmwa_dbus_update_devices): s/dbus_free/g_free/
      	* src/NetworkManager.c:
      	(nm_monitor_wired_link_state): request initial status
      	dump of all cards when we start up, instead of relying
      	on /sys/.../carrier.
      	(nm_info_handler), (nm_set_up_log_handlers):
      	log handlers to specify what syslog priorites
      	the logging macros default to.
      	* src/NetworkManagerAPList.c:
      	* src/NetworkManagerDbus.c:
      	validate d-bus message argument types.
      	Advance message iterator after reading argument,
      	prepend instead of append to GSList.
      	* src/NetworkManagerDevice.c:
      	remove redundant /sys in /sys path. remove wrong
      	contents == NULL means has carrier assumption.
      	* src/nm-netlink-monitor.c
      	(nm_netlink_monitor_request_status): implement
      	function to ask kernel to dump interface link
      	status over netlink socket.
      	* test/*.c: s/dbus_free/g_free/
      	* utils/nm-utils.h:
      	(nm_print_backtrace): new macro to print backtrace.
      	(nm_get_timestamp): new macro to get sub-second precise
      	unix timestamp.
      	(nm_info), (nm_debug), (nm_warning), (nm_error):
      	new logging functions. nm_info just prints,
      	nm_debug includes timestamp and function,
      	nm_warning includes function, nm_error includes
      	backtrace and sigtrap.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@497 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  6. 11 Mar, 2005 1 commit
    • Ray Strode's avatar
      2005-03-11 Ray Strode <rstrode@redhat.com> · 0790d2fc
      Ray Strode authored
      	Third (unfinished, partially working) cut at porting to
      	dbus 0.30 api and new hal.
      	* info-daemon/NetworkManagerInfoDbus.c:
      		don't free null arrays.
      	* panel-applet/NMWirelessAppletDbus.c:
      	* src/nm-dbus-device.c:
      	* src/nm-dbus-net.c:
      	* src/NetworkManagerDbus.c: more
       	STRING -> OBJECT_PATH fun
      	* src/NetworkManagerDevice.c:
      	* src/NetworkManagerDevice.h:
      	(rename nm_device_get_link_active): rename to
      	(nm_device_wireless_link_active): rename to
      	(nm_device_wired_link_active): rename to
      	nm_device_probe_wired_link_state.  Rewrite to
      	use carrier file since hal doesn't maintain
      	link state anymore.
      	(nm_device_update_link_active): rename to
      	* src/NetworkManagerPolicy.c
      	  (nm_policy_activation_finish): check for NULL
      	  MAC address.
      	* src/Makefile.am:
      	* src/NetworkManagerMain.h:
      	* src/NetworkManager.c:
      	* src/nm-netlink-monitor.c:
      	* src/nm-netlink-monitor.h: New class to support
      	monitoring wired ethernet link status, since HAL
      	doesn't export that information anymore.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@495 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  7. 08 Mar, 2005 1 commit
    • Ray Strode's avatar
      2005-03-07 Ray Strode <rstrode@redhat.com> · a5d937a6
      Ray Strode authored
      	* info-daemon/NetworkManagerInfoDbus.c:
      	* libnm_glib/libnm_glib.c:
      	* panel-applet/NMWirelessAppletDbus.c:
      	* src/NetworkManager.c:
      	* src/NetworkManagerDbus.c:
      	* src/NetworkManagerDevice.c:
      	* src/NetworkManagerUtils.c:
      	* src/nm-dbus-device.c:
      	* src/nm-dbus-dhcp.c:
      	* src/nm-dbus-net.c:
      	* src/nm-dbus-nm.c:
      	* test/nminfotest.c:
      	First (unfinished, unworking) cut at porting to dbus 0.30 api.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@493 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  8. 27 Feb, 2005 1 commit
    • Dan Williams's avatar
      2005-02-27 Dan Williams <dcbw@redhat.com> · bbbd00d4
      Dan Williams authored
      	* panel-applet/NMWirelessApplet.[ch]
      		- Move to incremental network updates.  Instead of blowing away our list
      			of devices every time we get a signal from NetworkManager, we now
      			incrementally add/remove networks when NetworkManager notifies us that
      			a new network has appeared or disappered.  Strength updates now happen
      			on-the-fly for each access point as well.  There are now two copies of
      			data from NetworkManager: one for the dbus side, and one for the gui side.
      			When the dbus side data is modified, it is copied over to the gui side
      			so we don't have to hold the data_mutex for long periods of time (and
      			therefore block animation of the applet's icon).
      		- Clean up some memleaks too
      	* panel-applet/NMWirelessAppletOtherNetworkDialog.c
      		- Minor code beautification
      	* src/NetworkManagerAPList.c
      		- (nm_ap_list_merge_scanned_ap): return whether or not the access point is
      			completely new and whether or not an existing one's strength was updated.
      			Try to fix multiple access points and signal strength by using the highest
      			signal strength in each scan for any given ESSID.
      	* src/NetworkManagerDbus.[ch]
      		- (nm_dbus_signal_wireless_network_change): consolidate signals that deal with
      			wireless networks; now we have only WirelessNetworkUpdate which includes
      			a UINT32 for Appeared, Disappeared, or StrengthChanged (see NetworkManager.h).
      		- Kill usage of DbusMessageIter
      	* src/NetworkManagerDevice.c
      		- (nm_device_wireless_process_scan_results): Use the same timestamp for all APs
      			in the same scan result list.  Copy ESSIDs-by-address earlier on, for each
      			AP rather than all-at-once.  Also don't ever remove the AP a card is
      			currently associated with from the network list.
      		- Update for new signals during scan, send out Appeared, Disappeared, or
      			StrengthChanged when necessary.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@477 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  9. 22 Feb, 2005 1 commit
  10. 18 Feb, 2005 1 commit
    • Dan Williams's avatar
      2005-02-18 Dan Williams <dcbw@redhat.com> · 6411cc5a
      Dan Williams authored
      	* panel-applet/essid.glade
      		- Correct spelling of "adaptor"->"adapter"
      2005-02-18  William Jon McCann  <mccann@jhu.edu>
      	* panel-applet/NMWirelessApplet.c: Use GTK_CHECK_VERSION() macro.
      	(nmwa_about_cb): Use standard copyright string.  Update comment
      	text to reflect that it is a notification area applet.  Remove
      	leading newline in authors list.
      	(nmwa_menu_show_cb, nmwa_setup_widgets): Populate menu on show
      	instead of on parent menu item activation.  Fixes #167550.
      2005-02-18  William Jon McCann  <mccann@jhu.edu>
      	* panel-applet/essid.glade: Capitalize items as per HIG.
      	  Fixes #167632
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@458 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  11. 11 Feb, 2005 2 commits
    • Dan Williams's avatar
      2005-02-11 Dan Williams <dcbw@redhat.com> · 1cc2f8c3
      Dan Williams authored
      	* dhcpcd/client.c
      		- (dhcp_init): only print out client ID and class ID if they are specified
      	* src/NetworkManagerDbus.[ch]
      		- Move NM, Device, and Net functions to separate files and use the
      			dbus method list stuff in NetworkManagerDbusUtils.c to do
      			method dispatching
      	* src/NetworkManagerDbusUtils.c
      		- Add new validate_method called before each dispatch (if present)
      			that can validate the method call
      	* src/NetworkManagerWireless.c
      		- (nm_wireless_qual_to_percent): Fix misplaced "!" that caused signal
      			levels never to be evaluated
      	Patch from j@bootlab.org
      	* src/NetworkManagerDevice.c
      		- Add typedef for "u64"
      	* src/backends/NetworkManagerDebian.c
      		- Copy in Dave Woodhouse's fixes for IPv6
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@438 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
    • Dan Williams's avatar
      2005-02-11 Dan Williams <dcbw@redhat.com> · 5049b74c
      Dan Williams authored
      	Patch from Dave Woodhouse for IPv6:
      	* src/NetworkManagerUtils.c
      		- (nm_ethernet_address_is_valid): Check for prism54 dummy MAC address
      			and multicast addresses
      	* src/NetworkManagerDevice.c
      		- (nm_device_set_up_down): make sure our cached MAC address is up-to-date
      			after bringing up a card.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@435 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  12. 10 Feb, 2005 4 commits
  13. 07 Feb, 2005 1 commit
    • Dan Williams's avatar
      2005-02-07 Dan Williams <dcbw@redhat.com> · 901e3d01
      Dan Williams authored
      	* panel-applet/NMWirelessApplet.[ch]
      		- Add a context menu that contains:
      			Pause/Resume Wireless Scanning
      			Stop/Start All Wireless Devices
      		- Grab active device strength off active device,
      			not its network
      	* panel-applet/NMWirelessAppletDbus.[ch]
      		- Add DBUS accessors for "getSupportsCarrierDetect", "setScanningEnabled",
      			"getScanningEnabled", "setWirelessEnabled", and "getWirelessEnabled"
      		- Update active device strength every 2 seconds, not every 1 second
      	* panel-applet/menu-info.c
      		- Only disable wired devices in the menu when they support carrier detection,
      			and don't currently have a link.  Non-carrier-detect devices will always
      			remain choosable
      	* src/Makefile.am
      		- Add new new dbus utils sources
      	* src/NetworkManager.c
      		- Fixes for new link detection, we no longer need to call nm_device_update_link_active()
      			with the boolean parameter
      		- Set scanning_enabled & wireless_enabled to TRUE
      	* src/NetworkManagerDbus.c
      		- Use new dbus util method dispatcher functions for org.freedesktop.NetworkManager methods
      		- Implement scanning & wireless enable/disable calls
      		- Remove the dbus vtable unregister handlers, weren't doing anything with them anyway
      	* src/NetworkManagerDevice.c
      		- New link detection stuff again...
      			o  Create device's mainloop earlier (but don't run it earlier)
      			o  Hook up new carrier-detect support stuff
      			o  Add in the ethtool & mii support detection code
      		- Don't scan if scanning is disabled
      	* src/NetworkManagerPolicy.c
      		- Never automatically choose a device that doesn't support carrier detection
      		- Don't automatically choose a wireless device if wireless is disabled
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@416 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  14. 02 Feb, 2005 2 commits
    • Dan Williams's avatar
      2005-02-02 Dan Williams <dcbw@redhat.com> · 9a46c8db
      Dan Williams authored
      	* Clean up unused variables and the like
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@408 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
    • Dan Williams's avatar
      2005-02-02 Dan Williams <dcbw@redhat.com> · a03d8042
      Dan Williams authored
      	* src/NetworkManagerAPList.c
      		- (nm_ap_list_merge_scanned_ap): merge strength too
      	* src/NetworkManagerUtils.c
      		- (nm_lock_mutex, nm_register_mutex_desc): new calls to facilitate debugging
      			of locking issues by printing out prettier information than g_mutex_lock
      		- Print out names of mutexes registered with nm_register_mutex_desc()
      		- (nm_try_lock_mutex): don't do the waiting thing when trying to lock, causes
      			us to seemingly block here for too long
      	* src/NetworkManager.c
      		- Convert to using nm_lock_mutex/nm_unlock_mutex rather than the glib variants
      			so we get better debug information printed
      	* src/NetworkManagerDbus.c
      		- (nm_dbus_devices_handle_request): reduce usage of nm_device_need_ap_switch()
      			since it sometimes has locking side effects
      		- (nm_device_get_association_pause_value): Reduce 802.11a card pause value to 8s
      			from 10s
      		- (nm_device_need_ap_switch): If we can't acquire the scan lock, return saying
      			we don't need a switch.  This gets called often enough that we can't block
      			until the scan mutex is acquired, because we'll block on device activation
      			and a few other things, which hangs main thread for too long.
      	* src/NetworkManagerPolicy.c
      		- (nm_policy_auto_get_best_device): reduce the possiblity that
      			nm_device_need_ap_switch() will be called
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@407 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  15. 31 Jan, 2005 1 commit
    • Dan Williams's avatar
      2005-01-31 Dan Williams <dcbw@redhat.com> · 4f28a1ce
      Dan Williams authored
      	* info-daemon/NetworkManagerInfoDbus.c
      		- (nmi_dbus_nmi_message_handler): make sure 'dialog' exists before using it
      	* src/NetworkManagerDevice.c
      		- (nm_device_new): Don't store the entire range struct, use only what we need
      			(which is currently avg_quality, max_quality, and frequencies).  Also
      			zero device structure when we've free'd it to maybe expose errors down
      			the line.
      		- (nm_device_update_signal_strength): grab the scan mutex before getting
      			quality data from the card since quality will be useless during a scan.
      			Call updated wireless qual-to-percent function with values stored in
      			nm_device_new() earlier.
      		- Remove some unused functions (nm_device_get_max_quality(), nm_device_get_noise(),
      		- (nm_device_activate_wireless_adhoc): use new frequency values we go in
      		- (get_initial_auth_method): always use the Auth method that's in the allowed
      			list if available.  Problem was this: when the WEP key is wrong, NM will
      			try OS then SK modes, and then get stuck in SK mode after that.  This
      			should reset it.
      		- (nm_device_wireless_process_scan_results): work with new qual-to-percent
      	* src/NetworkManagerWireless.c
      		- (nm_wireless_qual_to_percent): try to make this function actually work and
      			mimic iwlib behavior.  Use card's idea of quality divided by max_qual
      			if that's all present, otherwise fall back to signal-to-noise ratios.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@402 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  16. 29 Jan, 2005 1 commit
    • Dan Williams's avatar
      2005-01-29 Dan Williams <dcbw@redhat.com> · 2827e512
      Dan Williams authored
      	* initscript/RedHat/NetworkManager
      		- Don't spit out sysctl stuff to console
      	* libnm_glib/libnm_glib.c
      		- (libnm_glib_init): call dbus_g_thread_init()
      	* panel-applet/NMWirelessAppletDbus.c
      		- (nmwa_dbus_worker): call dbus_g_thread_init()
      	* src/NetworkManager.c
      		- (main): call dbus_g_thread_init()
      	* src/NetworkManagerAPList.c
      		- (nm_ap_list_print_members): use LOG_ERR instead of LOG_DEBUG
      			so we can actually see what's there in a normal syslog
      	* src/NetworkManagerDevice.c
      		- (nm_device_activate_wireless): print out the "waiting for access point"
      			message only once, then say what access point we actually got after
      			the wait.
      		- (nm_device_need_ap_switch): If a scan is in progress when we're in this
      			function, wait until the scan is done.  Scans may change the ESSID of
      			the card, making this function think we need to switch access points
      		- (nm_device_wireless_process_scan_results): for artificial access points
      			don't check against the card's ESSID, but the best_ap's ESSID.  This
      			prevents collisions with the scanning code, which may change the card's
      			ESSID and cause the access point to get dropped from the device's AP
      			list.  Also increase the keep-around time to 2m from 60s since the max
      			scan interval could be 60s in some cases.
      	* src/NetworkManagerPolicy.c
      		- (nm_policy_activation_finish): Don't add invalid MAC addresses to GConf
      		- (nm_policy_allowed_ap_list_update): When we update, make sure we copy over
      			the new properties and ESSIDs to the device's AP list.  Fixes some races
      			between NM and NMI.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@401 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  17. 27 Jan, 2005 1 commit
    • Dan Williams's avatar
      2005-01-27 Dan Williams <dcbw@redhat.com> · 37fa2d08
      Dan Williams authored
      	* info-daemon/NetworkManagerInfoDbus.c
      		- (nmi_dbus_add_network_address): if the network doesn't yet exist in
      			GConf, make a minimal entry for it (essid & timestamp)
      	* src/NetworkManagerAPList.c
      		- (nm_ap_list_populate_from_nmi): Don't try to grab network data if
      			NetworkManagerInfo isn't running
      	* src/NetworkManagerDbus.[ch]
      		- (nm_dbus_nmi_is_running): new function
      	* src/NetworkManagerDevice.c
      		- (nm_device_wireless_force_use): Don't set the created AP's MAC
      			address to garbage.
      	* src/NetworkManagerPolicy.c
      		- (nm_policy_activation_finish): On successful activation, make sure
      			the "best" AP has a MAC address, and don't tell NMI to add the
      			current AP's MAC address to GConf if the AP is an Ad-hoc AP.
      		- (nm_policy_allowed_ap_list_update): Update a wireless card's "best"
      			access point after refreshing our allowed list if it doesn't already
      			have a "best" access point.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@400 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  18. 24 Jan, 2005 1 commit
  19. 21 Jan, 2005 2 commits
    • Dan Williams's avatar
      2005-01-21 Dan Williams <dcbw@redhat.com> · 594dbaec
      Dan Williams authored
      	* panel-applet/NMWirelessApplet.[ch]
      		- Disable wired devices in the menu when they have no link.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@389 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
    • Dan Williams's avatar
      2005-01-21 Dan Williams <dcbw@redhat.com> · 9e154261
      Dan Williams authored
      	* Cache last-known-good wireless authentication method in
      		NetworkManagerInfo, and use that method first during
      		wireless device activation.  Should speed up devices that
      		need Shared Key authentication method since Open System is
      		now the default.
      	* Remove the hack to not do full activation on wired connections
      		that are active when we launch, it causes too many problems
      		with name resolution and was a hack in the first place.
      	* Re-work wireless device activation again somewhat to have a
      		clearer chain of events and to use last-known-good
      		authentication method of the access point.  Also provide
      		better status throughout activation to ensure the applet
      		can tell the user exactly what's going on.
      	* Remove the "find wireless network" code and now simply attempt
      		to activate with that access point.  This reduces the delay
      		between selecting "Other wireless Network" and actually
      		connecting to that network.
      	* Correctly stop the device's worker thread when its removed.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@388 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  20. 18 Jan, 2005 1 commit
    • Dan Williams's avatar
      2005-01-18 Dan Williams <dcbw@redhat.com> · c9b41bb4
      Dan Williams authored
      	* dhcpcd/client.c
      		- Remove some debug messages
      		- Wrap others in #ifdef DEBUG/#endif
      	* src/NetworkManager.c
      		- Remove some debug messages
      		- Clarify some debug messages
      		- Remove code related to old single-thread wireless scanning
      	* src/NetworkManagerAP.[ch]
      		- New AP property "last_seen" to track how recently an AP was
      			found in a scan
      		- Start using 'const' more in function arguments
      	* src/NetworkManagerAPList.[ch]
      		- (nm_ap_list_merge_scanned_ap): new, selectively update attributes
      			of an AP found in an AP list from a source AP, or if not found
      			in the list add the source AP
      		- (nm_ap_list_combine): remove, no longer needed
      	* src/NetworkManagerDevice.c
      		- Each device now has a "worker" thread from start to end of its life.
      			Scanning for wireless devices now happens in that thread,
      			not in a single "wireless scanning thread" for all devices as
      			previously.  Activation consists of adding an idle handler to the
      			thread's main loop/context, which gets run at the next available
      		- Wireless scanning is also simplified, there is now only one list of
      			access points per wireless device, and APs older than 60s are
      			removed from the list.  Previously, we kept results for the last
      			3 scans and merged whole lists, which was complicated.
      		- Cleaned up activation debug messages.
      		- Wireless activation and access-point search routines now use Open System
      			authentication before trying Shared Key.
      		- Removed some code in nm_device_update_best_ap() that could cause cards
      			to loose their link to the access point.
      		- Scanning now uses a backoff algorithm, where the inverval becomes
      			progressively longer between scans when the list of scanned access
      			points doesn't change.  A change will revert to the shortest scan
      			interval (20s).
      	* src/NetworkManagerWireless.[ch]
      		- Remove code related to old single-thread wireless scanning
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@382 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  21. 13 Jan, 2005 1 commit
  22. 10 Jan, 2005 3 commits
  23. 09 Jan, 2005 1 commit
    • Dan Williams's avatar
      2005-01-09 Dan Williams <dcbw@redhat.com> · 9724e4eb
      Dan Williams authored
      	* dhcpcd/client.c
      		- Use correct timeout value
      	* info-daemon/NetworkManagerInfoDbus.c
      		- Consolidate communication between NM and NMI by doing only 1 dbus
      			method call to get Wireless Network info from NMI instead of 6
      	* src/NetworkManager.c
      		- Make sure to cancel activation when we receive a SIGTERM, otherwise
      			when we didn't have an AP to use, we'd wait for one forever without
      	* src/NetworkManagerDevice.c
      		- nm_device_activation_cancel(): Fix a race between dhcp and quitting
      			activation, dhcp might not have started yet but we don't quit activation
      			before starting it, so the quit signal gets lost
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@363 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  24. 07 Jan, 2005 1 commit
    • Dan Williams's avatar
      2005-01-07 Dan Williams <dcbw@redhat.com> · ff6dbffe
      Dan Williams authored
      	* dhcpcd/client.c
      		- Rework the DHCP client code to be much less chatty when
      			it receives non-DHCP UDP packets during the DHCP run
      			(reported by and preliminary patches from Bill Moss)
      	* Move wireless scanning to a separate thread.  This thread forwards the
      		results to the main thread when done where they are integrated into
      		the device's access point lists.  This keeps the main thread (which
      		does all the DBUS communication) from being blocked for long periods
      		of time by wireless scanning.
      	* Make state modification an idle routine in the main loop, and trigger
      		state changes rather than polling for them.
      	* src/backends/NetworkManagerGentoo.c
      		- Fix up invalid C90 code (reported by Christoph Ruessler)
      	* src/NetworkManagerDevice.c
      		- Revert IPv6 patch for wired devices from 2004-12-22 for
      			router advertisements, causing problems and infinite loop
      			during "best" device determination due to link going up/down
      			(reported by Bill Moss)
      	Apply patch from Peter Jones
      	* src/NetworkManagerDevice.c
      		- Shortcut for link-checking for ipw2x00 cards
      		- Split out association check into separate routine
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@360 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  25. 22 Dec, 2004 2 commits
  26. 21 Dec, 2004 1 commit
    • Colin Walters's avatar
      2004-12-21 Colin Walters <walters@redhat.com> · 33bd873e
      Colin Walters authored and Colin Walters's avatar Colin Walters committed
      	* src/NetworkManager.c (nm_data_new): Initialize named.
      	Also, set up a signal handler for SIGINT/SIGTERM, and exit
      	the mainloop when these signals are received.
      	(nm_data_free): Unref named.
      	(sigterm_handler, sigterm_pipe_handler): New functions for
      	exiting mainloop.
      	* src/NetworkManagerMain.h (NMData): Add signal handling and
      	nameserver bits.
      	* src/NetworkManager.c (nm_device_unref): Quit device mainloop on
      	* src/NetworkManagerDHCP.c (set_nameservers): New function;
      	set nameservers from DHCP response data.
      	(set_domain_search): Set domain search from DHCP response.
      	(nm_device_dhcp_configure): Invoke them.
      	* src/NetworkManagerSystem.c
      	(nm_system_device_update_resolv_conf): Delete.  Deleting
      	code is totally sweet.
      	* src/Makefile.am (NetworkManager_LDADD): Add libnamed.
      	* named/nm-named-manager.h, named/nm-named-manager.c: New files;
      	implements an object which controls a nameserver.  Currently
      	uses bind 9.
      	* configure.in: Check for named.
      	* Makefile.am (SUBDIRS): Add named dir.
      	* named/named.conf: New template config file.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@352 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  27. 17 Dec, 2004 3 commits
  28. 16 Dec, 2004 1 commit
    • Dan Williams's avatar
      2004-12-15 Dan Williams <dcbw@redhat.com> · cd475e6d
      Dan Williams authored
      	Patch from Tom Parker
      	* Add autoip/Link Local Addressing support when we fail to get a DHCP
      	* Longer pause after setting ESSID on cards that support a larger number
      		of channels to give the card time to find the right channel
      	* Add system hook to restart mDNSResponder (or whatever the local implementation
      		of Multicast DNS is) when we activate interfaces
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@341 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  29. 05 Dec, 2004 1 commit
    • Dan Williams's avatar
      2004-12-05 Dan Williams <dcbw@redhat.com> · d0c93d3c
      Dan Williams authored
      	* Major rework of the DHCP code, taking some cues from pump.  We don't
      		write raw Ethernet packets anymore, which simplifies the code quite
      		a bit.  The new code should be more robust, not hang in recvfrom()
      		as much, and generally work better.  This also means that we need
      		to force HAL/dbus to use a created GMainContext rather than the
      		default context, since having the DHCP renew/rebind thread using
      		its own GMainContext seemed to give dbus a fit.  There is also more
      		debugging information printed from the DHCP loop to help with future
      	* Also, if the DHCP server doesn't give us the "routersOnSubnet" option,
      		assume that the default gateway should be the DHCP server.
      	Patch from Matthew Schick <matt oss-institute org>
      	* src/backends/NetworkManagerGentoo.c
      		- Fix compilation error due to missing "ip4_broadcast"
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@336 4912f4e0-d625-0410-9fb7-b9a5a253dbdc