From e74c568b07b50b97873fb4ee1d776dedefbd54d6 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 1 Oct 2021 23:05:04 +0200 Subject: New upstream version 1.32.12 --- docs/libnm/html/NMSettingConnection.html | 600 ++----------------------------- 1 file changed, 34 insertions(+), 566 deletions(-) (limited to 'docs/libnm/html/NMSettingConnection.html') diff --git a/docs/libnm/html/NMSettingConnection.html b/docs/libnm/html/NMSettingConnection.html index 9a77adbe..26337e4b 100644 --- a/docs/libnm/html/NMSettingConnection.html +++ b/docs/libnm/html/NMSettingConnection.html @@ -16,8 +16,7 @@ Top  |  Description  |  - Object Hierarchy  |  - Properties + Object Hierarchy Home Up @@ -323,152 +322,6 @@
-

Properties

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
intauth-retriesRead / Write
gbooleanautoconnectRead / Write
intautoconnect-priorityRead / Write
intautoconnect-retriesRead / Write
NMSettingConnectionAutoconnectSlavesautoconnect-slavesRead / Write
guintgateway-ping-timeoutRead / Write
-char *idRead / Write
-char *interface-nameRead / Write
intlldpRead / Write
intllmnrRead / Write
-char *masterRead / Write
intmdnsRead / Write
NMMeteredmeteredRead / Write
-char *mud-urlRead / Write
intmulti-connectRead / Write
GStrvpermissionsRead / Write
gbooleanread-onlyRead / Write
GStrvsecondariesRead / Write
-char *slave-typeRead / Write
-char *stable-idRead / Write
guint64timestampRead / Write
-char *typeRead / Write
-char *uuidRead / Write
intwait-device-timeoutRead / Write
-char *zoneRead / Write
-
-

Types and Values

@@ -608,10 +461,6 @@ - - - -
enum NMSettingConnectionLlmnr
 NMSettingConnection
