ReasonCodes
⇤ ← Revision 1 as of 2010-09-17 19:37:37
4927
Comment:
|
← Revision 2 as of 2010-09-17 20:25:57 ⇥
6050
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
/!\ Warning: this page will surely need to be checked and updated every once in a while. Refer to [[|include/NetworkManager.h]]. |
/!\ Warning: this page will surely need to be checked and updated every once in a while. Refer to [[http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/include/NetworkManager.h|include/NetworkManager.h]] and [[http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/include/NetworkManagerVPN.h|include/NetworkManagerVPN.h]]. |
Line 7: | Line 5: |
{{{ /* No reason given */ NM_DEVICE_STATE_REASON_NONE = 0, |
The python script I used to generate this from NetworkManager.h is in [[https://code.edge.launchpad.net/~mathieu-tl/+junk/nm-dev-tools|lp:~mathieu-tl/+junk/nm-dev-tools]]. |
Line 11: | Line 7: |
/* Unknown error */ NM_DEVICE_STATE_REASON_UNKNOWN = 1, /* Device is now managed */ NM_DEVICE_STATE_REASON_NOW_MANAGED = 2, /* Device is now unmanaged */ NM_DEVICE_STATE_REASON_NOW_UNMANAGED = 3, /* The device could not be readied for configuration */ NM_DEVICE_STATE_REASON_CONFIG_FAILED = 4, /* IP configuration could not be reserved (no available address, timeout, etc) */ NM_DEVICE_STATE_REASON_IP_CONFIG_UNAVAILABLE = 5, /* The IP config is no longer valid */ NM_DEVICE_STATE_REASON_IP_CONFIG_EXPIRED = 6, /* Secrets were required, but not provided */ NM_DEVICE_STATE_REASON_NO_SECRETS = 7, /* 802.1x supplicant disconnected */ NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT = 8, /* 802.1x supplicant configuration failed */ NM_DEVICE_STATE_REASON_SUPPLICANT_CONFIG_FAILED = 9, /* 802.1x supplicant failed */ NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED = 10, /* 802.1x supplicant took too long to authenticate */ NM_DEVICE_STATE_REASON_SUPPLICANT_TIMEOUT = 11, /* PPP service failed to start */ NM_DEVICE_STATE_REASON_PPP_START_FAILED = 12, /* PPP service disconnected */ NM_DEVICE_STATE_REASON_PPP_DISCONNECT = 13, /* PPP failed */ NM_DEVICE_STATE_REASON_PPP_FAILED = 14, /* DHCP client failed to start */ NM_DEVICE_STATE_REASON_DHCP_START_FAILED = 15, /* DHCP client error */ NM_DEVICE_STATE_REASON_DHCP_ERROR = 16, /* DHCP client failed */ NM_DEVICE_STATE_REASON_DHCP_FAILED = 17, /* Shared connection service failed to start */ NM_DEVICE_STATE_REASON_SHARED_START_FAILED = 18, /* Shared connection service failed */ NM_DEVICE_STATE_REASON_SHARED_FAILED = 19, /* AutoIP service failed to start */ NM_DEVICE_STATE_REASON_AUTOIP_START_FAILED = 20, /* AutoIP service error */ NM_DEVICE_STATE_REASON_AUTOIP_ERROR = 21, /* AutoIP service failed */ NM_DEVICE_STATE_REASON_AUTOIP_FAILED = 22, /* The line is busy */ NM_DEVICE_STATE_REASON_MODEM_BUSY = 23, /* No dial tone */ NM_DEVICE_STATE_REASON_MODEM_NO_DIAL_TONE = 24, /* No carrier could be established */ NM_DEVICE_STATE_REASON_MODEM_NO_CARRIER = 25, /* The dialing request timed out */ NM_DEVICE_STATE_REASON_MODEM_DIAL_TIMEOUT = 26, /* The dialing attempt failed */ NM_DEVICE_STATE_REASON_MODEM_DIAL_FAILED = 27, /* Modem initialization failed */ NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED = 28, /* Failed to select the specified APN */ NM_DEVICE_STATE_REASON_GSM_APN_FAILED = 29, /* Not searching for networks */ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_NOT_SEARCHING = 30, /* Network registration denied */ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED = 31, /* Network registration timed out */ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT = 32, /* Failed to register with the requested network */ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED = 33, /* PIN check failed */ NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED = 34, /* Necessary firmware for the device may be missing */ NM_DEVICE_STATE_REASON_FIRMWARE_MISSING = 35, /* The device was removed */ NM_DEVICE_STATE_REASON_REMOVED = 36, /* NetworkManager went to sleep */ NM_DEVICE_STATE_REASON_SLEEPING = 37, /* The device's active connection disappeared */ NM_DEVICE_STATE_REASON_CONNECTION_REMOVED = 38, /* Device disconnected by user or client */ NM_DEVICE_STATE_REASON_USER_REQUESTED = 39, /* Carrier/link changed */ NM_DEVICE_STATE_REASON_CARRIER = 40, /* The device's existing connection was assumed */ NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED = 41, /* The supplicant is now available */ NM_DEVICE_STATE_REASON_SUPPLICANT_AVAILABLE = 42, /* The modem could not be found */ NM_DEVICE_STATE_REASON_MODEM_NOT_FOUND = 43, /* The Bluetooth connection failed or timed out */ NM_DEVICE_STATE_REASON_BT_FAILED = 44, /* Unused */ NM_DEVICE_STATE_REASON_LAST = 0xFFFF }}} |
||'''Code Number'''||'''Name'''||'''Explanation'''|| || 0 || NM_DEVICE_STATE_REASON_NONE || No reason given || || 1 || NM_DEVICE_STATE_REASON_UNKNOWN || Unknown error || || 2 || NM_DEVICE_STATE_REASON_NOW_MANAGED || Device is now managed || || 3 || NM_DEVICE_STATE_REASON_NOW_UNMANAGED || Device is now unmanaged || || 4 || NM_DEVICE_STATE_REASON_CONFIG_FAILED || The device could not be readied for configuration || || 5 || NM_DEVICE_STATE_REASON_IP_CONFIG_UNAVAILABLE || IP configuration could not be reserved (no available address, timeout, etc) || || 6 || NM_DEVICE_STATE_REASON_IP_CONFIG_EXPIRED || The IP config is no longer valid || || 7 || NM_DEVICE_STATE_REASON_NO_SECRETS || Secrets were required, but not provided || || 8 || NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT || 802.1x supplicant disconnected || || 9 || NM_DEVICE_STATE_REASON_SUPPLICANT_CONFIG_FAILED || 802.1x supplicant configuration failed || || 10 || NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED || 802.1x supplicant failed || || 11 || NM_DEVICE_STATE_REASON_SUPPLICANT_TIMEOUT || 802.1x supplicant took too long to authenticate || || 12 || NM_DEVICE_STATE_REASON_PPP_START_FAILED || PPP service failed to start || || 13 || NM_DEVICE_STATE_REASON_PPP_DISCONNECT || PPP service disconnected || || 14 || NM_DEVICE_STATE_REASON_PPP_FAILED || PPP failed || || 15 || NM_DEVICE_STATE_REASON_DHCP_START_FAILED || DHCP client failed to start || || 16 || NM_DEVICE_STATE_REASON_DHCP_ERROR || DHCP client error || || 17 || NM_DEVICE_STATE_REASON_DHCP_FAILED || DHCP client failed || || 18 || NM_DEVICE_STATE_REASON_SHARED_START_FAILED || Shared connection service failed to start || || 19 || NM_DEVICE_STATE_REASON_SHARED_FAILED || Shared connection service failed || || 20 || NM_DEVICE_STATE_REASON_AUTOIP_START_FAILED || AutoIP service failed to start || || 21 || NM_DEVICE_STATE_REASON_AUTOIP_ERROR || AutoIP service error || || 22 || NM_DEVICE_STATE_REASON_AUTOIP_FAILED || AutoIP service failed || || 23 || NM_DEVICE_STATE_REASON_MODEM_BUSY || The line is busy || || 24 || NM_DEVICE_STATE_REASON_MODEM_NO_DIAL_TONE || No dial tone || || 25 || NM_DEVICE_STATE_REASON_MODEM_NO_CARRIER || No carrier could be established || || 26 || NM_DEVICE_STATE_REASON_MODEM_DIAL_TIMEOUT || The dialing request timed out || || 27 || NM_DEVICE_STATE_REASON_MODEM_DIAL_FAILED || The dialing attempt failed || || 28 || NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED || Modem initialization failed || || 29 || NM_DEVICE_STATE_REASON_GSM_APN_FAILED || Failed to select the specified APN || || 30 || NM_DEVICE_STATE_REASON_GSM_REGISTRATION_NOT_SEARCHING || Not searching for networks || || 31 || NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED || Network registration denied || || 32 || NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT || Network registration timed out || || 33 || NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED || Failed to register with the requested network || || 34 || NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED || PIN check failed || || 35 || NM_DEVICE_STATE_REASON_FIRMWARE_MISSING || Necessary firmware for the device may be missing || || 36 || NM_DEVICE_STATE_REASON_REMOVED || The device was removed || || 37 || NM_DEVICE_STATE_REASON_SLEEPING || NetworkManager went to sleep || || 38 || NM_DEVICE_STATE_REASON_CONNECTION_REMOVED || The device's active connection disappeared || || 39 || NM_DEVICE_STATE_REASON_USER_REQUESTED || Device disconnected by user or client || || 40 || NM_DEVICE_STATE_REASON_CARRIER || Carrier/link changed || || 41 || NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED || The device's existing connection was assumed || || 42 || NM_DEVICE_STATE_REASON_SUPPLICANT_AVAILABLE || The supplicant is now available || || 43 || NM_DEVICE_STATE_REASON_MODEM_NOT_FOUND || The modem could not be found || || 44 || NM_DEVICE_STATE_REASON_BT_FAILED || The Bluetooth connection failed or timed out || || 0xFFFF || NM_DEVICE_STATE_REASON_LAST || Unused || |
Line 149: | Line 57: |
{{{ typedef enum NMVPNConnectionStateReason { NM_VPN_CONNECTION_STATE_REASON_UNKNOWN = 0, NM_VPN_CONNECTION_STATE_REASON_NONE, NM_VPN_CONNECTION_STATE_REASON_USER_DISCONNECTED, NM_VPN_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED, NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED, NM_VPN_CONNECTION_STATE_REASON_IP_CONFIG_INVALID, NM_VPN_CONNECTION_STATE_REASON_CONNECT_TIMEOUT, NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT, NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_FAILED, NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS, NM_VPN_CONNECTION_STATE_REASON_LOGIN_FAILED, NM_VPN_CONNECTION_STATE_REASON_CONNECTION_REMOVED } NMVPNConnectionStateReason; }}} |
||'''Code Number'''||'''Name'''||'''Explanation'''|| || 0 || NM_VPN_CONNECTION_STATE_REASON_UNKNOWN || Unknown error || || 1 || NM_VPN_CONNECTION_STATE_REASON_NONE || No reason given || || 2 || NM_VPN_CONNECTION_STATE_REASON_USER_DISCONNECTED || User disconnected the session || || 3 || NM_VPN_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED || The underlying device was disconnected || || 4 || NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED || VPN service was stopped || || 5 || NM_VPN_CONNECTION_STATE_REASON_IP_CONFIG_INVALID || Invalid IP configuration (or IP selection timeout) || || 6 || NM_VPN_CONNECTION_STATE_REASON_CONNECT_TIMEOUT || Connection timeout || || 7 || NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT || The VPN service did not start in a timely manner || || 8 || NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_FAILED || The VPN service failed to start || || 9 || NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS || No secrets are available, but are needed for the connection || || 10 || NM_VPN_CONNECTION_STATE_REASON_LOGIN_FAILED || Failed to login to the VPN || || 11 || NM_VPN_CONNECTION_STATE_REASON_CONNECTION_REMOVED || The connection was removed || |
Warning: this page will surely need to be checked and updated every once in a while. Refer to include/NetworkManager.h and include/NetworkManagerVPN.h.
General device state change reason codes
The python script I used to generate this from NetworkManager.h is in lp:~mathieu-tl/+junk/nm-dev-tools.
Code Number |
Name |
Explanation |
0 |
NM_DEVICE_STATE_REASON_NONE |
No reason given |
1 |
NM_DEVICE_STATE_REASON_UNKNOWN |
Unknown error |
2 |
NM_DEVICE_STATE_REASON_NOW_MANAGED |
Device is now managed |
3 |
NM_DEVICE_STATE_REASON_NOW_UNMANAGED |
Device is now unmanaged |
4 |
NM_DEVICE_STATE_REASON_CONFIG_FAILED |
The device could not be readied for configuration |
5 |
NM_DEVICE_STATE_REASON_IP_CONFIG_UNAVAILABLE |
IP configuration could not be reserved (no available address, timeout, etc) |
6 |
NM_DEVICE_STATE_REASON_IP_CONFIG_EXPIRED |
The IP config is no longer valid |
7 |
NM_DEVICE_STATE_REASON_NO_SECRETS |
Secrets were required, but not provided |
8 |
NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT |
802.1x supplicant disconnected |
9 |
NM_DEVICE_STATE_REASON_SUPPLICANT_CONFIG_FAILED |
802.1x supplicant configuration failed |
10 |
NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED |
802.1x supplicant failed |
11 |
NM_DEVICE_STATE_REASON_SUPPLICANT_TIMEOUT |
802.1x supplicant took too long to authenticate |
12 |
NM_DEVICE_STATE_REASON_PPP_START_FAILED |
PPP service failed to start |
13 |
NM_DEVICE_STATE_REASON_PPP_DISCONNECT |
PPP service disconnected |
14 |
NM_DEVICE_STATE_REASON_PPP_FAILED |
PPP failed |
15 |
NM_DEVICE_STATE_REASON_DHCP_START_FAILED |
DHCP client failed to start |
16 |
NM_DEVICE_STATE_REASON_DHCP_ERROR |
DHCP client error |
17 |
NM_DEVICE_STATE_REASON_DHCP_FAILED |
DHCP client failed |
18 |
NM_DEVICE_STATE_REASON_SHARED_START_FAILED |
Shared connection service failed to start |
19 |
NM_DEVICE_STATE_REASON_SHARED_FAILED |
Shared connection service failed |
20 |
NM_DEVICE_STATE_REASON_AUTOIP_START_FAILED |
AutoIP service failed to start |
21 |
NM_DEVICE_STATE_REASON_AUTOIP_ERROR |
AutoIP service error |
22 |
NM_DEVICE_STATE_REASON_AUTOIP_FAILED |
AutoIP service failed |
23 |
NM_DEVICE_STATE_REASON_MODEM_BUSY |
The line is busy |
24 |
NM_DEVICE_STATE_REASON_MODEM_NO_DIAL_TONE |
No dial tone |
25 |
NM_DEVICE_STATE_REASON_MODEM_NO_CARRIER |
No carrier could be established |
26 |
NM_DEVICE_STATE_REASON_MODEM_DIAL_TIMEOUT |
The dialing request timed out |
27 |
NM_DEVICE_STATE_REASON_MODEM_DIAL_FAILED |
The dialing attempt failed |
28 |
NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED |
Modem initialization failed |
29 |
NM_DEVICE_STATE_REASON_GSM_APN_FAILED |
Failed to select the specified APN |
30 |
NM_DEVICE_STATE_REASON_GSM_REGISTRATION_NOT_SEARCHING |
Not searching for networks |
31 |
NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED |
Network registration denied |
32 |
NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT |
Network registration timed out |
33 |
NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED |
Failed to register with the requested network |
34 |
NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED |
PIN check failed |
35 |
NM_DEVICE_STATE_REASON_FIRMWARE_MISSING |
Necessary firmware for the device may be missing |
36 |
NM_DEVICE_STATE_REASON_REMOVED |
The device was removed |
37 |
NM_DEVICE_STATE_REASON_SLEEPING |
NetworkManager went to sleep |
38 |
NM_DEVICE_STATE_REASON_CONNECTION_REMOVED |
The device's active connection disappeared |
39 |
NM_DEVICE_STATE_REASON_USER_REQUESTED |
Device disconnected by user or client |
40 |
NM_DEVICE_STATE_REASON_CARRIER |
Carrier/link changed |
41 |
NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED |
The device's existing connection was assumed |
42 |
NM_DEVICE_STATE_REASON_SUPPLICANT_AVAILABLE |
The supplicant is now available |
43 |
NM_DEVICE_STATE_REASON_MODEM_NOT_FOUND |
The modem could not be found |
44 |
NM_DEVICE_STATE_REASON_BT_FAILED |
The Bluetooth connection failed or timed out |
0xFFFF |
NM_DEVICE_STATE_REASON_LAST |
Unused |
VPN state change reason codes
Code Number |
Name |
Explanation |
0 |
NM_VPN_CONNECTION_STATE_REASON_UNKNOWN |
Unknown error |
1 |
NM_VPN_CONNECTION_STATE_REASON_NONE |
No reason given |
2 |
NM_VPN_CONNECTION_STATE_REASON_USER_DISCONNECTED |
User disconnected the session |
3 |
NM_VPN_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED |
The underlying device was disconnected |
4 |
NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED |
VPN service was stopped |
5 |
NM_VPN_CONNECTION_STATE_REASON_IP_CONFIG_INVALID |
Invalid IP configuration (or IP selection timeout) |
6 |
NM_VPN_CONNECTION_STATE_REASON_CONNECT_TIMEOUT |
Connection timeout |
7 |
NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT |
The VPN service did not start in a timely manner |
8 |
NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_FAILED |
The VPN service failed to start |
9 |
NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS |
No secrets are available, but are needed for the connection |
10 |
NM_VPN_CONNECTION_STATE_REASON_LOGIN_FAILED |
Failed to login to the VPN |
11 |
NM_VPN_CONNECTION_STATE_REASON_CONNECTION_REMOVED |
The connection was removed |
DebuggingNetworkManager/ReasonCodes (last edited 2010-09-17 20:25:57 by modemcable251)