/!\ 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]]. == General device state change reason codes == 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]]. ||'''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 ||