summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPantelis Koukousoulas <pktoss@gmail.com>2011-05-17 21:03:19 +0300
committerDan Williams <dcbw@redhat.com>2012-05-18 15:42:55 -0500
commit9039c24bf582f49908cc3590cafe0a8ff2e35c08 (patch)
tree1539c93deef34b060775a90ac884fd7cc7539f34 /include
parent0e6f5ce38ef1b2d81e5c0a2a544fb6635e8a7bf5 (diff)
downloadNetworkManager-9039c24bf582f49908cc3590cafe0a8ff2e35c08.tar.gz
adsl: carrier handling and PPPoA support
This is the "juice" of the patch series. Initial cut at carrier handling (by polling /sys/class/atm/$iface/carrier) and also support for calling pppd with the proper command-line to achieve a connection. Also implement the necessary boilerplate for the NM state machine to be happy with our device. This is a "duct tape and gum" implementation, i.e., prefer copy&paste over proper refactoring, due to limited time, but the foundations are now there, so we can make it work right slowly-slowly :) With this patch, you can already test carrier management but not yet make a complete connection. Relevant extract from logs: <info> (ueagle-atm0): carrier now ON (device state 20) <info> (ueagle-atm0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40] Signed-off-by: Pantelis Koukousoulas <pktoss@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/NetworkManager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/NetworkManager.h b/include/NetworkManager.h
index 400fa5bf9a..563e76f9c2 100644
--- a/include/NetworkManager.h
+++ b/include/NetworkManager.h
@@ -34,6 +34,7 @@
#define NM_DBUS_INTERFACE "org.freedesktop.NetworkManager"
#define NM_DBUS_INTERFACE_DEVICE NM_DBUS_INTERFACE ".Device"
#define NM_DBUS_INTERFACE_DEVICE_WIRED NM_DBUS_INTERFACE_DEVICE ".Wired"
+#define NM_DBUS_INTERFACE_DEVICE_ADSL NM_DBUS_INTERFACE_DEVICE ".Adsl"
#define NM_DBUS_INTERFACE_DEVICE_WIRELESS NM_DBUS_INTERFACE_DEVICE ".Wireless"
#define NM_DBUS_INTERFACE_DEVICE_BLUETOOTH NM_DBUS_INTERFACE_DEVICE ".Bluetooth"
#define NM_DBUS_INTERFACE_DEVICE_OLPC_MESH NM_DBUS_INTERFACE_DEVICE ".OlpcMesh"