2005-05-03 Dan Williams <dcbw@redhat.com>
* Kill dhcpcd. We now use "dhcdbd", a dbus daemon that controls dhclient. This means that NetworkManager shouldn't have DHCP issues anymore. It also means you need dhcdbd, which you can get here (get the latest one): http://people.redhat.com/jvdias/dhcdbd/ Technically NetworkManager can use any DHCP daemon that uses the same DBUS interface as dhcdbd. * Rewrite device activation to facilitate the new DHCP infrastructure and future improvements. Its now "activation request" based, ie there is a single activation request composed of the device, access point, and other info which follows the entire activation process. There are 5 stages of the activation process which correspond to: 1) Device preparation 2) Device configuration (bring it up, set ESSID/Key/etc) 3) IP Config Start (fire off DHCP if we're using it) 4) IP Config Get (grab config from DHCP or static config files) 5) IP Config Commit (set device's IP address, DNS, etc) Note that there is no longer a "scanning" step, since the access point must be known _before_ activation starts. If the access point drops out or does not exist for some reason, the entire activation process fails and must be restarted for a different access point or device. Patch from Bill Moss: * gnome/applet/applet.c - Fix type of vpn_failure dialog -> vpn_banner dialog git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@597 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
71
src/nm-activation-request.h
Normal file
71
src/nm-activation-request.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/* NetworkManager -- Network link manager
|
||||
*
|
||||
* Dan Williams <dcbw@redhat.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* (C) Copyright 2005 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#ifndef NM_ACTIVATION_REQUEST_H
|
||||
#define NM_ACTIVATION_REQUEST_H
|
||||
|
||||
#include <glib.h>
|
||||
#include <dbus/dbus.h>
|
||||
#include "NetworkManager.h"
|
||||
#include "NetworkManagerMain.h"
|
||||
#include "NetworkManagerDevice.h"
|
||||
#include "NetworkManagerAP.h"
|
||||
#include "nm-ip4-config.h"
|
||||
|
||||
|
||||
typedef enum NMActStage
|
||||
{
|
||||
ACT_STAGE_UNKNOWN = 0,
|
||||
ACT_STAGE_DEVICE_PREPARE,
|
||||
ACT_STAGE_DEVICE_CONFIG,
|
||||
ACT_STAGE_NEED_USER_KEY,
|
||||
ACT_STAGE_IP_CONFIG_START,
|
||||
ACT_STAGE_IP_CONFIG_GET,
|
||||
ACT_STAGE_IP_CONFIG_COMMIT,
|
||||
ACT_STAGE_ACTIVATED
|
||||
} NMActStage;
|
||||
|
||||
|
||||
NMActRequest * nm_act_request_new (NMData *data, NMDevice *dev, NMAccessPoint *ap, gboolean user_requested);
|
||||
void nm_act_request_ref (NMActRequest *req);
|
||||
void nm_act_request_unref (NMActRequest *req);
|
||||
|
||||
NMDevice * nm_act_request_get_dev (NMActRequest *req);
|
||||
NMData * nm_act_request_get_data (NMActRequest *req);
|
||||
NMAccessPoint * nm_act_request_get_ap (NMActRequest *req);
|
||||
gboolean nm_act_request_get_user_requested (NMActRequest *req);
|
||||
|
||||
NMIP4Config * nm_act_request_get_ip4_config (NMActRequest *req);
|
||||
void nm_act_request_set_ip4_config (NMActRequest *req, NMIP4Config *ip4_config);
|
||||
|
||||
NMActStage nm_act_request_get_stage (NMActRequest *req);
|
||||
void nm_act_request_set_stage (NMActRequest *req, NMActStage stage);
|
||||
|
||||
DBusPendingCall * nm_act_request_get_user_key_pending_call (NMActRequest *req);
|
||||
void nm_act_request_set_user_key_pending_call (NMActRequest *req, DBusPendingCall *pcall);
|
||||
|
||||
guint8 nm_act_request_get_dhcp_state (NMActRequest *req);
|
||||
void nm_act_request_set_dhcp_state (NMActRequest *req, guint8 dhcp_state);
|
||||
|
||||
guint nm_act_request_get_dhcp_timeout (NMActRequest *req);
|
||||
void nm_act_request_set_dhcp_timeout (NMActRequest *req, guint dhcp_timeout);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user