@@ -622,9 +471,6 @@ ├── NMSettingConnectionLldp ├── NMSettingConnectionLlmnr ╰── NMSettingConnectionMdns - GObject - ╰── NMSetting - ╰── NMSettingConnection
@@ -651,7 +497,7 @@ nm_setting_connection_new (void

nm_setting_connection_get_id ()

const char *
 nm_setting_connection_get_id (NMSettingConnection *setting);
-

Returns the “id” property of the connection.

+

Returns the “id” property of the connection.

Parameters

@@ -677,7 +523,7 @@ nm_setting_connection_get_id (

nm_setting_connection_get_uuid ()

const char *
 nm_setting_connection_get_uuid (NMSettingConnection *setting);
-

Returns the “uuid” property of the connection.

+

Returns the “uuid” property of the connection.

Parameters

@@ -703,7 +549,7 @@ nm_setting_connection_get_uuid (

nm_setting_connection_get_stable_id ()

const char *
 nm_setting_connection_get_stable_id (NMSettingConnection *setting);
-

Returns the “stable_id” property of the connection.

+

Returns the “stable_id” property of the connection.

Parameters

@@ -731,7 +577,7 @@ nm_setting_connection_get_stable_id (const char * nm_setting_connection_get_interface_name (NMSettingConnection *setting); -

Returns the “interface-name” property of the connection.

+

Returns the “interface-name” property of the connection.

Parameters

@@ -758,7 +604,7 @@ nm_setting_connection_get_interface_name
const char *
 nm_setting_connection_get_connection_type
                                (NMSettingConnection *setting);
-

Returns the “type” property of the connection.

+

Returns the “type” property of the connection.

Parameters

@@ -784,7 +630,7 @@ nm_setting_connection_get_connection_type

nm_setting_connection_get_autoconnect ()

gboolean
 nm_setting_connection_get_autoconnect (NMSettingConnection *setting);
-

Returns the “autoconnect” property of the connection.

+

Returns the “autoconnect” property of the connection.

Parameters

@@ -811,7 +657,7 @@ nm_setting_connection_get_autoconnect (int nm_setting_connection_get_autoconnect_priority (NMSettingConnection *setting); -

Returns the “autoconnect-priority” property of the connection. +

Returns the “autoconnect-priority” property of the connection. The higher number, the higher priority.

Parameters

@@ -839,7 +685,7 @@ The higher number, the higher priority.

int
 nm_setting_connection_get_autoconnect_retries
                                (NMSettingConnection *setting);
-

Returns the “autoconnect-retries” property of the connection. +

Returns the “autoconnect-retries” property of the connection. Zero means infinite, -1 means the global default value.

Parameters

@@ -885,7 +731,7 @@ nm_setting_connection_get_multi_connect

Returns

-

the “multi-connect” property of the connection.

+

the “multi-connect” property of the connection.

Since: 1.14

@@ -894,7 +740,7 @@ nm_setting_connection_get_multi_connect

nm_setting_connection_get_timestamp ()

guint64
 nm_setting_connection_get_timestamp (NMSettingConnection *setting);
-

Returns the “timestamp” property of the connection.

+

Returns the “timestamp” property of the connection.

Parameters

@@ -920,7 +766,7 @@ nm_setting_connection_get_timestamp (

nm_setting_connection_get_read_only ()

gboolean
 nm_setting_connection_get_read_only (NMSettingConnection *setting);
-

Returns the “read-only” property of the connection.

+

Returns the “read-only” property of the connection.

Parameters

@@ -947,7 +793,7 @@ nm_setting_connection_get_read_only (guint32 nm_setting_connection_get_num_permissions (NMSettingConnection *setting); -

Returns the number of entries in the “permissions” +

Returns the number of entries in the “permissions” property of this setting.

Parameters

@@ -978,7 +824,7 @@ nm_setting_connection_get_permission (const char **out_ptype, const char **out_pitem, const char **out_detail); -

Retrieve one of the entries of the “permissions” property +

Retrieve one of the entries of the “permissions” property of this setting.

Parameters

@@ -1009,7 +855,7 @@ unless the entry is invalid, in which case it returns "invalid".

+“permissions” for more detail

@@ -1031,7 +877,7 @@ was invalid

nm_setting_connection_get_zone ()

const char *
 nm_setting_connection_get_zone (NMSettingConnection *setting);
-

Returns the “zone” property of the connection.

+

Returns the “zone” property of the connection.

Parameters

out_pitem

on return, the permission item (formatted according to ptype , see -“permissions” for more detail

 
@@ -1099,7 +945,7 @@ nm_setting_connection_add_permission (pitem must be a username. See -“permissions”: for more details.

+“permissions”: for more details.

Parameters

@@ -1188,7 +1034,7 @@ nm_setting_connection_remove_permission_by_value

Removes the permission from the connection. At this time, only the "user" permission type is supported, and pitem must -be a username. See “permissions”: for more details.

+be a username. See “permissions”: for more details.

Parameters

@@ -1232,7 +1078,7 @@ be a username. See

nm_setting_connection_get_master ()

const char *
 nm_setting_connection_get_master (NMSettingConnection *setting);
-

Returns the “master” property of the connection.

+

Returns the “master” property of the connection.

Parameters

@@ -1295,7 +1141,7 @@ against setting

nm_setting_connection_get_slave_type ()

const char *
 nm_setting_connection_get_slave_type (NMSettingConnection *setting);
-

Returns the “slave-type” property of the connection.

+

Returns the “slave-type” property of the connection.

Parameters

@@ -1322,7 +1168,7 @@ nm_setting_connection_get_slave_type (NMSettingConnectionAutoconnectSlaves nm_setting_connection_get_autoconnect_slaves (NMSettingConnection *setting); -

Returns the “autoconnect-slaves” property of the connection.

+

Returns the “autoconnect-slaves” property of the connection.

Parameters

@@ -1393,7 +1239,9 @@ nm_setting_connection_get_secondary ( - + @@ -1402,7 +1250,9 @@ nm_setting_connection_get_secondary (

Returns

the secondary connection UUID at index idx -

+or +NULL if idx +is the number of secondaries.


@@ -1531,7 +1381,7 @@ nm_setting_connection_get_gateway_ping_timeout

Returns

-

the value contained in the “gateway-ping-timeout” +

the value contained in the “gateway-ping-timeout” property.

@@ -1557,7 +1407,7 @@ nm_setting_connection_get_metered (

Returns

-

the “metered” property of the setting.

+

the “metered” property of the setting.

Since: 1.2

@@ -1566,7 +1416,7 @@ nm_setting_connection_get_metered (

nm_setting_connection_get_lldp ()

NMSettingConnectionLldp
 nm_setting_connection_get_lldp (NMSettingConnection *setting);
-

Returns the “lldp” property of the connection.

+

Returns the “lldp” property of the connection.

Parameters

idx

the zero-based index of the secondary connection UUID entry

the zero-based index of the secondary connection UUID entry. +Access one past the length of secondaries is ok and will return +NULL. Otherwise, it is a user error.

 
@@ -1595,7 +1445,7 @@ enabled for the connection.

int
 nm_setting_connection_get_auth_retries
                                (NMSettingConnection *setting);
-

Returns the value contained in the “auth-retries” property.

+

Returns the value contained in the “auth-retries” property.

Parameters

@@ -1640,7 +1490,7 @@ nm_setting_connection_get_mdns (

Returns

-

the “mdns” property of the setting.

+

the “mdns” property of the setting.

Since: 1.12

@@ -1666,7 +1516,7 @@ nm_setting_connection_get_llmnr (

Returns

-

the “llmnr” property of the setting.

+

the “llmnr” property of the setting.

Since: 1.14

@@ -1703,7 +1553,7 @@ the timeout in milliseconds. -1 is the default.

nm_setting_connection_get_mud_url ()

const char *
 nm_setting_connection_get_mud_url (NMSettingConnection *setting);
-

Returns the value contained in the “mud-url” +

Returns the value contained in the “mud-url” property.

Parameters

@@ -2069,388 +1919,6 @@ master is activated

Since: 1.14

-
-
-

NMSettingConnection

-
typedef struct _NMSettingConnection NMSettingConnection;
-

General Connection Profile Settings

-
- -
-

Property Details

-
-

The “auth-retries” property

-
  “auth-retries”             int
-

The number of retries for the authentication. Zero means to try indefinitely; -1 means -to use a global default. If the global default is not set, the authentication -retries for 3 times before failing the connection.

-

Currently, this only applies to 802-1x authentication.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Allowed values: >= -1

-

Default value: -1

-

Since: 1.10

-
-
-
-

The “autoconnect” property

-
  “autoconnect”              gboolean
-

Whether or not the connection should be automatically connected by -NetworkManager when the resources for the connection are available. -TRUE to automatically activate the connection, FALSE to require manual -intervention to activate the connection.

-

Note that autoconnect is not implemented for VPN profiles. See -“secondaries” as an alternative to automatically -connect VPN profiles.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: TRUE

-
-
-
-

The “autoconnect-priority” property

-
  “autoconnect-priority”     int
-

The autoconnect priority. If the connection is set to autoconnect, -connections with higher priority will be preferred. Defaults to 0. -The higher number means higher priority.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Allowed values: [-999,999]

-

Default value: 0

-
-
-
-

The “autoconnect-retries” property

-
  “autoconnect-retries”      int
-

The number of times a connection should be tried when autoactivating before -giving up. Zero means forever, -1 means the global default (4 times if not -overridden). Setting this to 1 means to try activation only once before -blocking autoconnect. Note that after a timeout, NetworkManager will try -to autoconnect again.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Allowed values: >= -1

-

Default value: -1

-
-
-
-

The “autoconnect-slaves” property

-
  “autoconnect-slaves”       NMSettingConnectionAutoconnectSlaves
-

Whether or not slaves of this connection should be automatically brought up -when NetworkManager activates this connection. This only has a real effect -for master connections. The properties “autoconnect”, -“autoconnect-priority” and “autoconnect-retries” -are unrelated to this setting. -The permitted values are: 0: leave slave connections untouched, -1: activate all the slave connections with this connection, -1: default. -If -1 (default) is set, global connection.autoconnect-slaves is read to -determine the real value. If it is default as well, this fallbacks to 0.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT

-

Since: 1.2

-
-
-
-

The “gateway-ping-timeout” property

-
  “gateway-ping-timeout”     guint
-

If greater than zero, delay success of IP addressing until either the -timeout is reached, or an IP gateway replies to a ping.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Allowed values: <= 600

-

Default value: 0

-
-
-
-

The “id” property

-
  “id”                       char *
-

A human readable unique identifier for the connection, like "Work Wi-Fi" -or "T-Mobile 3G".

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “interface-name” property

-
  “interface-name”           char *
-

The name of the network interface this connection is bound to. If not -set, then the connection can be attached to any interface of the -appropriate type (subject to restrictions imposed by other settings).

-

For software devices this specifies the name of the created device.

-

For connection types where interface names cannot easily be made -persistent (e.g. mobile broadband or USB Ethernet), this property should -not be used. Setting this property restricts the interfaces a connection -can be used with, and if interface names change or are reordered the -connection may be applied to the wrong interface.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “lldp” property

-
  “lldp”                     int
-

Whether LLDP is enabled for the connection.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: -1

-

Since: 1.2

-
-
-
-

The “llmnr” property

-
  “llmnr”                    int
-

Whether Link-Local Multicast Name Resolution (LLMNR) is enabled -for the connection. LLMNR is a protocol based on the Domain Name -System (DNS) packet format that allows both IPv4 and IPv6 hosts -to perform name resolution for hosts on the same local link.

-

The permitted values are: "yes" (2) register hostname and resolving -for the connection, "no" (0) disable LLMNR for the interface, "resolve" -(1) do not register hostname but allow resolving of LLMNR host names -If unspecified, "default" ultimately depends on the DNS plugin (which -for systemd-resolved currently means "yes").

-

This feature requires a plugin which supports LLMNR. Otherwise, the -setting has no effect. One such plugin is dns-systemd-resolved.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: -1

-

Since: 1.14

-
-
-
-

The “master” property

-
  “master”                   char *
-

Interface name of the master device or UUID of the master connection.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “mdns” property

-
  “mdns”                     int
-

Whether mDNS is enabled for the connection.

-

The permitted values are: "yes" (2) register hostname and resolving -for the connection, "no" (0) disable mDNS for the interface, "resolve" -(1) do not register hostname but allow resolving of mDNS host names -and "default" (-1) to allow lookup of a global default in NetworkManager.conf. -If unspecified, "default" ultimately depends on the DNS plugin (which -for systemd-resolved currently means "no").

-

This feature requires a plugin which supports mDNS. Otherwise, the -setting has no effect. One such plugin is dns-systemd-resolved.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: -1

-

Since: 1.12

-
-
-
-

The “metered” property

-
  “metered”                  NMMetered
-

Whether the connection is metered.

-

When updating this property on a currently activated connection, -the change takes effect immediately.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NM_METERED_UNKNOWN

-

Since: 1.2

-
-
-
-

The “mud-url” property

-
  “mud-url”                  char *
-

If configured, set to a Manufacturer Usage Description (MUD) URL that points -to manufacturer-recommended network policies for IoT devices. It is transmitted -as a DHCPv4 or DHCPv6 option. The value must be a valid URL starting with "https://".

-

The special value "none" is allowed to indicate that no MUD URL is used.

-

If the per-profile value is unspecified (the default), a global connection default gets -consulted. If still unspecified, the ultimate default is "none".

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-

Since: 1.26

-
-
-
-

The “multi-connect” property

-
  “multi-connect”            int
-

Specifies whether the profile can be active multiple times at a particular -moment. The value is of type NMConnectionMultiConnect.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: 0

-

Since: 1.14

-
-
-
-

The “permissions” property

-
  “permissions”              GStrv
-

An array of strings defining what access a given user has to this -connection. If this is NULL or empty, all users are allowed to access -this connection; otherwise users are allowed if and only if they are in -this list. When this is not empty, the connection can be active only when -one of the specified users is logged into an active session. Each entry -is of the form "[type]:[id]:[reserved]"; for example, "user:dcbw:blah".

-

At this time only the "user" [type] is allowed. Any other values are -ignored and reserved for future use. [id] is the username that this -permission refers to, which may not contain the ":" character. Any -[reserved] information present must be ignored and is reserved for future -use. All of [type], [id], and [reserved] must be valid UTF-8.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-
-
-
-

The “read-only” property

-
  “read-only”                gboolean
-

FALSE if the connection can be modified using the provided settings -service's D-Bus interface with the right privileges, or TRUE if the -connection is read-only and cannot be modified.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: FALSE

-
-
-
-

The “secondaries” property

-
  “secondaries”              GStrv
-

List of connection UUIDs that should be activated when the base -connection itself is activated. Currently, only VPN connections are -supported.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-
-
-
-

The “slave-type” property

-
  “slave-type”               char *
-

Setting name of the device type of this slave's master connection (eg, -NM_SETTING_BOND_SETTING_NAME), or NULL if this connection is not a -slave.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “stable-id” property

-
  “stable-id”                char *
-

This represents the identity of the connection used for various purposes. -It allows to configure multiple profiles to share the identity. Also, -the stable-id can contain placeholders that are substituted dynamically and -deterministically depending on the context.

-

The stable-id is used for generating IPv6 stable private addresses -with ipv6.addr-gen-mode=stable-privacy. It is also used to seed the -generated cloned MAC address for ethernet.cloned-mac-address=stable -and wifi.cloned-mac-address=stable. It is also used as DHCP client -identifier with ipv4.dhcp-client-id=stable and to derive the DHCP -DUID with ipv6.dhcp-duid=stable-[llt,ll,uuid].

-

Note that depending on the context where it is used, other parameters are -also seeded into the generation algorithm. For example, a per-host key -is commonly also included, so that different systems end up generating -different IDs. Or with ipv6.addr-gen-mode=stable-privacy, also the device's -name is included, so that different interfaces yield different addresses. -The per-host key is the identity of your machine and stored in /var/lib/NetworkManager/secret-key.

-

The '$' character is treated special to perform dynamic substitutions -at runtime. Currently, supported are "${CONNECTION}", "${DEVICE}", "${MAC}", -"${BOOT}", "${RANDOM}". -These effectively create unique IDs per-connection, per-device, per-boot, -or every time. Note that "${DEVICE}" corresponds to the interface name of the -device and "${MAC}" is the permanent MAC address of the device. -Any unrecognized patterns following '$' are treated verbatim, however -are reserved for future use. You are thus advised to avoid '$' or -escape it as "$$". -For example, set it to "${CONNECTION}-${BOOT}-${DEVICE}" to create a unique id for -this connection that changes with every reboot and differs depending on the -interface where the profile activates.

-

If the value is unset, a global connection default is consulted. If the -value is still unset, the default is similar to "${CONNECTION}" and uses -a unique, fixed ID for the connection.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-

Since: 1.4

-
-
-
-

The “timestamp” property

-
  “timestamp”                guint64
-

The time, in seconds since the Unix Epoch, that the connection was last -_successfully_ fully activated.

-

NetworkManager updates the connection timestamp periodically when the -connection is active to ensure that an active connection has the latest -timestamp. The property is only meant for reading (changes to this -property will not be preserved).

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: 0

-
-
-
-

The “type” property

-
  “type”                     char *
-

Base type of the connection. For hardware-dependent connections, should -contain the setting name of the hardware-type specific setting (ie, -"802-3-ethernet" or "802-11-wireless" or "bluetooth", etc), and for -non-hardware dependent connections like VPN or otherwise, should contain -the setting name of that setting type (ie, "vpn" or "bridge", etc).

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “uuid” property

-
  “uuid”                     char *
-

A universally unique identifier for the connection, for example generated -with libuuid. It should be assigned when the connection is created, and -never changed as long as the connection still applies to the same -network. For example, it should not be changed when the -“id” property or NMSettingIP4Config changes, but -might need to be re-created when the Wi-Fi SSID, mobile broadband network -provider, or “type” property changes.

-

The UUID must be in the format "2815492f-7e56-435e-b2e9-246bd7cdc664" -(ie, contains only hexadecimal characters and "-"). A suitable UUID may -be generated by nm_utils_uuid_generate() or -nm_utils_uuid_generate_from_string().

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “wait-device-timeout” property

-
  “wait-device-timeout”      int
-

Timeout in milliseconds to wait for device at startup. -During boot, devices may take a while to be detected by the driver. -This property will cause to delay NetworkManager-wait-online.service -and nm-online to give the device a chance to appear. This works by -waiting for the given timeout until a compatible device for the -profile is available and managed.

-

The value 0 means no wait time. The default value is -1, which -currently has the same meaning as no wait time.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Allowed values: >= -1

-

Default value: -1

-

Since: 1.20

-
-
-
-

The “zone” property

-
  “zone”                     char *
-

The trust level of a the connection. Free form case-insensitive string -(for example "Home", "Work", "Public"). NULL or unspecified zone means -the connection will be placed in the default zone as defined by the -firewall.

-

When updating this property on a currently activated connection, -the change takes effect immediately.

-

Owner: NMSettingConnection

-

Flags: Read / Write

-

Default value: NULL

-