2005-01-07 Dan Williams <dcbw@redhat.com>
* 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
This commit is contained in:
@@ -33,13 +33,13 @@
|
||||
typedef struct NMData
|
||||
{
|
||||
GIOChannel *sigterm_iochannel;
|
||||
int sigterm_pipe[2];
|
||||
int sigterm_pipe[2];
|
||||
|
||||
LibHalContext *hal_ctx;
|
||||
|
||||
NMNamedManager *named;
|
||||
GList *nameserver_ids; /* For now these are global instead of per-device */
|
||||
guint domain_search_id;
|
||||
guint domain_search_id;
|
||||
|
||||
DBusConnection *dbus_connection;
|
||||
GMainContext *main_context;
|
||||
@@ -48,7 +48,13 @@ typedef struct NMData
|
||||
gboolean enable_test_devices;
|
||||
gboolean starting_up; /* Hack for not taking down an already-set-up wired device when we launch */
|
||||
|
||||
gboolean notify_device_support;
|
||||
/* Main loop for wireless scanning thread */
|
||||
GMainContext *wscan_ctx;
|
||||
GMainLoop *wscan_loop;
|
||||
gboolean wscan_thread_done;
|
||||
|
||||
guint state_modified_idle_id;
|
||||
|
||||
GSList *dev_list;
|
||||
GMutex *dev_list_mutex;
|
||||
|
||||
@@ -58,9 +64,6 @@ typedef struct NMData
|
||||
struct NMDevice *user_device; /* Holds a device that the user requests NM to use. */
|
||||
GMutex *user_device_mutex;
|
||||
|
||||
gboolean state_modified;
|
||||
GMutex *state_modified_mutex;
|
||||
|
||||
gboolean update_ap_lists;
|
||||
struct NMAccessPointList *allowed_ap_list;
|
||||
struct NMAccessPointList *invalid_ap_list;
|
||||
|
Reference in New Issue
Block a user