![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define NM_AVAILABLE_IN_1_2 #define NM_DBUS_SERVICE #define NM_DBUS_PATH #define NM_DBUS_INTERFACE #define NM_DBUS_INTERFACE_DEVICE #define NM_DBUS_INTERFACE_DEVICE_WIRED #define NM_DBUS_INTERFACE_DEVICE_ADSL #define NM_DBUS_INTERFACE_DEVICE_WIRELESS #define NM_DBUS_INTERFACE_DEVICE_BLUETOOTH #define NM_DBUS_INTERFACE_DEVICE_OLPC_MESH #define NM_DBUS_PATH_ACCESS_POINT #define NM_DBUS_INTERFACE_ACCESS_POINT #define NM_DBUS_INTERFACE_DEVICE_MODEM #define NM_DBUS_INTERFACE_DEVICE_WIMAX #define NM_DBUS_INTERFACE_WIMAX_NSP #define NM_DBUS_PATH_WIMAX_NSP #define NM_DBUS_INTERFACE_ACTIVE_CONNECTION #define NM_DBUS_INTERFACE_IP4_CONFIG #define NM_DBUS_INTERFACE_DHCP4_CONFIG #define NM_DBUS_INTERFACE_IP6_CONFIG #define NM_DBUS_INTERFACE_DHCP6_CONFIG #define NM_DBUS_INTERFACE_DEVICE_INFINIBAND #define NM_DBUS_INTERFACE_DEVICE_BOND #define NM_DBUS_INTERFACE_DEVICE_TEAM #define NM_DBUS_INTERFACE_DEVICE_VLAN #define NM_DBUS_INTERFACE_DEVICE_BRIDGE #define NM_DBUS_INTERFACE_DEVICE_GENERIC #define NM_DBUS_INTERFACE_DEVICE_VETH #define NM_DBUS_INTERFACE_DEVICE_TUN #define NM_DBUS_INTERFACE_DEVICE_MACVLAN #define NM_DBUS_INTERFACE_DEVICE_VXLAN #define NM_DBUS_INTERFACE_DEVICE_GRE #define NM_DBUS_INTERFACE_DEVICE_IP_TUNNEL #define NM_DBUS_INTERFACE_SETTINGS #define NM_DBUS_PATH_SETTINGS #define NM_DBUS_INTERFACE_SETTINGS_CONNECTION #define NM_DBUS_PATH_SETTINGS_CONNECTION #define NM_DBUS_INTERFACE_SETTINGS_CONNECTION_SECRETS #define NM_DBUS_INTERFACE_AGENT_MANAGER #define NM_DBUS_PATH_AGENT_MANAGER #define NM_DBUS_INTERFACE_SECRET_AGENT #define NM_DBUS_PATH_SECRET_AGENT enum NMState; enum NMConnectivityState; enum NMDeviceType; enum NMDeviceCapabilities; enum NMDeviceWifiCapabilities; enum NM80211ApFlags; enum NM80211ApSecurityFlags; enum NM80211Mode; enum NMBluetoothCapabilities; enum NMDeviceModemCapabilities; enum NMWimaxNspNetworkType; enum NMDeviceState; enum NMDeviceStateReason; enum NMMetered; enum NMActiveConnectionState; enum NMSecretAgentGetSecretsFlags; enum NMSecretAgentCapabilities; #define NM_LLDP_ATTR_DESTINATION #define NM_LLDP_ATTR_CHASSIS_ID_TYPE #define NM_LLDP_ATTR_CHASSIS_ID #define NM_LLDP_ATTR_PORT_ID_TYPE #define NM_LLDP_ATTR_PORT_ID #define NM_LLDP_ATTR_PORT_DESCRIPTION #define NM_LLDP_ATTR_SYSTEM_NAME #define NM_LLDP_ATTR_SYSTEM_DESCRIPTION #define NM_LLDP_ATTR_SYSTEM_CAPABILITIES #define NM_LLDP_ATTR_IEEE_802_1_PVID #define NM_LLDP_ATTR_IEEE_802_1_PPVID #define NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS #define NM_LLDP_ATTR_IEEE_802_1_VID #define NM_LLDP_ATTR_IEEE_802_1_VLAN_NAME #define NM_LLDP_DEST_NEAREST_BRIDGE #define NM_LLDP_DEST_NEAREST_NON_TPMR_BRIDGE #define NM_LLDP_DEST_NEAREST_CUSTOMER_BRIDGE enum NMIPTunnelMode;
GEnum +----NMState
GEnum +----NMConnectivityState
GEnum +----NMDeviceType
GFlags +----NMDeviceCapabilities
GFlags +----NMDeviceWifiCapabilities
GFlags +----NM80211ApFlags
GFlags +----NM80211ApSecurityFlags
GEnum +----NM80211Mode
GFlags +----NMBluetoothCapabilities
GFlags +----NMDeviceModemCapabilities
GEnum +----NMWimaxNspNetworkType
GEnum +----NMDeviceState
GEnum +----NMDeviceStateReason
GEnum +----NMMetered
GEnum +----NMActiveConnectionState
GFlags +----NMSecretAgentGetSecretsFlags
GFlags +----NMSecretAgentCapabilities
GEnum +----NMIPTunnelMode
#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"
#define NM_DBUS_INTERFACE_ACCESS_POINT NM_DBUS_INTERFACE ".AccessPoint"
#define NM_DBUS_INTERFACE_DEVICE_MODEM NM_DBUS_INTERFACE_DEVICE ".Modem"
#define NM_DBUS_INTERFACE_DEVICE_WIMAX NM_DBUS_INTERFACE_DEVICE ".WiMax"
#define NM_DBUS_INTERFACE_ACTIVE_CONNECTION NM_DBUS_INTERFACE ".Connection.Active"
#define NM_DBUS_INTERFACE_DHCP4_CONFIG NM_DBUS_INTERFACE ".DHCP4Config"
#define NM_DBUS_INTERFACE_DHCP6_CONFIG NM_DBUS_INTERFACE ".DHCP6Config"
#define NM_DBUS_INTERFACE_DEVICE_INFINIBAND NM_DBUS_INTERFACE_DEVICE ".Infiniband"
#define NM_DBUS_INTERFACE_DEVICE_BOND NM_DBUS_INTERFACE_DEVICE ".Bond"
#define NM_DBUS_INTERFACE_DEVICE_TEAM NM_DBUS_INTERFACE_DEVICE ".Team"
#define NM_DBUS_INTERFACE_DEVICE_VLAN NM_DBUS_INTERFACE_DEVICE ".Vlan"
#define NM_DBUS_INTERFACE_DEVICE_BRIDGE NM_DBUS_INTERFACE_DEVICE ".Bridge"
#define NM_DBUS_INTERFACE_DEVICE_GENERIC NM_DBUS_INTERFACE_DEVICE ".Generic"
#define NM_DBUS_INTERFACE_DEVICE_VETH NM_DBUS_INTERFACE_DEVICE ".Veth"
#define NM_DBUS_INTERFACE_DEVICE_MACVLAN NM_DBUS_INTERFACE_DEVICE ".Macvlan"
#define NM_DBUS_INTERFACE_DEVICE_VXLAN NM_DBUS_INTERFACE_DEVICE ".Vxlan"
#define NM_DBUS_INTERFACE_DEVICE_IP_TUNNEL NM_DBUS_INTERFACE_DEVICE ".IPTunnel"
#define NM_DBUS_INTERFACE_SETTINGS "org.freedesktop.NetworkManager.Settings"
#define NM_DBUS_INTERFACE_SETTINGS_CONNECTION "org.freedesktop.NetworkManager.Settings.Connection"
#define NM_DBUS_PATH_SETTINGS_CONNECTION "/org/freedesktop/NetworkManager/Settings/Connection"
#define NM_DBUS_INTERFACE_SETTINGS_CONNECTION_SECRETS "org.freedesktop.NetworkManager.Settings.Connection.Secrets"
#define NM_DBUS_INTERFACE_AGENT_MANAGER NM_DBUS_INTERFACE ".AgentManager"
#define NM_DBUS_PATH_AGENT_MANAGER "/org/freedesktop/NetworkManager/AgentManager"
#define NM_DBUS_INTERFACE_SECRET_AGENT NM_DBUS_INTERFACE ".SecretAgent"
#define NM_DBUS_PATH_SECRET_AGENT "/org/freedesktop/NetworkManager/SecretAgent"
typedef enum { NM_STATE_UNKNOWN = 0, NM_STATE_ASLEEP = 10, NM_STATE_DISCONNECTED = 20, NM_STATE_DISCONNECTING = 30, NM_STATE_CONNECTING = 40, NM_STATE_CONNECTED_LOCAL = 50, NM_STATE_CONNECTED_SITE = 60, NM_STATE_CONNECTED_GLOBAL = 70 } NMState;
NMState values indicate the current overall networking state.
networking state is unknown | |
networking is not enabled | |
there is no active network connection | |
network connections are being cleaned up | |
a network connection is being started | |
there is only local IPv4 and/or IPv6 connectivity | |
there is only site-wide IPv4 and/or IPv6 connectivity | |
there is global IPv4 and/or IPv6 Internet connectivity |
typedef enum { NM_CONNECTIVITY_UNKNOWN, NM_CONNECTIVITY_NONE, NM_CONNECTIVITY_PORTAL, NM_CONNECTIVITY_LIMITED, NM_CONNECTIVITY_FULL } NMConnectivityState;
Network connectivity is unknown. | |
The host is not connected to any network. | |
The host is behind a captive portal and cannot reach the full Internet. | |
The host is connected to a network, but does not appear to be able to reach the full Internet. | |
The host is connected to a network, and appears to be able to reach the full Internet. |
typedef enum { NM_DEVICE_TYPE_UNKNOWN = 0, NM_DEVICE_TYPE_ETHERNET = 1, NM_DEVICE_TYPE_WIFI = 2, NM_DEVICE_TYPE_UNUSED1 = 3, NM_DEVICE_TYPE_UNUSED2 = 4, NM_DEVICE_TYPE_BT = 5, /* Bluetooth */ NM_DEVICE_TYPE_OLPC_MESH = 6, NM_DEVICE_TYPE_WIMAX = 7, NM_DEVICE_TYPE_MODEM = 8, NM_DEVICE_TYPE_INFINIBAND = 9, NM_DEVICE_TYPE_BOND = 10, NM_DEVICE_TYPE_VLAN = 11, NM_DEVICE_TYPE_ADSL = 12, NM_DEVICE_TYPE_BRIDGE = 13, NM_DEVICE_TYPE_GENERIC = 14, NM_DEVICE_TYPE_TEAM = 15, NM_DEVICE_TYPE_TUN = 16, NM_DEVICE_TYPE_IP_TUNNEL = 17, NM_DEVICE_TYPE_MACVLAN = 18, NM_DEVICE_TYPE_VXLAN = 19, NM_DEVICE_TYPE_VETH = 20, } NMDeviceType;
NMDeviceType values indicate the type of hardware represented by a device object.
unknown device | |
a wired ethernet device | |
an 802.11 WiFi device | |
not used | |
not used | |
a Bluetooth device supporting PAN or DUN access protocols | |
an OLPC XO mesh networking device | |
an 802.16e Mobile WiMAX broadband device | |
a modem supporting analog telephone, CDMA/EVDO, GSM/UMTS, or LTE network access protocols | |
an IP-over-InfiniBand device | |
a bond master interface | |
an 802.1Q VLAN interface | |
ADSL modem | |
a bridge master interface | |
generic support for unrecognized device types | |
a team master interface | |
a TUN or TAP interface | |
a IP tunnel interface | |
a MACVLAN interface | |
a VXLAN interface | |
a VETH interface |
typedef enum { /*< flags >*/ NM_DEVICE_CAP_NONE = 0x00000000, NM_DEVICE_CAP_NM_SUPPORTED = 0x00000001, NM_DEVICE_CAP_CARRIER_DETECT = 0x00000002, NM_DEVICE_CAP_IS_SOFTWARE = 0x00000004, } NMDeviceCapabilities;
General device capability flags.
typedef enum { /*< flags >*/ NM_WIFI_DEVICE_CAP_NONE = 0x00000000, NM_WIFI_DEVICE_CAP_CIPHER_WEP40 = 0x00000001, NM_WIFI_DEVICE_CAP_CIPHER_WEP104 = 0x00000002, NM_WIFI_DEVICE_CAP_CIPHER_TKIP = 0x00000004, NM_WIFI_DEVICE_CAP_CIPHER_CCMP = 0x00000008, NM_WIFI_DEVICE_CAP_WPA = 0x00000010, NM_WIFI_DEVICE_CAP_RSN = 0x00000020, NM_WIFI_DEVICE_CAP_AP = 0x00000040, NM_WIFI_DEVICE_CAP_ADHOC = 0x00000080, NM_WIFI_DEVICE_CAP_FREQ_VALID = 0x00000100, NM_WIFI_DEVICE_CAP_FREQ_2GHZ = 0x00000200, NM_WIFI_DEVICE_CAP_FREQ_5GHZ = 0x00000400, } NMDeviceWifiCapabilities;
802.11 specific device encryption and authentication capabilities.
device has no encryption/authentication capabilities | |
device supports 40/64-bit WEP encryption | |
device supports 104/128-bit WEP encryption | |
device supports TKIP encryption | |
device supports AES/CCMP encryption | |
device supports WPA1 authentication | |
device supports WPA2/RSN authentication | |
device supports Access Point mode | |
device supports Ad-Hoc mode | |
device reports frequency capabilities | |
device supports 2.4GHz frequencies | |
device supports 5GHz frequencies |
typedef enum { /*< underscore_name=nm_802_11_ap_flags, flags >*/ NM_802_11_AP_FLAGS_NONE = 0x00000000, NM_802_11_AP_FLAGS_PRIVACY = 0x00000001 } NM80211ApFlags;
802.11 access point flags.
typedef enum { /*< underscore_name=nm_802_11_ap_security_flags, flags >*/ NM_802_11_AP_SEC_NONE = 0x00000000, NM_802_11_AP_SEC_PAIR_WEP40 = 0x00000001, NM_802_11_AP_SEC_PAIR_WEP104 = 0x00000002, NM_802_11_AP_SEC_PAIR_TKIP = 0x00000004, NM_802_11_AP_SEC_PAIR_CCMP = 0x00000008, NM_802_11_AP_SEC_GROUP_WEP40 = 0x00000010, NM_802_11_AP_SEC_GROUP_WEP104 = 0x00000020, NM_802_11_AP_SEC_GROUP_TKIP = 0x00000040, NM_802_11_AP_SEC_GROUP_CCMP = 0x00000080, NM_802_11_AP_SEC_KEY_MGMT_PSK = 0x00000100, NM_802_11_AP_SEC_KEY_MGMT_802_1X = 0x00000200 } NM80211ApSecurityFlags;
802.11 access point security and authentication flags. These flags describe the current security requirements of an access point as determined from the access point's beacon.
the access point has no special security requirements | |
40/64-bit WEP is supported for pairwise/unicast encryption | |
104/128-bit WEP is supported for pairwise/unicast encryption | |
TKIP is supported for pairwise/unicast encryption | |
AES/CCMP is supported for pairwise/unicast encryption | |
40/64-bit WEP is supported for group/broadcast encryption | |
104/128-bit WEP is supported for group/broadcast encryption | |
TKIP is supported for group/broadcast encryption | |
AES/CCMP is supported for group/broadcast encryption | |
WPA/RSN Pre-Shared Key encryption is supported | |
802.1x authentication and key management is supported |
typedef enum { /*< underscore_name=nm_802_11_mode >*/ NM_802_11_MODE_UNKNOWN = 0, NM_802_11_MODE_ADHOC, NM_802_11_MODE_INFRA, NM_802_11_MODE_AP } NM80211Mode;
Indicates the 802.11 mode an access point or device is currently in.
the device or access point mode is unknown | |
for both devices and access point objects, indicates the object is part of an Ad-Hoc 802.11 network without a central coordinating access point. | |
the device or access point is in infrastructure mode. For devices, this indicates the device is an 802.11 client/station. For access point objects, this indicates the object is an access point that provides connectivity to clients. | |
the device is an access point/hotspot. Not valid for access point objects; used only for hotspot mode on the local machine. |
typedef enum { /*< flags >*/ NM_BT_CAPABILITY_NONE = 0x00000000, NM_BT_CAPABILITY_DUN = 0x00000001, NM_BT_CAPABILITY_NAP = 0x00000002, } NMBluetoothCapabilities;
NMBluetoothCapabilities values indicate the usable capabilities of a Bluetooth device.
typedef enum { /*< flags >*/ NM_DEVICE_MODEM_CAPABILITY_NONE = 0x00000000, NM_DEVICE_MODEM_CAPABILITY_POTS = 0x00000001, NM_DEVICE_MODEM_CAPABILITY_CDMA_EVDO = 0x00000002, NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS = 0x00000004, NM_DEVICE_MODEM_CAPABILITY_LTE = 0x00000008, } NMDeviceModemCapabilities;
NMDeviceModemCapabilities values indicate the generic radio access technology families a modem device supports. For more information on the specific access technologies the device supports use the ModemManager D-Bus API.
modem has no usable capabilities | |
modem uses the analog wired telephone network and is not a wireless/cellular device | |
modem supports at least one of CDMA 1xRTT, EVDO revision 0, EVDO revision A, or EVDO revision B | |
modem supports at least one of GSM, GPRS, EDGE, UMTS, HSDPA, HSUPA, or HSPA+ packet switched data capability | |
modem has LTE data capability |
typedef enum { NM_WIMAX_NSP_NETWORK_TYPE_UNKNOWN = 0, NM_WIMAX_NSP_NETWORK_TYPE_HOME = 1, NM_WIMAX_NSP_NETWORK_TYPE_PARTNER = 2, NM_WIMAX_NSP_NETWORK_TYPE_ROAMING_PARTNER = 3 } NMWimaxNspNetworkType;
WiMAX network type.
typedef enum { NM_DEVICE_STATE_UNKNOWN = 0, NM_DEVICE_STATE_UNMANAGED = 10, NM_DEVICE_STATE_UNAVAILABLE = 20, NM_DEVICE_STATE_DISCONNECTED = 30, NM_DEVICE_STATE_PREPARE = 40, NM_DEVICE_STATE_CONFIG = 50, NM_DEVICE_STATE_NEED_AUTH = 60, NM_DEVICE_STATE_IP_CONFIG = 70, NM_DEVICE_STATE_IP_CHECK = 80, NM_DEVICE_STATE_SECONDARIES = 90, NM_DEVICE_STATE_ACTIVATED = 100, NM_DEVICE_STATE_DEACTIVATING = 110, NM_DEVICE_STATE_FAILED = 120 } NMDeviceState;
the device's state is unknown | |
the device is recognized, but not managed by NetworkManager | |
the device is managed by NetworkManager, but is not available for use. Reasons may include the wireless switched off, missing firmware, no ethernet carrier, missing supplicant or modem manager, etc. | |
the device can be activated, but is currently idle and not connected to a network. | |
the device is preparing the connection to the network. This may include operations like changing the MAC address, setting physical link properties, and anything else required to connect to the requested network. | |
the device is connecting to the requested network. This may include operations like associating with the WiFi AP, dialing the modem, connecting to the remote Bluetooth device, etc. | |
the device requires more information to continue connecting to the requested network. This includes secrets like WiFi passphrases, login passwords, PIN codes, etc. | |
the device is requesting IPv4 and/or IPv6 addresses and routing information from the network. | |
the device is checking whether further action is required for the requested network connection. This may include checking whether only local network access is available, whether a captive portal is blocking access to the Internet, etc. | |
the device is waiting for a secondary connection (like a VPN) which must activated before the device can be activated | |
the device has a network connection, either local or global. | |
a disconnection from the current network connection was requested, and the device is cleaning up resources used for that connection. The network connection may still be valid. | |
the device failed to connect to the requested network and is cleaning up the connection request |
typedef enum { NM_DEVICE_STATE_REASON_NONE = 0, NM_DEVICE_STATE_REASON_UNKNOWN = 1, NM_DEVICE_STATE_REASON_NOW_MANAGED = 2, NM_DEVICE_STATE_REASON_NOW_UNMANAGED = 3, NM_DEVICE_STATE_REASON_CONFIG_FAILED = 4, NM_DEVICE_STATE_REASON_IP_CONFIG_UNAVAILABLE = 5, NM_DEVICE_STATE_REASON_IP_CONFIG_EXPIRED = 6, NM_DEVICE_STATE_REASON_NO_SECRETS = 7, NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT = 8, NM_DEVICE_STATE_REASON_SUPPLICANT_CONFIG_FAILED = 9, NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED = 10, NM_DEVICE_STATE_REASON_SUPPLICANT_TIMEOUT = 11, NM_DEVICE_STATE_REASON_PPP_START_FAILED = 12, NM_DEVICE_STATE_REASON_PPP_DISCONNECT = 13, NM_DEVICE_STATE_REASON_PPP_FAILED = 14, NM_DEVICE_STATE_REASON_DHCP_START_FAILED = 15, NM_DEVICE_STATE_REASON_DHCP_ERROR = 16, NM_DEVICE_STATE_REASON_DHCP_FAILED = 17, NM_DEVICE_STATE_REASON_SHARED_START_FAILED = 18, NM_DEVICE_STATE_REASON_SHARED_FAILED = 19, NM_DEVICE_STATE_REASON_AUTOIP_START_FAILED = 20, NM_DEVICE_STATE_REASON_AUTOIP_ERROR = 21, NM_DEVICE_STATE_REASON_AUTOIP_FAILED = 22, NM_DEVICE_STATE_REASON_MODEM_BUSY = 23, NM_DEVICE_STATE_REASON_MODEM_NO_DIAL_TONE = 24, NM_DEVICE_STATE_REASON_MODEM_NO_CARRIER = 25, NM_DEVICE_STATE_REASON_MODEM_DIAL_TIMEOUT = 26, NM_DEVICE_STATE_REASON_MODEM_DIAL_FAILED = 27, NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED = 28, NM_DEVICE_STATE_REASON_GSM_APN_FAILED = 29, NM_DEVICE_STATE_REASON_GSM_REGISTRATION_NOT_SEARCHING = 30, NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED = 31, NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT = 32, NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED = 33, NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED = 34, NM_DEVICE_STATE_REASON_FIRMWARE_MISSING = 35, NM_DEVICE_STATE_REASON_REMOVED = 36, NM_DEVICE_STATE_REASON_SLEEPING = 37, NM_DEVICE_STATE_REASON_CONNECTION_REMOVED = 38, NM_DEVICE_STATE_REASON_USER_REQUESTED = 39, NM_DEVICE_STATE_REASON_CARRIER = 40, NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED = 41, NM_DEVICE_STATE_REASON_SUPPLICANT_AVAILABLE = 42, NM_DEVICE_STATE_REASON_MODEM_NOT_FOUND = 43, NM_DEVICE_STATE_REASON_BT_FAILED = 44, NM_DEVICE_STATE_REASON_GSM_SIM_NOT_INSERTED = 45, NM_DEVICE_STATE_REASON_GSM_SIM_PIN_REQUIRED = 46, NM_DEVICE_STATE_REASON_GSM_SIM_PUK_REQUIRED = 47, NM_DEVICE_STATE_REASON_GSM_SIM_WRONG = 48, NM_DEVICE_STATE_REASON_INFINIBAND_MODE = 49, NM_DEVICE_STATE_REASON_DEPENDENCY_FAILED = 50, NM_DEVICE_STATE_REASON_BR2684_FAILED = 51, NM_DEVICE_STATE_REASON_MODEM_MANAGER_UNAVAILABLE = 52, NM_DEVICE_STATE_REASON_SSID_NOT_FOUND = 53, NM_DEVICE_STATE_REASON_SECONDARY_CONNECTION_FAILED = 54, NM_DEVICE_STATE_REASON_DCB_FCOE_FAILED = 55, NM_DEVICE_STATE_REASON_TEAMD_CONTROL_FAILED = 56, NM_DEVICE_STATE_REASON_MODEM_FAILED = 57, NM_DEVICE_STATE_REASON_MODEM_AVAILABLE = 58, NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT = 59, NM_DEVICE_STATE_REASON_NEW_ACTIVATION = 60, NM_DEVICE_STATE_REASON_PARENT_CHANGED = 61, NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED = 62, } NMDeviceStateReason;
Device state change reason codes
No reason given | |
Unknown error | |
Device is now managed | |
Device is now unmanaged | |
The device could not be readied for configuration | |
IP configuration could not be reserved (no available address, timeout, etc) | |
The IP config is no longer valid | |
Secrets were required, but not provided | |
802.1x supplicant disconnected | |
802.1x supplicant configuration failed | |
802.1x supplicant failed | |
802.1x supplicant took too long to authenticate | |
PPP service failed to start | |
PPP service disconnected | |
PPP failed | |
DHCP client failed to start | |
DHCP client error | |
DHCP client failed | |
Shared connection service failed to start | |
Shared connection service failed | |
AutoIP service failed to start | |
AutoIP service error | |
AutoIP service failed | |
The line is busy | |
No dial tone | |
No carrier could be established | |
The dialing request timed out | |
The dialing attempt failed | |
Modem initialization failed | |
Failed to select the specified APN | |
Not searching for networks | |
Network registration denied | |
Network registration timed out | |
Failed to register with the requested network | |
PIN check failed | |
Necessary firmware for the device may be missing | |
The device was removed | |
NetworkManager went to sleep | |
The device's active connection disappeared | |
Device disconnected by user or client | |
Carrier/link changed | |
The device's existing connection was assumed | |
The supplicant is now available | |
The modem could not be found | |
The Bluetooth connection failed or timed out | |
GSM Modem's SIM Card not inserted | |
GSM Modem's SIM Pin required | |
GSM Modem's SIM Puk required | |
GSM Modem's SIM wrong | |
InfiniBand device does not support connected mode | |
A dependency of the connection failed | |
Problem with the RFC 2684 Ethernet over ADSL bridge | |
ModemManager not running | |
The WiFi network could not be found | |
A secondary connection of the base connection failed | |
DCB or FCoE setup failed | |
teamd control failed | |
Modem failed or no longer available | |
Modem now ready and available | |
SIM PIN was incorrect | |
New connection activation was enqueued | |
the device's parent changed | |
the device parent's management changed |
typedef enum { NM_METERED_UNKNOWN = 0, NM_METERED_YES = 1, NM_METERED_NO = 2, NM_METERED_GUESS_YES = 3, NM_METERED_GUESS_NO = 4, } NMMetered;
The metered status is unknown | |
Metered, the value was statically set | |
Not metered, the value was statically set | |
Metered, the value was guessed | |
Not metered, the value was guessed |
Since 1.2
typedef enum { NM_ACTIVE_CONNECTION_STATE_UNKNOWN = 0, NM_ACTIVE_CONNECTION_STATE_ACTIVATING, NM_ACTIVE_CONNECTION_STATE_ACTIVATED, NM_ACTIVE_CONNECTION_STATE_DEACTIVATING, NM_ACTIVE_CONNECTION_STATE_DEACTIVATED } NMActiveConnectionState;
NMActiveConnectionState values indicate the state of a connection to a specific network while it is starting, connected, or disconnecting from that network.
the state of the connection is unknown | |
a network connection is being prepared | |
there is a connection to the network | |
the network connection is being torn down and cleaned up | |
the network connection is disconnected and will be removed |
typedef enum { /*< flags >*/ NM_SECRET_AGENT_GET_SECRETS_FLAG_NONE = 0x0, NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION = 0x1, NM_SECRET_AGENT_GET_SECRETS_FLAG_REQUEST_NEW = 0x2, NM_SECRET_AGENT_GET_SECRETS_FLAG_USER_REQUESTED = 0x4, /* Internal to NM; not part of the D-Bus API */ NM_SECRET_AGENT_GET_SECRETS_FLAG_ONLY_SYSTEM = 0x80000000, NM_SECRET_AGENT_GET_SECRETS_FLAG_NO_ERRORS = 0x40000000, } NMSecretAgentGetSecretsFlags;
NMSecretAgentGetSecretsFlags values modify the behavior of a GetSecrets request.
no special behavior; by default no user interaction is allowed and requests for secrets are fulfilled from persistent storage, or if no secrets are available an error is returned. | |
allows the request to interact with the user, possibly prompting via UI for secrets if any are required, or if none are found in persistent storage. | |
explicitly prompt for new secrets from the user. This flag signals that NetworkManager thinks any existing secrets are invalid or wrong. This flag implies that interaction is allowed. | |
set if the request was initiated by user-requested action via the D-Bus interface, as opposed to automatically initiated by NetworkManager in response to (for example) scan results or carrier changes. | |
Internal flag, not part of the D-Bus API. | |
Internal flag, not part of the D-Bus API. |
typedef enum { NM_SECRET_AGENT_CAPABILITY_NONE = 0x0, NM_SECRET_AGENT_CAPABILITY_VPN_HINTS = 0x1, /* boundary value */ NM_SECRET_AGENT_CAPABILITY_LAST = NM_SECRET_AGENT_CAPABILITY_VPN_HINTS } NMSecretAgentCapabilities;
NMSecretAgentCapabilities indicate various capabilities of the agent.
#define NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS "ieee-802-1-ppvid-flags"
#define NM_LLDP_DEST_NEAREST_NON_TPMR_BRIDGE "nearest-non-tpmr-bridge"
#define NM_LLDP_DEST_NEAREST_CUSTOMER_BRIDGE "nearest-customer-bridge"
typedef enum { NM_IP_TUNNEL_MODE_UNKNOWN = 0, NM_IP_TUNNEL_MODE_IPIP = 1, NM_IP_TUNNEL_MODE_GRE = 2, NM_IP_TUNNEL_MODE_SIT = 3, NM_IP_TUNNEL_MODE_ISATAP = 4, NM_IP_TUNNEL_MODE_VTI = 5, NM_IP_TUNNEL_MODE_IP6IP6 = 6, NM_IP_TUNNEL_MODE_IPIP6 = 7, NM_IP_TUNNEL_MODE_IP6GRE = 8, NM_IP_TUNNEL_MODE_VTI6 = 9, } NMIPTunnelMode;
The tunneling mode.
Unknown/unset tunnel mode | |
IP in IP tunnel | |
GRE tunnel | |
SIT tunnel | |
ISATAP tunnel | |
VTI tunnel | |
IPv6 in IPv6 tunnel | |
IPv4 in IPv6 tunnel | |
IPv6 GRE tunnel | |
IPv6 VTI tunnel |
Since 1.2