From 85563b7fc7ec2cd21e38debb9b28db342e2e8e7c Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Sun, 21 Apr 2019 21:09:51 +0200 Subject: New upstream version 1.18.0 --- docs/libnm/html/NMDevice.html | 54 +- docs/libnm/html/NMSettingBridge.html | 1056 +++++++- docs/libnm/html/NMSettingBridgePort.html | 279 ++ docs/libnm/html/NMSettingIPConfig.html | 3647 +++++++++++++++++++------- docs/libnm/html/NMSettingSriov.html | 22 + docs/libnm/html/NMSettingTCConfig.html | 133 + docs/libnm/html/api-index-full.html | 400 +++ docs/libnm/html/index.html | 2 +- docs/libnm/html/libnm-nm-dbus-interface.html | 72 +- docs/libnm/html/libnm-nm-utils.html | 6 +- docs/libnm/html/libnm-nm-version.html | 32 + docs/libnm/html/libnm.devhelp2 | 110 +- docs/libnm/html/object-tree.html | 3 + docs/libnm/html/usage.html | 2 +- 14 files changed, 4876 insertions(+), 942 deletions(-) (limited to 'docs/libnm/html') diff --git a/docs/libnm/html/NMDevice.html b/docs/libnm/html/NMDevice.html index 6f9f1ae6..81c800f6 100644 --- a/docs/libnm/html/NMDevice.html +++ b/docs/libnm/html/NMDevice.html @@ -493,6 +493,14 @@ nm_lldp_neighbor_get_attr_type () + + +GVariant * + + +nm_lldp_neighbor_get_attr_value () + + @@ -2722,7 +2730,7 @@ nm_lldp_neighbor_get_attr_names (gboolean nm_lldp_neighbor_get_attr_string_value (NMLldpNeighbor *neighbor, - char *name, + const char *name, const char **out_value);

Gets the string value of attribute with name name on neighbor @@ -2766,7 +2774,7 @@ was found,

nm_lldp_neighbor_get_attr_uint_value ()

gboolean
 nm_lldp_neighbor_get_attr_uint_value (NMLldpNeighbor *neighbor,
-                                      char *name,
+                                      const char *name,
                                       guint *out_value);

Gets the uint value of attribute with name name on neighbor @@ -2810,7 +2818,7 @@ was found,

nm_lldp_neighbor_get_attr_type ()

const GVariantType *
 nm_lldp_neighbor_get_attr_type (NMLldpNeighbor *neighbor,
-                                char *name);
+ const char *name);

Get the type of an attribute.

Parameters

@@ -2841,6 +2849,46 @@ nm_lldp_neighbor_get_attr_type (

Since: 1.2

+
+
+

nm_lldp_neighbor_get_attr_value ()

+
GVariant *
+nm_lldp_neighbor_get_attr_value (NMLldpNeighbor *neighbor,
+                                 const char *name);
+

Gets the value (as a GVariant) of attribute with name name + on neighbor +

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

neighbor

the NMLldpNeighbor

 

name

the attribute name

 
+
+
+

Returns

+

the value or NULL if the attribute with name +was +not found.

+

[transfer none]

+
+

Since: 1.18

+

Types and Values

diff --git a/docs/libnm/html/NMSettingBridge.html b/docs/libnm/html/NMSettingBridge.html index 8f374b6a..a92e1abe 100644 --- a/docs/libnm/html/NMSettingBridge.html +++ b/docs/libnm/html/NMSettingBridge.html @@ -120,6 +120,182 @@ nm_setting_bridge_get_multicast_snooping () + + +gboolean + + +nm_setting_bridge_get_vlan_filtering () + + + + +guint16 + + +nm_setting_bridge_get_vlan_default_pvid () + + + + +void + + +nm_setting_bridge_add_vlan () + + + + +guint + + +nm_setting_bridge_get_num_vlans () + + + + +NMBridgeVlan * + + +nm_setting_bridge_get_vlan () + + + + +void + + +nm_setting_bridge_remove_vlan () + + + + +gboolean + + +nm_setting_bridge_remove_vlan_by_vid () + + + + +void + + +nm_setting_bridge_clear_vlans () + + + + +NMBridgeVlan * + + +nm_bridge_vlan_new () + + + + +NMBridgeVlan * + + +nm_bridge_vlan_ref () + + + + +void + + +nm_bridge_vlan_unref () + + + + +NMBridgeVlan * + + +nm_bridge_vlan_new_clone () + + + + +int + + +nm_bridge_vlan_cmp () + + + + +void + + +nm_bridge_vlan_seal () + + + + +gboolean + + +nm_bridge_vlan_is_sealed () + + + + +void + + +nm_bridge_vlan_set_untagged () + + + + +void + + +nm_bridge_vlan_set_pvid () + + + + +gboolean + + +nm_bridge_vlan_get_vid_range () + + + + +gboolean + + +nm_bridge_vlan_is_untagged () + + + + +gboolean + + +nm_bridge_vlan_is_pvid () + + + + +char * + + +nm_bridge_vlan_to_str () + + + + +NMBridgeVlan * + + +nm_bridge_vlan_from_str () + +
@@ -178,10 +354,26 @@ stp Read / Write / Construct + +guint +vlan-default-pvid +Read / Write / Construct + + +gboolean +vlan-filtering +Read / Write / Construct + + + +GPtrArray * +vlans +Read / Write + -
+

Types and Values

@@ -230,6 +422,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -238,7 +450,9 @@

Object Hierarchy

-
    GObject
+
    GBoxed
+    ╰── NMBridgeVlan
+    GObject
     ╰── NMSetting
         ╰── NMSettingBridge
 
@@ -490,60 +704,754 @@ nm_setting_bridge_get_multicast_snooping

Since: 1.2

- -
-

Types and Values

-
-

NM_SETTING_BRIDGE_SETTING_NAME

-
#define NM_SETTING_BRIDGE_SETTING_NAME "bridge"
-
-

-

NM_SETTING_BRIDGE_MAC_ADDRESS

-
#define NM_SETTING_BRIDGE_MAC_ADDRESS    "mac-address"
-
+

nm_setting_bridge_get_vlan_filtering ()

+
gboolean
+nm_setting_bridge_get_vlan_filtering (NMSettingBridge *setting);
+
+

Parameters

+
NM_SETTING_BRIDGE_MULTICAST_SNOOPING
#defineNM_SETTING_BRIDGE_VLAN_FILTERING
#defineNM_SETTING_BRIDGE_VLAN_DEFAULT_PVID
#defineNM_SETTING_BRIDGE_VLANS
#defineNM_BRIDGE_VLAN_VID_MIN
#defineNM_BRIDGE_VLAN_VID_MAX
  NMSettingBridge
+++++ + + + + + +

setting

the NMSettingBridge

 
-
-
-

NM_SETTING_BRIDGE_STP

-
#define NM_SETTING_BRIDGE_STP            "stp"
-
+
+

Returns

+

the “vlan-filtering” property of the setting

-
-
-

NM_SETTING_BRIDGE_PRIORITY

-
#define NM_SETTING_BRIDGE_PRIORITY       "priority"
-
+

Since: 1.18


-

NM_SETTING_BRIDGE_FORWARD_DELAY

-
#define NM_SETTING_BRIDGE_FORWARD_DELAY  "forward-delay"
-
+

nm_setting_bridge_get_vlan_default_pvid ()

+
guint16
+nm_setting_bridge_get_vlan_default_pvid
+                               (NMSettingBridge *setting);
+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingBridge

 
-
-
-

NM_SETTING_BRIDGE_HELLO_TIME

-
#define NM_SETTING_BRIDGE_HELLO_TIME     "hello-time"
-
+
+

Returns

+

the “vlan-default-pvid” property of the setting

-
-
-

NM_SETTING_BRIDGE_MAX_AGE

-
#define NM_SETTING_BRIDGE_MAX_AGE        "max-age"
-
+

Since: 1.18


-

NM_SETTING_BRIDGE_AGEING_TIME

-
#define NM_SETTING_BRIDGE_AGEING_TIME    "ageing-time"
-
+

nm_setting_bridge_add_vlan ()

+
void
+nm_setting_bridge_add_vlan (NMSettingBridge *setting,
+                            NMBridgeVlan *vlan);
+

Appends a new vlan and associated information to the setting. The +given vlan gets sealed and a reference to it is added.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingBridge

 

vlan

the vlan to add

 
+
+

Since: 1.18


-

NM_SETTING_BRIDGE_GROUP_FORWARD_MASK

-
#define NM_SETTING_BRIDGE_GROUP_FORWARD_MASK "group-forward-mask"
+

nm_setting_bridge_get_num_vlans ()

+
guint
+nm_setting_bridge_get_num_vlans (NMSettingBridge *setting);
+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingBridge

 
+
+
+

Returns

+

the number of VLANs

+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_get_vlan ()

+
NMBridgeVlan *
+nm_setting_bridge_get_vlan (NMSettingBridge *setting,
+                            guint idx);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingBridge

 

idx

index number of the VLAN to return

 
+
+
+

Returns

+

the VLAN at index idx +.

+

[transfer none]

+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_remove_vlan ()

+
void
+nm_setting_bridge_remove_vlan (NMSettingBridge *setting,
+                               guint idx);
+

Removes the vlan at index idx +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingBridge

 

idx

index number of the VLAN.

 
+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_remove_vlan_by_vid ()

+
gboolean
+nm_setting_bridge_remove_vlan_by_vid (NMSettingBridge *setting,
+                                      guint16 vid_start,
+                                      guint16 vid_end);
+

Remove the VLAN with range vid_start + to vid_end +. +If vid_end + is zero, it is assumed to be equal to vid_start + +and so the single-id VLAN with id vid_start + is removed.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

setting

the NMSettingBridge

 

vid_start

the vlan start index

 

vid_end

the vlan end index

 
+
+
+

Returns

+

TRUE if the vlan was found and removed; FALSE otherwise

+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_clear_vlans ()

+
void
+nm_setting_bridge_clear_vlans (NMSettingBridge *setting);
+

Removes all configured VLANs.

+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingBridge

 
+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_new ()

+
NMBridgeVlan *
+nm_bridge_vlan_new (guint16 vid_start,
+                    guint16 vid_end);
+

Creates a new NMBridgeVlan object for the given VLAN id range. +Setting vid_end + to 0 is equivalent to setting it to vid_start + +and creates a single-id VLAN.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

vid_start

the start VLAN id, must be between 1 and 4094.

 

vid_end

the end VLAN id, must be 0 or between vid_start +and 4094.

 
+
+
+

Returns

+

the new NMBridgeVlan object.

+

[transfer full]

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_ref ()

+
NMBridgeVlan *
+nm_bridge_vlan_ref (NMBridgeVlan *vlan);
+

Increases the reference count of the object.

+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan

 
+
+
+

Returns

+

the input argument vlan +object.

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_unref ()

+
void
+nm_bridge_vlan_unref (NMBridgeVlan *vlan);
+

Decreases the reference count of the object. If the reference count +reaches zero the object will be destroyed.

+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan

 
+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_new_clone ()

+
NMBridgeVlan *
+nm_bridge_vlan_new_clone (const NMBridgeVlan *vlan);
+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan instance to copy

 
+
+
+

Returns

+

a clone of vlan +. This instance +is always unsealed.

+

[transfer full]

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_cmp ()

+
int
+nm_bridge_vlan_cmp (const NMBridgeVlan *a,
+                    const NMBridgeVlan *b);
+

Compare two bridge VLAN objects.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

a

a NMBridgeVlan

 

b

another NMBridgeVlan

 
+
+
+

Returns

+

zero of the two instances are equivalent or +a non-zero integer otherwise. This defines a total ordering +over the VLANs. Whether a VLAN is sealed or not does not +affect the comparison.

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_seal ()

+
void
+nm_bridge_vlan_seal (NMBridgeVlan *vlan);
+

Seal the NMBridgeVlan instance. Afterwards, it is a bug +to call all functions that modify the instance (except ref/unref). +A sealed instance cannot be unsealed again, but you can create +an unsealed copy with nm_bridge_vlan_new_clone().

+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan instance

 
+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_is_sealed ()

+
gboolean
+nm_bridge_vlan_is_sealed (const NMBridgeVlan *vlan);
+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan instance

 
+
+
+

Returns

+

whether self +is sealed or not.

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_set_untagged ()

+
void
+nm_bridge_vlan_set_untagged (NMBridgeVlan *vlan,
+                             gboolean value);
+

Change the value of the untagged property of the VLAN.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

vlan

the NMBridgeVlan

 

value

the new value

 
+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_set_pvid ()

+
void
+nm_bridge_vlan_set_pvid (NMBridgeVlan *vlan,
+                         gboolean value);
+

Change the value of the PVID property of the VLAN. It +is invalid to set the value to TRUE for non-single-id +VLANs.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

vlan

the NMBridgeVlan

 

value

the new value

 
+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_get_vid_range ()

+
gboolean
+nm_bridge_vlan_get_vid_range (const NMBridgeVlan *vlan,
+                              guint16 *vid_start,
+                              guint16 *vid_end);
+

Gets the VLAN id range.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

vlan

the NMBridgeVlan

 

vid_start

location to store the VLAN id range start.

 

vid_end

location to store the VLAN id range end

 
+
+
+

Returns

+

TRUE is the VLAN specifies a range, FALSE if it is +a single-id VLAN.

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_is_untagged ()

+
gboolean
+nm_bridge_vlan_is_untagged (const NMBridgeVlan *vlan);
+

Returns whether the VLAN is untagged.

+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan

 
+
+
+

Returns

+

TRUE if the VLAN is untagged, FALSE otherwise

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_is_pvid ()

+
gboolean
+nm_bridge_vlan_is_pvid (const NMBridgeVlan *vlan);
+

Returns whether the VLAN is the PVID for the port.

+
+

Parameters

+
+++++ + + + + + +

vlan

the NMBridgeVlan

 
+
+
+

Returns

+

TRUE if the VLAN is the PVID

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_to_str ()

+
char *
+nm_bridge_vlan_to_str (const NMBridgeVlan *vlan,
+                       GError **error);
+

Convert a NMBridgeVlan to a string.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

vlan

the NMBridgeVlan

 

error

location of the error

 
+
+
+

Returns

+

formatted string or NULL

+
+

Since: 1.18

+
+
+
+

nm_bridge_vlan_from_str ()

+
NMBridgeVlan *
+nm_bridge_vlan_from_str (const char *str,
+                         GError **error);
+

Parses the string representation of the queueing +discipline to a NMBridgeVlan instance.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

str

the string representation of a bridge VLAN

 

error

location of the error

 
+
+
+

Returns

+

the NMBridgeVlan or NULL

+
+

Since: 1.18

+
+
+
+

Types and Values

+
+

NM_SETTING_BRIDGE_SETTING_NAME

+
#define NM_SETTING_BRIDGE_SETTING_NAME "bridge"
+
+
+
+
+

NM_SETTING_BRIDGE_MAC_ADDRESS

+
#define NM_SETTING_BRIDGE_MAC_ADDRESS    "mac-address"
+
+
+
+
+

NM_SETTING_BRIDGE_STP

+
#define NM_SETTING_BRIDGE_STP            "stp"
+
+
+
+
+

NM_SETTING_BRIDGE_PRIORITY

+
#define NM_SETTING_BRIDGE_PRIORITY       "priority"
+
+
+
+
+

NM_SETTING_BRIDGE_FORWARD_DELAY

+
#define NM_SETTING_BRIDGE_FORWARD_DELAY  "forward-delay"
+
+
+
+
+

NM_SETTING_BRIDGE_HELLO_TIME

+
#define NM_SETTING_BRIDGE_HELLO_TIME     "hello-time"
+
+
+
+
+

NM_SETTING_BRIDGE_MAX_AGE

+
#define NM_SETTING_BRIDGE_MAX_AGE        "max-age"
+
+
+
+
+

NM_SETTING_BRIDGE_AGEING_TIME

+
#define NM_SETTING_BRIDGE_AGEING_TIME    "ageing-time"
+
+
+
+
+

NM_SETTING_BRIDGE_GROUP_FORWARD_MASK

+
#define NM_SETTING_BRIDGE_GROUP_FORWARD_MASK "group-forward-mask"
 

@@ -554,6 +1462,36 @@ nm_setting_bridge_get_multicast_snooping

+

NM_SETTING_BRIDGE_VLAN_FILTERING

+
#define NM_SETTING_BRIDGE_VLAN_FILTERING     "vlan-filtering"
+
+
+
+
+

NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID

+
#define NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID  "vlan-default-pvid"
+
+
+
+
+

NM_SETTING_BRIDGE_VLANS

+
#define NM_SETTING_BRIDGE_VLANS              "vlans"
+
+
+
+
+

NM_BRIDGE_VLAN_VID_MIN

+
#define NM_BRIDGE_VLAN_VID_MIN            1
+
+
+
+
+

NM_BRIDGE_VLAN_VID_MAX

+
#define NM_BRIDGE_VLAN_VID_MAX            4094
+
+
+
+

NMSettingBridge

typedef struct _NMSettingBridge NMSettingBridge;

Bridging Settings

@@ -660,6 +1598,42 @@ bridge.

Flags: Read / Write / Construct

Default value: TRUE

+
+
+

The “vlan-default-pvid” property

+
  “vlan-default-pvid”        guint
+

The default PVID for the ports of the bridge, that is the VLAN id +assigned to incoming untagged frames.

+

Flags: Read / Write / Construct

+

Allowed values: <= 4094

+

Default value: 1

+

Since: 1.18

+
+
+
+

The “vlan-filtering” property

+
  “vlan-filtering”           gboolean
+

Control whether VLAN filtering is enabled on the bridge.

+

Flags: Read / Write / Construct

+

Default value: FALSE

+

Since: 1.18

+
+
+
+

The “vlans” property

+
  “vlans”                    GPtrArray *
+

Array of bridge VLAN objects. In addition to the VLANs +specified here, the bridge will also have the default-pvid +VLAN configured by the bridge.vlan-default-pvid property.

+

In nmcli the VLAN list can be specified with the following +syntax:

+

$vid pvid [, $vid pvid]...

+

where $vid is either a single id between 1 and 4094 or a +range, represented as a couple of ids separated by a dash.

+

[type GPtrArray(NMBridgeVlan)]

+

Flags: Read / Write

+

Since: 1.18

+
@@ -100,6 +148,12 @@ priority Read / Write / Construct + + +GPtrArray * +vlans +Read / Write + @@ -128,6 +182,10 @@ NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE +#define +NM_SETTING_BRIDGE_PORT_VLANS + +   NMSettingBridgePort @@ -235,6 +293,204 @@ nm_setting_bridge_port_get_hairpin_mode

the “hairpin-mode” property of the setting

+
+
+

nm_setting_bridge_port_add_vlan ()

+
void
+nm_setting_bridge_port_add_vlan (NMSettingBridgePort *setting,
+                                 NMBridgeVlan *vlan);
+

Appends a new vlan and associated information to the setting. The +given vlan gets sealed and a reference to it is added.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingBridgePort

 

vlan

the vlan to add

 
+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_port_get_num_vlans ()

+
guint
+nm_setting_bridge_port_get_num_vlans (NMSettingBridgePort *setting);
+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingBridgePort

 
+
+
+

Returns

+

the number of VLANs

+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_port_get_vlan ()

+
NMBridgeVlan *
+nm_setting_bridge_port_get_vlan (NMSettingBridgePort *setting,
+                                 guint idx);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingBridgePort

 

idx

index number of the VLAN to return

 
+
+
+

Returns

+

the VLAN at index idx +.

+

[transfer none]

+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_port_remove_vlan ()

+
void
+nm_setting_bridge_port_remove_vlan (NMSettingBridgePort *setting,
+                                    guint idx);
+

Removes the vlan at index idx +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingBridgePort

 

idx

index number of the VLAN.

 
+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_port_remove_vlan_by_vid ()

+
gboolean
+nm_setting_bridge_port_remove_vlan_by_vid
+                               (NMSettingBridgePort *setting,
+                                guint16 vid_start,
+                                guint16 vid_end);
+

Remove the VLAN with range vid_start + to vid_end +. +If vid_end + is zero, it is assumed to be equal to vid_start + +and so the single-id VLAN with id vid_start + is removed.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

setting

the NMSettingBridgePort

 

vid_start

the vlan start index

 

vid_end

the vlan end index

 
+
+
+

Returns

+

TRUE if the vlan was found and removed; FALSE otherwise

+
+

Since: 1.18

+
+
+
+

nm_setting_bridge_port_clear_vlans ()

+
void
+nm_setting_bridge_port_clear_vlans (NMSettingBridgePort *setting);
+

Removes all configured VLANs.

+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingBridgePort

 
+
+

Since: 1.18

+

Types and Values

@@ -263,6 +519,12 @@ nm_setting_bridge_port_get_hairpin_mode

+

NM_SETTING_BRIDGE_PORT_VLANS

+
#define NM_SETTING_BRIDGE_PORT_VLANS        "vlans"
+
+
+
+

NMSettingBridgePort

typedef struct _NMSettingBridgePort NMSettingBridgePort;

Bridge Port Settings

@@ -297,6 +559,23 @@ port.

Allowed values: <= 63

Default value: 32

+
+
+

The “vlans” property

+
  “vlans”                    GPtrArray *
+

Array of bridge VLAN objects. In addition to the VLANs +specified here, the port will also have the default-pvid +VLAN configured on the bridge by the bridge.vlan-default-pvid +property.

+

In nmcli the VLAN list can be specified with the following +syntax:

+

$vid pvid [, $vid pvid]...

+

where $vid is either a single id between 1 and 4094 or a +range, represented as a couple of ids separated by a dash.

+

[type GPtrArray(NMBridgeVlan)]

+

Flags: Read / Write

+

Since: 1.18

+
- -
-

Properties

-
----- - - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - - - - - - + + - - - + + - - - + + - - - + + - - - + + - -
-GPtrArray *addressesRead / Write +guint + +nm_setting_ip_config_get_num_dns_searches () +
gintdad-timeoutRead / Write / Constructconst char * + +nm_setting_ip_config_get_dns_search () +
-gchar *dhcp-hostnameRead / Write +gboolean + +nm_setting_ip_config_add_dns_search () +
gbooleandhcp-send-hostnameRead / Write / Construct +void + +nm_setting_ip_config_remove_dns_search () +
gintdhcp-timeoutRead / Write +gboolean + +nm_setting_ip_config_remove_dns_search_by_value () +
GStrvdnsRead / Write +void + +nm_setting_ip_config_clear_dns_searches () +
GStrvdns-optionsRead / Write +guint + +nm_setting_ip_config_get_num_dns_options () +
gintdns-priorityRead / Write / Construct +gboolean + +nm_setting_ip_config_has_dns_options () +
GStrvdns-searchRead / Writeconst char * + +nm_setting_ip_config_get_dns_option () +
-gchar *gatewayRead / Write +int + +nm_setting_ip_config_next_valid_dns_option () +
gbooleanignore-auto-dnsRead / Write / Construct +gboolean + +nm_setting_ip_config_add_dns_option () +
gbooleanignore-auto-routesRead / Write / Construct +void + +nm_setting_ip_config_remove_dns_option () +
gbooleanmay-failRead / Write / Construct
-gchar *methodRead / Write +gboolean + +nm_setting_ip_config_remove_dns_option_by_value () +
gbooleannever-defaultRead / Write / Construct +void + +nm_setting_ip_config_clear_dns_options () +
gint64route-metricRead / Write / Construct +int + +nm_setting_ip_config_get_dns_priority () +
guintroute-tableRead / Write +guint + +nm_setting_ip_config_get_num_addresses () +
-GPtrArray *routesRead / Write +NMIPAddress * + +nm_setting_ip_config_get_address () +
-
-
-

Types and Values

-
---- - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + + +
#defineNM_IP_ADDRESS_ATTRIBUTE_LABEL +gboolean + +nm_setting_ip_config_add_address () +
#defineNM_IP_ROUTE_ATTRIBUTE_TABLE +void + +nm_setting_ip_config_remove_address () +
#defineNM_IP_ROUTE_ATTRIBUTE_SRC +gboolean + +nm_setting_ip_config_remove_address_by_value () +
#defineNM_IP_ROUTE_ATTRIBUTE_FROM +void + +nm_setting_ip_config_clear_addresses () +
#defineNM_IP_ROUTE_ATTRIBUTE_TOSconst char * + +nm_setting_ip_config_get_gateway () +
#defineNM_IP_ROUTE_ATTRIBUTE_ONLINK +guint + +nm_setting_ip_config_get_num_routes () +
#defineNM_IP_ROUTE_ATTRIBUTE_WINDOW +NMIPRoute * + +nm_setting_ip_config_get_route () +
#defineNM_IP_ROUTE_ATTRIBUTE_CWND +gboolean + +nm_setting_ip_config_add_route () +
#defineNM_IP_ROUTE_ATTRIBUTE_INITCWND +void + +nm_setting_ip_config_remove_route () +
#defineNM_IP_ROUTE_ATTRIBUTE_INITRWND +gboolean + +nm_setting_ip_config_remove_route_by_value () +
#defineNM_IP_ROUTE_ATTRIBUTE_MTU +void + +nm_setting_ip_config_clear_routes () +
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_WINDOW +gint64 + +nm_setting_ip_config_get_route_metric () +
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_CWND +guint32 + +nm_setting_ip_config_get_route_table () +
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_INITCWND +guint + +nm_setting_ip_config_get_num_routing_rules () +
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND +NMIPRoutingRule * + +nm_setting_ip_config_get_routing_rule () +
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_MTU +void + +nm_setting_ip_config_add_routing_rule () +
#defineNM_SETTING_IP_CONFIG_DAD_TIMEOUT_MAX +void + +nm_setting_ip_config_remove_routing_rule () +
#defineNM_SETTING_IP_CONFIG_METHOD +void + +nm_setting_ip_config_clear_routing_rules () +
#defineNM_SETTING_IP_CONFIG_DNS +gboolean + +nm_setting_ip_config_get_ignore_auto_routes () +
#defineNM_SETTING_IP_CONFIG_DNS_SEARCH +gboolean + +nm_setting_ip_config_get_ignore_auto_dns () +
#defineNM_SETTING_IP_CONFIG_DNS_OPTIONSconst char * + +nm_setting_ip_config_get_dhcp_hostname () +
#defineNM_SETTING_IP_CONFIG_DNS_PRIORITY +gboolean + +nm_setting_ip_config_get_dhcp_send_hostname () +
#defineNM_SETTING_IP_CONFIG_ADDRESSES +gboolean + +nm_setting_ip_config_get_never_default () +
#defineNM_SETTING_IP_CONFIG_GATEWAY +gboolean + +nm_setting_ip_config_get_may_fail () +
#defineNM_SETTING_IP_CONFIG_ROUTES +int + +nm_setting_ip_config_get_dad_timeout () +
#defineNM_SETTING_IP_CONFIG_ROUTE_METRIC
+int + +nm_setting_ip_config_get_dhcp_timeout () +
+
+
+

Properties

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GPtrArray *addressesRead / Write
gintdad-timeoutRead / Write / Construct
+gchar *dhcp-hostnameRead / Write
gbooleandhcp-send-hostnameRead / Write / Construct
gintdhcp-timeoutRead / Write
GStrvdnsRead / Write
GStrvdns-optionsRead / Write
gintdns-priorityRead / Write / Construct
GStrvdns-searchRead / Write
+gchar *gatewayRead / Write
gbooleanignore-auto-dnsRead / Write / Construct
gbooleanignore-auto-routesRead / Write / Construct
gbooleanmay-failRead / Write / Construct
+gchar *methodRead / Write
gbooleannever-defaultRead / Write / Construct
gint64route-metricRead / Write / Construct
guintroute-tableRead / Write
+GPtrArray *routesRead / Write
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -980,6 +1356,10 @@ + + + + @@ -1049,7 +1429,10 @@

Object Hierarchy

    GBoxed
     ├── NMIPAddress
-    ╰── NMIPRoute
+    ├── NMIPRoute
+    ╰── NMIPRoutingRule
+    GFlags
+    ╰── NMIPRoutingRuleAsStringFlags
     GObject
     ╰── NMSetting
         ╰── NMSettingIPConfig
@@ -1062,24 +1445,1306 @@
 
#include <nm-setting-ip-config.h>
 
-
-

Description

-

NMSettingIPConfig is the abstract base class of -NMSettingIP4Config and NMSettingIP6Config, providing properties -related to IP addressing, routing, and Domain Name Service.

+
+

Description

+

NMSettingIPConfig is the abstract base class of +NMSettingIP4Config and NMSettingIP6Config, providing properties +related to IP addressing, routing, and Domain Name Service.

+
+
+

Functions

+
+

nm_ip_address_new ()

+
NMIPAddress *
+nm_ip_address_new (int family,
+                   const char *addr,
+                   guint prefix,
+                   GError **error);
+

Creates a new NMIPAddress object.

+
+

Parameters

+
#defineNM_IP_ADDRESS_ATTRIBUTE_LABEL
#defineNM_IP_ROUTE_ATTRIBUTE_TABLE
#defineNM_IP_ROUTE_ATTRIBUTE_SRC
#defineNM_IP_ROUTE_ATTRIBUTE_FROM
#defineNM_IP_ROUTE_ATTRIBUTE_TOS
#defineNM_IP_ROUTE_ATTRIBUTE_ONLINK
#defineNM_IP_ROUTE_ATTRIBUTE_WINDOW
#defineNM_IP_ROUTE_ATTRIBUTE_CWND
#defineNM_IP_ROUTE_ATTRIBUTE_INITCWND
#defineNM_IP_ROUTE_ATTRIBUTE_INITRWND
#defineNM_IP_ROUTE_ATTRIBUTE_MTU
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_WINDOW
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_CWND
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_INITCWND
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND
#defineNM_IP_ROUTE_ATTRIBUTE_LOCK_MTU
enumNMIPRoutingRuleAsStringFlags
#defineNM_SETTING_IP_CONFIG_DAD_TIMEOUT_MAX
#defineNM_SETTING_IP_CONFIG_METHOD
#defineNM_SETTING_IP_CONFIG_DNS
#defineNM_SETTING_IP_CONFIG_DNS_SEARCH
#defineNM_SETTING_IP_CONFIG_DNS_OPTIONS
#defineNM_SETTING_IP_CONFIG_DNS_PRIORITY
#defineNM_SETTING_IP_CONFIG_ADDRESSES
#defineNM_SETTING_IP_CONFIG_GATEWAY
#defineNM_SETTING_IP_CONFIG_ROUTES
#defineNM_SETTING_IP_CONFIG_ROUTE_METRIC
#define NM_SETTING_IP_CONFIG_ROUTE_TABLE
#defineNM_SETTING_IP_CONFIG_ROUTING_RULES
#define NM_SETTING_DNS_OPTION_DEBUG
+++++ + + + + + + + + + + + + + + + + + + + + + + +

family

the IP address family (AF_INET or +AF_INET6)

 

addr

the IP address

 

prefix

the address prefix length

 

error

location to store error, or NULL

 
+
+
+

Returns

+

the new NMIPAddress object, or NULL on error.

+

[transfer full]

+
+ +
+
+

nm_ip_address_new_binary ()

+
NMIPAddress *
+nm_ip_address_new_binary (int family,
+                          gconstpointer addr,
+                          guint prefix,
+                          GError **error);
+

Creates a new NMIPAddress object. addr + must point to a buffer of the +correct size for family +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

family

the IP address family (AF_INET or +AF_INET6)

 

addr

the IP address

 

prefix

the address prefix length

 

error

location to store error, or NULL

 
+
+
+

Returns

+

the new NMIPAddress object, or NULL on error.

+

[transfer full]

+
+
+
+
+

nm_ip_address_ref ()

+
void
+nm_ip_address_ref (NMIPAddress *address);
+

Increases the reference count of the object.

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+
+
+

nm_ip_address_unref ()

+
void
+nm_ip_address_unref (NMIPAddress *address);
+

Decreases the reference count of the object. If the reference count +reaches zero, the object will be destroyed.

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+
+
+

nm_ip_address_equal ()

+
gboolean
+nm_ip_address_equal (NMIPAddress *address,
+                     NMIPAddress *other);
+

Determines if two NMIPAddress objects contain the same address and prefix +(attributes are not compared).

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

address

the NMIPAddress

 

other

the NMIPAddress to compare address +to.

 
+
+
+

Returns

+

TRUE if the objects contain the same values, FALSE if they do not.

+
+
+
+
+

nm_ip_address_dup ()

+
NMIPAddress *
+nm_ip_address_dup (NMIPAddress *address);
+

Creates a copy of address +

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+

Returns

+

a copy of address +.

+

[transfer full]

+
+
+
+
+

nm_ip_address_get_family ()

+
int
+nm_ip_address_get_family (NMIPAddress *address);
+

Gets the IP address family (eg, AF_INET) property of this address +object.

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+

Returns

+

the IP address family

+
+
+
+
+

nm_ip_address_get_address ()

+
const char *
+nm_ip_address_get_address (NMIPAddress *address);
+

Gets the IP address property of this address object.

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+

Returns

+

the IP address

+
+
+
+
+

nm_ip_address_set_address ()

+
void
+nm_ip_address_set_address (NMIPAddress *address,
+                           const char *addr);
+

Sets the IP address property of this address object.

+

addr + must be a valid address of address +'s family. If you aren't sure you +have a valid address, use nm_utils_ipaddr_valid() to check it.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

address

the NMIPAddress

 

addr

the IP address, as a string

 
+
+
+
+
+

nm_ip_address_get_address_binary ()

+
void
+nm_ip_address_get_address_binary (NMIPAddress *address,
+                                  gpointer addr);
+

Gets the IP address property of this address object.

+

addr + must point to a buffer that is the correct size for address +'s family.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

address

the NMIPAddress

 

addr

a buffer in which to store the address in binary format.

 
+
+
+
+
+

nm_ip_address_set_address_binary ()

+
void
+nm_ip_address_set_address_binary (NMIPAddress *address,
+                                  gconstpointer addr);
+

Sets the IP address property of this address object.

+

addr + must point to a buffer that is the correct size for address +'s family.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

address

the NMIPAddress

 

addr

the address, in binary format

 
+
+
+
+
+

nm_ip_address_get_prefix ()

+
guint
+nm_ip_address_get_prefix (NMIPAddress *address);
+

Gets the IP address prefix (ie "24" or "30" etc) property of this address +object.

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+

Returns

+

the IP address prefix

+
+
+
+
+

nm_ip_address_set_prefix ()

+
void
+nm_ip_address_set_prefix (NMIPAddress *address,
+                          guint prefix);
+

Sets the IP address prefix property of this address object.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

address

the NMIPAddress

 

prefix

the IP address prefix

 
+
+
+
+
+

nm_ip_address_get_attribute_names ()

+
char **
+nm_ip_address_get_attribute_names (NMIPAddress *address);
+

Gets an array of attribute names defined on address +.

+
+

Parameters

+
+++++ + + + + + +

address

the NMIPAddress

 
+
+
+

Returns

+

a NULL-terminated array of attribute names,.

+

[transfer full]

+
+
+
+
+

nm_ip_address_get_attribute ()

+
GVariant *
+nm_ip_address_get_attribute (NMIPAddress *address,
+                             const char *name);
+

Gets the value of the attribute with name name + on address +

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

address

the NMIPAddress

 

name

the name of an address attribute

 
+
+
+

Returns

+

the value of the attribute with name name +on +address +, or NULL if address +has no such attribute.

+

[transfer none]

+
+
+
+
+

nm_ip_address_set_attribute ()

+
void
+nm_ip_address_set_attribute (NMIPAddress *address,
+                             const char *name,
+                             GVariant *value);
+

Sets or clears the named attribute on address + to the given value.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

address

the NMIPAddress

 

name

the name of an address attribute

 

value

the value.

[transfer none][allow-none]
+
+
+
+
+

nm_ip_route_new ()

+
NMIPRoute *
+nm_ip_route_new (int family,
+                 const char *dest,
+                 guint prefix,
+                 const char *next_hop,
+                 gint64 metric,
+                 GError **error);
+

Creates a new NMIPRoute object.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

family

the IP address family (AF_INET or +AF_INET6)

 

dest

the IP address of the route's destination

 

prefix

the address prefix length

 

next_hop

the IP address of the next hop (or NULL).

[allow-none]

metric

the route metric (or -1 for "default")

 

error

location to store error, or NULL

 
+
+
+

Returns

+

the new NMIPRoute object, or NULL on error.

+

[transfer full]

+
+
+
+
+

nm_ip_route_new_binary ()

+
NMIPRoute *
+nm_ip_route_new_binary (int family,
+                        gconstpointer dest,
+                        guint prefix,
+                        gconstpointer next_hop,
+                        gint64 metric,
+                        GError **error);
+

Creates a new NMIPRoute object. dest + and next_hop + (if non-NULL) must +point to buffers of the correct size for family +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

family

the IP address family (AF_INET or +AF_INET6)

 

dest

the IP address of the route's destination

 

prefix

the address prefix length

 

next_hop

the IP address of the next hop (or NULL).

[allow-none]

metric

the route metric (or -1 for "default")

 

error

location to store error, or NULL

 
+
+
+

Returns

+

the new NMIPRoute object, or NULL on error.

+

[transfer full]

+
+
+
+
+

nm_ip_route_ref ()

+
void
+nm_ip_route_ref (NMIPRoute *route);
+

Increases the reference count of the object.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+
+
+

nm_ip_route_unref ()

+
void
+nm_ip_route_unref (NMIPRoute *route);
+

Decreases the reference count of the object. If the reference count +reaches zero, the object will be destroyed.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+
+
+

nm_ip_route_equal ()

+
gboolean
+nm_ip_route_equal (NMIPRoute *route,
+                   NMIPRoute *other);
+

Determines if two NMIPRoute objects contain the same destination, prefix, +next hop, and metric. (Attributes are not compared.)

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

other

the NMIPRoute to compare route +to.

 
+
+
+

Returns

+

TRUE if the objects contain the same values, FALSE if they do not.

+
+
+
+
+

nm_ip_route_equal_full ()

+
gboolean
+nm_ip_route_equal_full (NMIPRoute *route,
+                        NMIPRoute *other,
+                        guint cmp_flags);
+

Determines if two NMIPRoute objects contain the same destination, prefix, +next hop, and metric.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

route

the NMIPRoute

 

other

the NMIPRoute to compare route +to.

 

cmp_flags

tune how to compare attributes. Currently only +NM_IP_ROUTE_EQUAL_CMP_FLAGS_NONE (0) and NM_IP_ROUTE_EQUAL_CMP_FLAGS_WITH_ATTRS (1) +is supported.

 
+
+
+

Returns

+

TRUE if the objects contain the same values, FALSE if they do not.

+
+

Since: 1.10

+
+
+
+

nm_ip_route_dup ()

+
NMIPRoute *
+nm_ip_route_dup (NMIPRoute *route);
+

Creates a copy of route +

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

a copy of route +.

+

[transfer full]

+
+
+
+
+

nm_ip_route_get_family ()

+
int
+nm_ip_route_get_family (NMIPRoute *route);
+

Gets the IP address family (eg, AF_INET) property of this route +object.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

the IP address family

+
+
+
+
+

nm_ip_route_get_dest ()

+
const char *
+nm_ip_route_get_dest (NMIPRoute *route);
+

Gets the IP destination address property of this route object.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

the IP address of the route's destination

+
+
+
+
+

nm_ip_route_set_dest ()

+
void
+nm_ip_route_set_dest (NMIPRoute *route,
+                      const char *dest);
+

Sets the destination property of this route object.

+

dest + must be a valid address of route +'s family. If you aren't sure you +have a valid address, use nm_utils_ipaddr_valid() to check it.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

dest

the route's destination, as a string

 
+
+
+
+
+

nm_ip_route_get_dest_binary ()

+
void
+nm_ip_route_get_dest_binary (NMIPRoute *route,
+                             gpointer dest);
+

Gets the destination property of this route object.

+

dest + must point to a buffer that is the correct size for route +'s family.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

dest

a buffer in which to store the destination in binary format.

 
+
+
+
+
+

nm_ip_route_set_dest_binary ()

+
void
+nm_ip_route_set_dest_binary (NMIPRoute *route,
+                             gconstpointer dest);
+

Sets the destination property of this route object.

+

dest + must point to a buffer that is the correct size for route +'s family.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

dest

the route's destination, in binary format

 
+
+
+
+
+

nm_ip_route_get_prefix ()

+
guint
+nm_ip_route_get_prefix (NMIPRoute *route);
+

Gets the IP prefix (ie "24" or "30" etc) of this route.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

the IP prefix

+
+
+
+
+

nm_ip_route_set_prefix ()

+
void
+nm_ip_route_set_prefix (NMIPRoute *route,
+                        guint prefix);
+

Sets the prefix property of this route object.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

prefix

the route prefix

 
+
+
+
+
+

nm_ip_route_get_next_hop ()

+
const char *
+nm_ip_route_get_next_hop (NMIPRoute *route);
+

Gets the IP address of the next hop of this route; this will be NULL if the +route has no next hop.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

the IP address of the next hop, or NULL if this is a device route.

+
+
+
+
+

nm_ip_route_set_next_hop ()

+
void
+nm_ip_route_set_next_hop (NMIPRoute *route,
+                          const char *next_hop);
+

Sets the next-hop property of this route object.

+

next_hop + (if non-NULL) must be a valid address of route +'s family. If you +aren't sure you have a valid address, use nm_utils_ipaddr_valid() to check +it.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

next_hop

the route's next hop, as a string.

[allow-none]
+
+
+
+
+

nm_ip_route_get_next_hop_binary ()

+
gboolean
+nm_ip_route_get_next_hop_binary (NMIPRoute *route,
+                                 gpointer next_hop);
+

Gets the next hop property of this route object.

+

next_hop + must point to a buffer that is the correct size for route +'s family.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

next_hop

a buffer in which to store the next hop in binary format.

 
+
+
+

Returns

+

TRUE if route +has a next hop, FALSE if not (in which case +next_hop +will be zeroed out)

+
+
+
+
+

nm_ip_route_set_next_hop_binary ()

+
void
+nm_ip_route_set_next_hop_binary (NMIPRoute *route,
+                                 gconstpointer next_hop);
+

Sets the destination property of this route object.

+

next_hop + (if non-NULL) must point to a buffer that is the correct size for +route +'s family.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

next_hop

the route's next hop, in binary format

 
+
+
+
+
+

nm_ip_route_get_metric ()

+
gint64
+nm_ip_route_get_metric (NMIPRoute *route);
+

Gets the route metric property of this route object; lower values +indicate "better" or more preferred routes; -1 indicates "default" +(meaning NetworkManager will set it appropriately).

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

the route metric

+
+
+
+
+

nm_ip_route_set_metric ()

+
void
+nm_ip_route_set_metric (NMIPRoute *route,
+                        gint64 metric);
+

Sets the metric property of this route object.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

metric

the route metric (or -1 for "default")

 
+
+
+
+
+

nm_ip_route_get_attribute_names ()

+
char **
+nm_ip_route_get_attribute_names (NMIPRoute *route);
+

Gets an array of attribute names defined on route +.

+
+

Parameters

+
+++++ + + + + + +

route

the NMIPRoute

 
+
+
+

Returns

+

a NULL-terminated array of attribute names.

+

[transfer full]

+
+
+
+
+

nm_ip_route_get_attribute ()

+
GVariant *
+nm_ip_route_get_attribute (NMIPRoute *route,
+                           const char *name);
+

Gets the value of the attribute with name name + on route +

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

route

the NMIPRoute

 

name

the name of an route attribute

 
+
+
+

Returns

+

the value of the attribute with name name +on +route +, or NULL if route +has no such attribute.

+

[transfer none]

+
-
-

Functions

+
-

nm_ip_address_new ()

-
NMIPAddress *
-nm_ip_address_new (int family,
-                   const char *addr,
-                   guint prefix,
-                   GError **error);
-

Creates a new NMIPAddress object.

+

nm_ip_route_set_attribute ()

+
void
+nm_ip_route_set_attribute (NMIPRoute *route,
+                           const char *name,
+                           GVariant *value);
+

Sets the named attribute on route + to the given value.

-

Parameters

+

Parameters

@@ -1088,49 +2753,49 @@ nm_ip_address_new (int fam - - - - - - - + + - - + + - - - + + +

family

the IP address family (AF_INET or -AF_INET6)

 

addr

the IP address

route

the NMIPRoute

 

prefix

the address prefix length

name

the name of a route attribute

 

error

location to store error, or NULL

 

value

the value.

[transfer none][allow-none]
+
+
+
+

nm_ip_route_get_variant_attribute_spec ()

+
const NMVariantAttributeSpec *const *
+nm_ip_route_get_variant_attribute_spec
+                               (void);
-

Returns

-

the new NMIPAddress object, or NULL on error.

-

[transfer full]

+

Returns

+

the specifiers for route attributes

+

Since: 1.8


-

nm_ip_address_new_binary ()

-
NMIPAddress *
-nm_ip_address_new_binary (int family,
-                          gconstpointer addr,
-                          guint prefix,
-                          GError **error);
-

Creates a new NMIPAddress object. addr - must point to a buffer of the -correct size for family -.

+

nm_ip_route_attribute_validate ()

+
gboolean
+nm_ip_route_attribute_validate (const char *name,
+                                GVariant *value,
+                                int family,
+                                gboolean *known,
+                                GError **error);
+

Validates a route attribute, i.e. checks that the attribute is a known one +and the value is of the correct type and well-formed.

-

Parameters

+

Parameters

@@ -1139,43 +2804,46 @@ correct size for family - - + + - - + + - - + + + + + + + - - + +

family

the IP address family (AF_INET or -AF_INET6)

name

the attribute name

 

addr

the IP address

value

the attribute value

 

prefix

the address prefix length

family

IP address family of the route

 

known

on return, whether the attribute name is a known one.

[out]

error

location to store error, or NULL

 

return location for a GError, or NULL.

[allow-none]
-

Returns

-

the new NMIPAddress object, or NULL on error.

-

[transfer full]

+

Returns

+

TRUE if the attribute is valid, FALSE otherwise

+

Since: 1.8


-

nm_ip_address_ref ()

-
void
-nm_ip_address_ref (NMIPAddress *address);
-

Increases the reference count of the object.

+

nm_ip_routing_rule_new ()

+
NMIPRoutingRule *
+nm_ip_routing_rule_new (int addr_family);
-

Parameters

+

Parameters

@@ -1183,22 +2851,28 @@ nm_ip_address_ref ( - - + +

address

the NMIPAddress

addr_family

the address family of the routing rule. Must be either +AF_INET (2) or AF_INET6 (10).

 
+
+

Returns

+

a newly created rule instance with the +provided address family. The instance is unsealed.

+

[transfer full]

+
+

Since: 1.18


-

nm_ip_address_unref ()

-
void
-nm_ip_address_unref (NMIPAddress *address);
-

Decreases the reference count of the object. If the reference count -reaches zero, the object will be destroyed.

+

nm_ip_routing_rule_new_clone ()

+
NMIPRoutingRule *
+nm_ip_routing_rule_new_clone (const NMIPRoutingRule *rule);
-

Parameters

+

Parameters

@@ -1206,58 +2880,63 @@ reaches zero, the object will be destroyed.

- - + +

address

the NMIPAddress

rule

the NMIPRoutingRule to clone.

 
+
+

Returns

+

a newly created rule instance with +the same settings as rule +. Note that the instance will +always be unsealred.

+

[transfer full]

+
+

Since: 1.18


-

nm_ip_address_equal ()

-
gboolean
-nm_ip_address_equal (NMIPAddress *address,
-                     NMIPAddress *other);
-

Determines if two NMIPAddress objects contain the same address and prefix -(attributes are not compared).

+

nm_ip_routing_rule_ref ()

+
NMIPRoutingRule *
+nm_ip_routing_rule_ref (NMIPRoutingRule *self);
+

Increases the reference count of the instance. +This is not thread-safe.

-

Parameters

+

Parameters

- - - - - - - - - - - - + + + + +

address

the NMIPAddress

 

other

the NMIPAddress to compare address -to.

 

self

the NMIPRoutingRule instance.

[allow-none]
-

Returns

-

TRUE if the objects contain the same values, FALSE if they do not.

+

Returns

+

the self +argument with incremented +reference count.

+

[transfer full]

+

Since: 1.18


-

nm_ip_address_dup ()

-
NMIPAddress *
-nm_ip_address_dup (NMIPAddress *address);
-

Creates a copy of address -

+

nm_ip_routing_rule_unref ()

+
void
+nm_ip_routing_rule_unref (NMIPRoutingRule *self);
+

Decreases the reference count of the instance and destroys +the instance if the reference count reaches zero. +This is not thread-safe.

-

Parameters

+

Parameters

@@ -1265,28 +2944,21 @@ nm_ip_address_dup ( - - - + + +

address

the NMIPAddress

 

self

the NMIPRoutingRule instance.

[allow-none]
-
-

Returns

-

a copy of address -.

-

[transfer full]

-
+

Since: 1.18


-

nm_ip_address_get_family ()

-
int
-nm_ip_address_get_family (NMIPAddress *address);
-

Gets the IP address family (eg, AF_INET) property of this address -object.

+

nm_ip_routing_rule_is_sealed ()

+
gboolean
+nm_ip_routing_rule_is_sealed (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1294,25 +2966,31 @@ object.

- - + +

address

the NMIPAddress

self

the NMIPRoutingRule instance

 
-

Returns

-

the IP address family

+

Returns

+

whether self +is sealed. Once sealed, an instance +cannot be modified nor unsealed.

+

Since: 1.18


-

nm_ip_address_get_address ()

-
const char *
-nm_ip_address_get_address (NMIPAddress *address);
-

Gets the IP address property of this address object.

+

nm_ip_routing_rule_seal ()

+
void
+nm_ip_routing_rule_seal (NMIPRoutingRule *self);
+

Seals the routing rule. Afterwards, the instance can no longer be +modfied, and it is a bug to call any of the accessors that would +modify the rule. If self + was already sealed, this has no effect.

-

Parameters

+

Parameters

@@ -1320,98 +2998,74 @@ nm_ip_address_get_address ( - - + +

address

the NMIPAddress

self

the NMIPRoutingRule instance

 
-
-

Returns

-

the IP address

-
+

Since: 1.18


-

nm_ip_address_set_address ()

-
void
-nm_ip_address_set_address (NMIPAddress *address,
-                           const char *addr);
-

Sets the IP address property of this address object.

-

addr - must be a valid address of address -'s family. If you aren't sure you -have a valid address, use nm_utils_ipaddr_valid() to check it.

+

nm_ip_routing_rule_get_addr_family ()

+
int
+nm_ip_routing_rule_get_addr_family (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

- - - - - - - - - + + + - - +

address

the NMIPAddress

 

addr

the IP address, as a string

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the address family of the rule. Either AF_INET or AF_INET6.

+
+

Since: 1.18


-

nm_ip_address_get_address_binary ()

-
void
-nm_ip_address_get_address_binary (NMIPAddress *address,
-                                  gpointer addr);
-

Gets the IP address property of this address object.

-

addr - must point to a buffer that is the correct size for address -'s family.

-

[skip]

+

nm_ip_routing_rule_get_invert ()

+
gboolean
+nm_ip_routing_rule_get_invert (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

- - - - - - - - - + + + - - +

address

the NMIPAddress

 

addr

a buffer in which to store the address in binary format.

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the "invert" setting of the rule.

+
+

Since: 1.18


-

nm_ip_address_set_address_binary ()

+

nm_ip_routing_rule_set_invert ()

void
-nm_ip_address_set_address_binary (NMIPAddress *address,
-                                  gconstpointer addr);
-

Sets the IP address property of this address object.

-

addr - must point to a buffer that is the correct size for address -'s family.

-

[skip]

+nm_ip_routing_rule_set_invert (NMIPRoutingRule *self, + gboolean invert);
-

Parameters

+

Parameters

@@ -1420,28 +3074,27 @@ nm_ip_address_set_address_binary ( - - + + - - + +

address

the NMIPAddress

self

the NMIPRoutingRule instance

 

addr

the address, in binary format

invert

the new value to set

 
+

Since: 1.18


-

nm_ip_address_get_prefix ()

-
guint
-nm_ip_address_get_prefix (NMIPAddress *address);
-

Gets the IP address prefix (ie "24" or "30" etc) property of this address -object.

+

nm_ip_routing_rule_get_priority ()

+
gint64
+nm_ip_routing_rule_get_priority (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1449,26 +3102,30 @@ object.

- - + +

address

the NMIPAddress

self

the NMIPRoutingRule instance

 
-

Returns

-

the IP address prefix

+

Returns

+

the priority. A valid priority is in the range from +0 to G_MAXUINT32. If unset, -1 is returned.

+

Since: 1.18


-

nm_ip_address_set_prefix ()

+

nm_ip_routing_rule_set_priority ()

void
-nm_ip_address_set_prefix (NMIPAddress *address,
-                          guint prefix);
-

Sets the IP address prefix property of this address object.

+nm_ip_routing_rule_set_priority (NMIPRoutingRule *self, + gint64 priority); +

A valid priority ranges from 0 to G_MAXUINT32. "-1" is also allowed +to reset the priority. It is a bug calling this function with any +other value.

-

Parameters

+

Parameters

@@ -1477,28 +3134,27 @@ nm_ip_address_set_prefix (

address

-
+ + - - + +

the NMIPAddress

self

the NMIPRoutingRule instance

 

prefix

the IP address prefix

priority

the priority to set

 
+

Since: 1.18


-

nm_ip_address_get_attribute_names ()

-
char **
-nm_ip_address_get_attribute_names (NMIPAddress *address);
-

Gets an array of attribute names defined on address -.

+

nm_ip_routing_rule_get_tos ()

+
guint8
+nm_ip_routing_rule_get_tos (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1506,29 +3162,26 @@ nm_ip_address_get_attribute_names ( - - + +

address

the NMIPAddress

self

the NMIPRoutingRule instance

 
-

Returns

-

a NULL-terminated array of attribute names,.

-

[transfer full]

+

Returns

+

the tos of the rule.

+

Since: 1.18


-

nm_ip_address_get_attribute ()

-
GVariant *
-nm_ip_address_get_attribute (NMIPAddress *address,
-                             const char *name);
-

Gets the value of the attribute with name name - on address -

+

nm_ip_routing_rule_set_tos ()

+
void
+nm_ip_routing_rule_set_tos (NMIPRoutingRule *self,
+                            guint8 tos);
-

Parameters

+

Parameters

@@ -1537,39 +3190,54 @@ nm_ip_address_get_attribute (

address

-
+ + - - + +

the NMIPAddress

self

the NMIPRoutingRule instance

 

name

the name of an address attribute

tos

the tos to set

 
+

Since: 1.18

+
+
+
+

nm_ip_routing_rule_get_ipproto ()

+
guint8
+nm_ip_routing_rule_get_ipproto (const NMIPRoutingRule *self);
-

Returns

-

the value of the attribute with name name -on -address -, or NULL if address -has no such attribute.

-

[transfer none]

+

Parameters

+
+++++ + + + + + +

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the ipproto of the rule.

+
+

Since: 1.18


-

nm_ip_address_set_attribute ()

+

nm_ip_routing_rule_set_ipproto ()

void
-nm_ip_address_set_attribute (NMIPAddress *address,
-                             const char *name,
-                             GVariant *value);
-

Sets or clears the named attribute on address - to the given value.

+nm_ip_routing_rule_set_ipproto (NMIPRoutingRule *self, + guint8 ipproto);
-

Parameters

+

Parameters

@@ -1578,101 +3246,83 @@ nm_ip_address_set_attribute (

address

-
+ + - - + + - - - - -

the NMIPAddress

self

the NMIPRoutingRule instance

 

name

the name of an address attribute

ipproto

the ipproto to set

 

value

the value.

[transfer none][allow-none]
+

Since: 1.18


-

nm_ip_route_new ()

-
NMIPRoute *
-nm_ip_route_new (int family,
-                 const char *dest,
-                 guint prefix,
-                 const char *next_hop,
-                 gint64 metric,
-                 GError **error);
-

Creates a new NMIPRoute object.

+

nm_ip_routing_rule_get_source_port_start ()

+
guint16
+nm_ip_routing_rule_get_source_port_start
+                               (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - + +

family

the IP address family (AF_INET or -AF_INET6)

 

dest

the IP address of the route's destination

 

prefix

the address prefix length

 

next_hop

the IP address of the next hop (or NULL).

[allow-none]

metric

the route metric (or -1 for "default")

self

the NMIPRoutingRule instance

 

error

location to store error, or NULL

+
+
+

Returns

+

the source port start setting.

+
+

Since: 1.18

+
+
+
+

nm_ip_routing_rule_get_source_port_end ()

+
guint16
+nm_ip_routing_rule_get_source_port_end
+                               (const NMIPRoutingRule *self);
+
+

Parameters

+
+++++ + + + - - +

self

the NMIPRoutingRule instance

 
-

Returns

-

the new NMIPRoute object, or NULL on error.

-

[transfer full]

+

Returns

+

the source port end setting.

+

Since: 1.18


-

nm_ip_route_new_binary ()

-
NMIPRoute *
-nm_ip_route_new_binary (int family,
-                        gconstpointer dest,
-                        guint prefix,
-                        gconstpointer next_hop,
-                        gint64 metric,
-                        GError **error);
-

Creates a new NMIPRoute object. dest - and next_hop - (if non-NULL) must -point to buffers of the correct size for family -.

+

nm_ip_routing_rule_set_source_port ()

+
void
+nm_ip_routing_rule_set_source_port (NMIPRoutingRule *self,
+                                    guint16 start,
+                                    guint16 end);
-

Parameters

+

Parameters

@@ -1681,53 +3331,33 @@ point to buffers of the correct size for family - - - - - - - - - - - - + + - - - - - - - + + - - + +

family

the IP address family (AF_INET or -AF_INET6)

 

dest

the IP address of the route's destination

 

prefix

the address prefix length

self

the NMIPRoutingRule instance

 

next_hop

the IP address of the next hop (or NULL).

[allow-none]

metric

the route metric (or -1 for "default")

start

the start port to set.

 

error

location to store error, or NULL

end

the end port to set.

 
-
-

Returns

-

the new NMIPRoute object, or NULL on error.

-

[transfer full]

-
+

Since: 1.18


-

nm_ip_route_ref ()

-
void
-nm_ip_route_ref (NMIPRoute *route);
-

Increases the reference count of the object.

+

nm_ip_routing_rule_get_destination_port_start ()

+
guint16
+nm_ip_routing_rule_get_destination_port_start
+                               (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1735,22 +3365,26 @@ nm_ip_route_ref ( - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the destination port start setting.

+
+

Since: 1.18


-

nm_ip_route_unref ()

-
void
-nm_ip_route_unref (NMIPRoute *route);
-

Decreases the reference count of the object. If the reference count -reaches zero, the object will be destroyed.

+

nm_ip_routing_rule_get_destination_port_end ()

+
guint16
+nm_ip_routing_rule_get_destination_port_end
+                               (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1758,23 +3392,28 @@ reaches zero, the object will be destroyed.

- - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the destination port end setting.

+
+

Since: 1.18


-

nm_ip_route_equal ()

-
gboolean
-nm_ip_route_equal (NMIPRoute *route,
-                   NMIPRoute *other);
-

Determines if two NMIPRoute objects contain the same destination, prefix, -next hop, and metric. (Attributes are not compared.)

+

nm_ip_routing_rule_set_destination_port ()

+
void
+nm_ip_routing_rule_set_destination_port
+                               (NMIPRoutingRule *self,
+                                guint16 start,
+                                guint16 end);
-

Parameters

+

Parameters

@@ -1783,35 +3422,86 @@ next hop, and metric. (Attributes are not compared.)

- - + + - - + + + + + + + + + + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 

other

the NMIPRoute to compare route -to.

start

the start port to set.

 

end

the end port to set.

 
+
+

Since: 1.18

+
+
+
+

nm_ip_routing_rule_get_fwmark ()

+
guint32
+nm_ip_routing_rule_get_fwmark (const NMIPRoutingRule *self);
+
+

Parameters

+
+++++ + + + + + +

self

the NMIPRoutingRule instance

 
+
+
+

Returns

+

the fwmark setting.

+
+

Since: 1.18

+
+
+
+

nm_ip_routing_rule_get_fwmask ()

+
guint32
+nm_ip_routing_rule_get_fwmask (const NMIPRoutingRule *self);
+
+

Parameters

+
+++++ + + + - - +

self

the NMIPRoutingRule instance

 
-

Returns

-

TRUE if the objects contain the same values, FALSE if they do not.

+

Returns

+

the fwmask setting.

+

Since: 1.18


-

nm_ip_route_equal_full ()

-
gboolean
-nm_ip_route_equal_full (NMIPRoute *route,
-                        NMIPRoute *other,
-                        guint cmp_flags);
-

Determines if two NMIPRoute objects contain the same destination, prefix, -next hop, and metric.

+

nm_ip_routing_rule_set_fwmark ()

+
void
+nm_ip_routing_rule_set_fwmark (NMIPRoutingRule *self,
+                               guint32 fwmark,
+                               guint32 fwmask);
-

Parameters

+

Parameters

@@ -1820,41 +3510,32 @@ next hop, and metric.

- - + + - - + + - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 

other

the NMIPRoute to compare route -to.

fwmark

the fwmark

 

cmp_flags

tune how to compare attributes. Currently only -NM_IP_ROUTE_EQUAL_CMP_FLAGS_NONE (0) and NM_IP_ROUTE_EQUAL_CMP_FLAGS_WITH_ATTRS (1) -is supported.

fwmask

the fwmask

 
-
-

Returns

-

TRUE if the objects contain the same values, FALSE if they do not.

-
-

Since: 1.10

+

Since: 1.18


-

nm_ip_route_dup ()

-
NMIPRoute *
-nm_ip_route_dup (NMIPRoute *route);
-

Creates a copy of route -

+

nm_ip_routing_rule_get_from_len ()

+
guint8
+nm_ip_routing_rule_get_from_len (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1862,28 +3543,25 @@ nm_ip_route_dup ( - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 
-

Returns

-

a copy of route -.

-

[transfer full]

+

Returns

+

the set prefix length for the from/src parameter.

+

Since: 1.18


-

nm_ip_route_get_family ()

-
int
-nm_ip_route_get_family (NMIPRoute *route);
-

Gets the IP address family (eg, AF_INET) property of this route -object.

+

nm_ip_routing_rule_get_from ()

+
const char *
+nm_ip_routing_rule_get_from (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -1891,124 +3569,124 @@ object.

- - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 
-

Returns

-

the IP address family

+

Returns

+

the set from/src parameter or +NULL, if no value is set.

+

[transfer none]

+

Since: 1.18


-

nm_ip_route_get_dest ()

-
const char *
-nm_ip_route_get_dest (NMIPRoute *route);
-

Gets the IP destination address property of this route object.

+

nm_ip_routing_rule_set_from ()

+
void
+nm_ip_routing_rule_set_from (NMIPRoutingRule *self,
+                             const char *from,
+                             guint8 len);
+

Setting invalid values is accepted, but will later fail +during nm_ip_routing_rule_validate().

-

Parameters

+

Parameters

- - - + + + + - + + + + + + + + + + + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 

from

the from/src address to set. +The address family must match.

[allow-none]

len

the corresponding prefix length of the address.

 
-
-

Returns

-

the IP address of the route's destination

-
+

Since: 1.18


-

nm_ip_route_set_dest ()

-
void
-nm_ip_route_set_dest (NMIPRoute *route,
-                      const char *dest);
-

Sets the destination property of this route object.

-

dest - must be a valid address of route -'s family. If you aren't sure you -have a valid address, use nm_utils_ipaddr_valid() to check it.

+

nm_ip_routing_rule_get_to_len ()

+
guint8
+nm_ip_routing_rule_get_to_len (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

- - - - - - - - - + + + - - +

route

the NMIPRoute

 

dest

the route's destination, as a string

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the set prefix length for the to/dst parameter.

+
+

Since: 1.18


-

nm_ip_route_get_dest_binary ()

-
void
-nm_ip_route_get_dest_binary (NMIPRoute *route,
-                             gpointer dest);
-

Gets the destination property of this route object.

-

dest - must point to a buffer that is the correct size for route -'s family.

-

[skip]

+

nm_ip_routing_rule_get_to ()

+
const char *
+nm_ip_routing_rule_get_to (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

- - - - - - - - - + + + - - +

route

the NMIPRoute

 

dest

a buffer in which to store the destination in binary format.

self

the NMIPRoutingRule instance

 
+
+

Returns

+

the set to/dst parameter or +NULL, if no value is set.

+

[transfer none]

+
+

Since: 1.18


-

nm_ip_route_set_dest_binary ()

+

nm_ip_routing_rule_set_to ()

void
-nm_ip_route_set_dest_binary (NMIPRoute *route,
-                             gconstpointer dest);
-

Sets the destination property of this route object.

-

dest - must point to a buffer that is the correct size for route -'s family.

-

[skip]

+nm_ip_routing_rule_set_to (NMIPRoutingRule *self, + const char *to, + guint8 len); +

Setting invalid values is accepted, but will later fail +during nm_ip_routing_rule_validate().

-

Parameters

+

Parameters

@@ -2017,27 +3695,35 @@ nm_ip_route_set_dest_binary (

route

-
+ + - - + + + + + + +

the NMIPRoute

self

the NMIPRoutingRule instance

 

dest

the route's destination, in binary format

to

the to/dst address to set. +The address family must match.

[allow-none]

len

the corresponding prefix length of the address. +If to +is NULL, this valid is ignored.

 
+

Since: 1.18


-

nm_ip_route_get_prefix ()

-
guint
-nm_ip_route_get_prefix (NMIPRoute *route);
-

Gets the IP prefix (ie "24" or "30" etc) of this route.

+

nm_ip_routing_rule_get_iifname ()

+
const char *
+nm_ip_routing_rule_get_iifname (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -2045,26 +3731,31 @@ nm_ip_route_get_prefix ( - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance.

 
-

Returns

-

the IP prefix

+

Returns

+

the set iifname or NULL if unset.

+

[transfer none]

+

Since: 1.18


-

nm_ip_route_set_prefix ()

+

nm_ip_routing_rule_set_iifname ()

void
-nm_ip_route_set_prefix (NMIPRoute *route,
-                        guint prefix);
-

Sets the prefix property of this route object.

-
-

Parameters

+nm_ip_routing_rule_set_iifname (NMIPRoutingRule *self, + const char *iifname); +

The name supports C backslash escaping for non-UTF-8 characters. +Note that nm_ip_routing_rule_from_string() too uses backslash +escaping when tokenizing the words by whitespace. So, in string +representation you'd get double backslashs.

+
+

Parameters

@@ -2073,28 +3764,27 @@ nm_ip_route_set_prefix (

route

-
+ + - - - + + +

the NMIPRoute

self

the NMIPRoutingRule instance.

 

prefix

the route prefix

 

iifname

the iifname to set or NULL to unset.

[allow-none]
+

Since: 1.18


-

nm_ip_route_get_next_hop ()

+

nm_ip_routing_rule_get_oifname ()

const char *
-nm_ip_route_get_next_hop (NMIPRoute *route);
-

Gets the IP address of the next hop of this route; this will be NULL if the -route has no next hop.

+nm_ip_routing_rule_get_oifname (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -2102,31 +3792,31 @@ route has no next hop.

- - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance.

 
-

Returns

-

the IP address of the next hop, or NULL if this is a device route.

+

Returns

+

the set oifname or NULL if unset.

+

[transfer none]

+

Since: 1.18


-

nm_ip_route_set_next_hop ()

+

nm_ip_routing_rule_set_oifname ()

void
-nm_ip_route_set_next_hop (NMIPRoute *route,
-                          const char *next_hop);
-

Sets the next-hop property of this route object.

-

next_hop - (if non-NULL) must be a valid address of route -'s family. If you -aren't sure you have a valid address, use nm_utils_ipaddr_valid() to check -it.

-
-

Parameters

+nm_ip_routing_rule_set_oifname (NMIPRoutingRule *self, + const char *oifname); +

The name supports C backslash escaping for non-UTF-8 characters. +Note that nm_ip_routing_rule_from_string() too uses backslash +escaping when tokenizing the words by whitespace. So, in string +representation you'd get double backslashs.

+
+

Parameters

@@ -2135,74 +3825,56 @@ it.

- - + + - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance.

 

next_hop

the route's next hop, as a string.

oifname

the oifname to set or NULL to unset.

[allow-none]
+

Since: 1.18


-

nm_ip_route_get_next_hop_binary ()

-
gboolean
-nm_ip_route_get_next_hop_binary (NMIPRoute *route,
-                                 gpointer next_hop);
-

Gets the next hop property of this route object.

-

next_hop - must point to a buffer that is the correct size for route -'s family.

-

[skip]

+

nm_ip_routing_rule_get_action ()

+
guint8
+nm_ip_routing_rule_get_action (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

- - - - - - - - - + + + - - +

route

the NMIPRoute

 

next_hop

a buffer in which to store the next hop in binary format.

self

the NMIPRoutingRule instance

 
-

Returns

-

TRUE if route -has a next hop, FALSE if not (in which case -next_hop -will be zeroed out)

+

Returns

+

the set action.

+

Since: 1.18


-

nm_ip_route_set_next_hop_binary ()

+

nm_ip_routing_rule_set_action ()

void
-nm_ip_route_set_next_hop_binary (NMIPRoute *route,
-                                 gconstpointer next_hop);
-

Sets the destination property of this route object.

-

next_hop - (if non-NULL) must point to a buffer that is the correct size for -route -'s family.

-

[skip]

+nm_ip_routing_rule_set_action (NMIPRoutingRule *self, + guint8 action); +

Note that currently only certain actions are allowed. nm_ip_routing_rule_validate() +will reject unsupported actions as invalid.

-

Parameters

+

Parameters

@@ -2211,29 +3883,27 @@ nm_ip_route_set_next_hop_binary ( - - + + - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 

next_hop

the route's next hop, in binary format

action

the action to set

 
+

Since: 1.18


-

nm_ip_route_get_metric ()

-
gint64
-nm_ip_route_get_metric (NMIPRoute *route);
-

Gets the route metric property of this route object; lower values -indicate "better" or more preferred routes; -1 indicates "default" -(meaning NetworkManager will set it appropriately).

+

nm_ip_routing_rule_get_table ()

+
guint32
+nm_ip_routing_rule_get_table (const NMIPRoutingRule *self);
-

Parameters

+

Parameters

@@ -2241,26 +3911,26 @@ indicate "better" or more preferred routes; -1 indicates "default" - - + +

route

the NMIPRoute

self

the NMIPRoutingRule instance

 
-

Returns

-

the route metric

+

Returns

+

the set table.

+

Since: 1.18


-
-

nm_ip_route_set_metric ()

-
void
-nm_ip_route_set_metric (NMIPRoute *route,
-                        gint64 metric);
-

Sets the metric property of this route object.

+
+

nm_ip_routing_rule_set_table ()

+
void
+nm_ip_routing_rule_set_table (NMIPRoutingRule *self,
+                              guint32 table);
-

Parameters

+

Parameters

@@ -2269,58 +3939,63 @@ nm_ip_route_set_metric (

route

-
+ + - - + +

the NMIPRoute

self

the NMIPRoutingRule instance

 

metric

the route metric (or -1 for "default")

table

the table to set

 
+

Since: 1.18


-

nm_ip_route_get_attribute_names ()

-
char **
-nm_ip_route_get_attribute_names (NMIPRoute *route);
-

Gets an array of attribute names defined on route -.

+

nm_ip_routing_rule_cmp ()

+
int
+nm_ip_routing_rule_cmp (const NMIPRoutingRule *rule,
+                        const NMIPRoutingRule *other);
-

Parameters

+

Parameters

- - - - - + + + + + + + + + + + +

route

the NMIPRoute

 

rule

the NMIPRoutingRule instance to compare.

[allow-none]

other

the other NMIPRoutingRule instance to compare.

[allow-none]
-

Returns

-

a NULL-terminated array of attribute names.

-

[transfer full]

+

Returns

+

zero, a positive, or a negative integer to indicate +equality or how the arguments compare.

+

Since: 1.18


-

nm_ip_route_get_attribute ()

-
GVariant *
-nm_ip_route_get_attribute (NMIPRoute *route,
-                           const char *name);
-

Gets the value of the attribute with name name - on route -

+

nm_ip_routing_rule_validate ()

+
gboolean
+nm_ip_routing_rule_validate (const NMIPRoutingRule *self,
+                             GError **error);
-

Parameters

+

Parameters

@@ -2329,39 +4004,34 @@ nm_ip_route_get_attribute (

route

-
+ + - - - + + +

the NMIPRoute

self

the NMIPRoutingRule instance to validate

 

name

the name of an route attribute

 

error

the error result if validation fails.

[allow-none][out]
-

Returns

-

the value of the attribute with name name -on -route -, or NULL if route -has no such attribute.

-

[transfer none]

+

Returns

+

TRUE if the rule validates.

+

Since: 1.18


-

nm_ip_route_set_attribute ()

-
void
-nm_ip_route_set_attribute (NMIPRoute *route,
-                           const char *name,
-                           GVariant *value);
-

Sets the named attribute on route - to the given value.

+

nm_ip_routing_rule_from_string ()

+
NMIPRoutingRule *
+nm_ip_routing_rule_from_string (const char *str,
+                                NMIPRoutingRuleAsStringFlags to_string_flags,
+                                GHashTable *extra_args,
+                                GError **error);
-

Parameters

+

Parameters

@@ -2370,49 +4040,47 @@ nm_ip_route_set_attribute (

route

-
+ + - - + + - - - + + + + + + + +

the NMIPRoute

str

the string representation to convert to an NMIPRoutingRule

 

name

the name of a route attribute

to_string_flags

NMIPRoutingRuleAsStringFlags for controlling the +string conversion.

 

value

the value.

[transfer none][allow-none]

extra_args

extra arguments for controlling the string +conversion. Currently not extra arguments are supported.

[allow-none]

error

the error reason.

[allow-none][out]
-
-
-
-

nm_ip_route_get_variant_attribute_spec ()

-
const NMVariantAttributeSpec *const *
-nm_ip_route_get_variant_attribute_spec
-                               (void);
-

Returns

-

the specifiers for route attributes

+

Returns

+

the new NMIPRoutingRule or NULL on error.

+

[transfer full]

-

Since: 1.8

+

Since: 1.18


-

nm_ip_route_attribute_validate ()

-
gboolean
-nm_ip_route_attribute_validate (const char *name,
-                                GVariant *value,
-                                int family,
-                                gboolean *known,
-                                GError **error);
-

Validates a route attribute, i.e. checks that the attribute is a known one -and the value is of the correct type and well-formed.

+

nm_ip_routing_rule_to_string ()

+
char *
+nm_ip_routing_rule_to_string (const NMIPRoutingRule *self,
+                              NMIPRoutingRuleAsStringFlags to_string_flags,
+                              GHashTable *extra_args,
+                              GError **error);
-

Parameters

+

Parameters

@@ -2421,38 +4089,36 @@ and the value is of the correct type and well-formed.

- - - - - - - + + - - + + - - - + + + - - + +

name

the attribute name

 

value

the attribute value

self

the NMIPRoutingRule instance to convert to string.

 

family

IP address family of the route

to_string_flags

NMIPRoutingRuleAsStringFlags for controlling the +string conversion.

 

known

on return, whether the attribute name is a known one.

[out]

extra_args

extra arguments for controlling the string +conversion. Currently not extra arguments are supported.

[allow-none]

error

return location for a GError, or NULL.

[allow-none]

the error reason.

[allow-none][out]
-

Returns

-

TRUE if the attribute is valid, FALSE otherwise

+

Returns

+

the string representation or NULL on error.

+

[transfer full]

-

Since: 1.8

+

Since: 1.18


@@ -3605,6 +5271,161 @@ property.


+

nm_setting_ip_config_get_num_routing_rules ()

+
guint
+nm_setting_ip_config_get_num_routing_rules
+                               (NMSettingIPConfig *setting);
+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingIPConfig

 
+
+
+

Returns

+

the number of configured routing rules

+
+

Since: 1.18

+
+
+
+

nm_setting_ip_config_get_routing_rule ()

+
NMIPRoutingRule *
+nm_setting_ip_config_get_routing_rule (NMSettingIPConfig *setting,
+                                       guint idx);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingIPConfig

 

idx

index number of the routing_rule to return

 
+
+
+

Returns

+

the routing rule at index idx +.

+

[transfer none]

+
+

Since: 1.18

+
+
+
+

nm_setting_ip_config_add_routing_rule ()

+
void
+nm_setting_ip_config_add_routing_rule (NMSettingIPConfig *setting,
+                                       NMIPRoutingRule *routing_rule);
+

Appends a new routing-rule and associated information to the setting. The +given routing rules gets sealed and the reference count is incremented. +The function does not check whether an identical rule already exists +and always appends the rule to the end of the list.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingIPConfig

 

routing_rule

the NMIPRoutingRule to add. The address family +of the added rule must be compatible with the setting.

 
+
+

Since: 1.18

+
+
+
+

nm_setting_ip_config_remove_routing_rule ()

+
void
+nm_setting_ip_config_remove_routing_rule
+                               (NMSettingIPConfig *setting,
+                                guint idx);
+

Removes the routing_rule at index idx +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

setting

the NMSettingIPConfig

 

idx

index number of the routing_rule

 
+
+

Since: 1.18

+
+
+
+

nm_setting_ip_config_clear_routing_rules ()

+
void
+nm_setting_ip_config_clear_routing_rules
+                               (NMSettingIPConfig *setting);
+

Removes all configured routing rules.

+
+

Parameters

+
+++++ + + + + + +

setting

the NMSettingIPConfig

 
+
+

Since: 1.18

+
+
+

nm_setting_ip_config_get_ignore_auto_routes ()

gboolean
 nm_setting_ip_config_get_ignore_auto_routes
@@ -3931,6 +5752,58 @@ the particular kind of device.


+

enum NMIPRoutingRuleAsStringFlags

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

NM_IP_ROUTING_RULE_AS_STRING_FLAGS_NONE

+

no flags selected.

+
 

NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET

+

whether to allow parsing + IPv4 addresses.

+
 

NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET6

+

whether to allow parsing + IPv6 addresses. If both NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET + and + NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET6 + are unset, it's the same + as setting them both.

+
 

NM_IP_ROUTING_RULE_AS_STRING_FLAGS_VALIDATE

+

if set, ensure that the + rule verfies or fail.

+
 
+
+

Since: 1.18

+
+
+

NM_SETTING_IP_CONFIG_DAD_TIMEOUT_MAX

#define NM_SETTING_IP_CONFIG_DAD_TIMEOUT_MAX     30000
 
@@ -4045,6 +5918,12 @@ the particular kind of device.


+

NM_SETTING_IP_CONFIG_ROUTING_RULES

+
#define NM_SETTING_IP_CONFIG_ROUTING_RULES      "routing-rules"
+
+
+
+

NM_SETTING_DNS_OPTION_DEBUG

#define NM_SETTING_DNS_OPTION_DEBUG                     "debug"
 
diff --git a/docs/libnm/html/NMSettingSriov.html b/docs/libnm/html/NMSettingSriov.html index c77a2123..4aa3448b 100644 --- a/docs/libnm/html/NMSettingSriov.html +++ b/docs/libnm/html/NMSettingSriov.html @@ -800,6 +800,28 @@ nm_sriov_vf_get_vlan_protocol (const

nm_sriov_vf_new ()

NMSriovVF *
 nm_sriov_vf_new (guint index);
+

Creates a new NMSriovVF object.

+
+

Parameters

+
+++++ + + + + + +

index

the VF index

 
+
+
+

Returns

+

the new NMSriovVF object.

+

[transfer full]

+
+

Since: 1.14


diff --git a/docs/libnm/html/NMSettingTCConfig.html b/docs/libnm/html/NMSettingTCConfig.html index 52cad487..3411c448 100644 --- a/docs/libnm/html/NMSettingTCConfig.html +++ b/docs/libnm/html/NMSettingTCConfig.html @@ -112,6 +112,29 @@ +const char ** + + +nm_tc_qdisc_get_attribute_names () + + + + +GVariant * + + +nm_tc_qdisc_get_attribute () + + + + +void + + +nm_tc_qdisc_set_attribute () + + + NMTCAction * @@ -679,6 +702,116 @@ nm_tc_qdisc_get_parent ( +

nm_tc_qdisc_get_attribute_names ()

+
const char **
+nm_tc_qdisc_get_attribute_names (NMTCQdisc *qdisc);
+

Gets an array of attribute names defined on qdisc +.

+
+

Parameters

+
+++++ + + + + + +

qdisc

the NMTCQdisc

 
+
+
+

Returns

+

a NULL-terminated array of attribute names +or NULL if no attributes are set.

+

[transfer container]

+
+

Since: 1.18

+
+
+
+

nm_tc_qdisc_get_attribute ()

+
GVariant *
+nm_tc_qdisc_get_attribute (NMTCQdisc *qdisc,
+                           const char *name);
+

Gets the value of the attribute with name name + on qdisc +

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

qdisc

the NMTCQdisc

 

name

the name of an qdisc attribute

 
+
+
+

Returns

+

the value of the attribute with name name +on +qdisc +, or NULL if qdisc +has no such attribute.

+

[transfer none]

+
+

Since: 1.18

+
+
+
+

nm_tc_qdisc_set_attribute ()

+
void
+nm_tc_qdisc_set_attribute (NMTCQdisc *qdisc,
+                           const char *name,
+                           GVariant *value);
+

Sets or clears the named attribute on qdisc + to the given value.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

qdisc

the NMTCQdisc

 

name

the name of an qdisc attribute

 

value

the value.

[transfer none][allow-none]
+
+

Since: 1.18

+
+
+

nm_tc_action_new ()

NMTCAction *
 nm_tc_action_new (const char *kind,
diff --git a/docs/libnm/html/api-index-full.html b/docs/libnm/html/api-index-full.html
index f8b8487c..61c995b7 100644
--- a/docs/libnm/html/api-index-full.html
+++ b/docs/libnm/html/api-index-full.html
@@ -1285,6 +1285,10 @@ NMDeviceWpan:hw-address, object property in NMDeviceOvs
 
 
+NMIPRoutingRuleAsStringFlags, enum in NMSettingIPConfig +
+
+
NMIPTunnelFlags, enum in NMSettingIPTunnel
@@ -1689,6 +1693,18 @@ NMSetting6Lowpan:parent, object property in NMSettingOvs
+NMSettingBridge:vlan-default-pvid, object property in NMSettingBridge +
+
+
+NMSettingBridge:vlan-filtering, object property in NMSettingBridge +
+
+
+NMSettingBridge:vlans, object property in NMSettingBridge +
+
+
NMSettingBridgePort, struct in NMSettingBridgePort
@@ -1705,6 +1721,10 @@ NMSetting6Lowpan:parent, object property in NMSettingOvs
+NMSettingBridgePort:vlans, object property in NMSettingBridgePort +
+
+
NMSettingCdma, struct in NMSettingCdma
@@ -3581,6 +3601,10 @@ NMWifiP2PPeer:wfd-ies, object property in NMDeviceOvs
+NM_AVAILABLE_IN_1_18, macro in nm-version +
+
+
NM_AVAILABLE_IN_1_2, macro in nm-version
@@ -3597,6 +3621,70 @@ NMWifiP2PPeer:wfd-ies, object property in NMDeviceOvs
+nm_bridge_vlan_cmp, function in NMSettingBridge +
+
+
+nm_bridge_vlan_from_str, function in NMSettingBridge +
+
+
+nm_bridge_vlan_get_vid_range, function in NMSettingBridge +
+
+
+nm_bridge_vlan_is_pvid, function in NMSettingBridge +
+
+
+nm_bridge_vlan_is_sealed, function in NMSettingBridge +
+
+
+nm_bridge_vlan_is_untagged, function in NMSettingBridge +
+
+
+nm_bridge_vlan_new, function in NMSettingBridge +
+
+
+nm_bridge_vlan_new_clone, function in NMSettingBridge +
+
+
+nm_bridge_vlan_ref, function in NMSettingBridge +
+
+
+nm_bridge_vlan_seal, function in NMSettingBridge +
+
+
+nm_bridge_vlan_set_pvid, function in NMSettingBridge +
+
+
+nm_bridge_vlan_set_untagged, function in NMSettingBridge +
+
+
+nm_bridge_vlan_to_str, function in NMSettingBridge +
+
+
+nm_bridge_vlan_unref, function in NMSettingBridge +
+
+
+NM_BRIDGE_VLAN_VID_MAX, macro in NMSettingBridge +
+
+
+NM_BRIDGE_VLAN_VID_MIN, macro in NMSettingBridge +
+
+
NM_CHECKPOINT_CREATED, macro in NMCheckpoint
@@ -4721,6 +4809,14 @@ NMWifiP2PPeer:wfd-ies, object property in NMDeviceOvs
+NM_DEPRECATED_IN_1_18, macro in nm-version +
+
+
+NM_DEPRECATED_IN_1_18_FOR, macro in nm-version +
+
+
NM_DEPRECATED_IN_1_2, macro in nm-version
@@ -6597,6 +6693,174 @@ NMWifiP2PPeer:wfd-ies, object property in NMDeviceOvs
+nm_ip_routing_rule_cmp, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_from_string, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_action, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_addr_family, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_destination_port_end, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_destination_port_start, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_from, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_from_len, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_fwmark, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_fwmask, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_iifname, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_invert, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_ipproto, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_oifname, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_priority, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_source_port_end, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_source_port_start, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_table, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_to, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_tos, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_get_to_len, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_is_sealed, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_new, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_new_clone, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_ref, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_seal, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_action, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_destination_port, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_from, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_fwmark, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_iifname, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_invert, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_ipproto, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_oifname, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_priority, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_source_port, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_table, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_to, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_set_tos, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_to_string, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_unref, function in NMSettingIPConfig +
+
+
+nm_ip_routing_rule_validate, function in NMSettingIPConfig +
+
+
nm_jansson_load, function in nm-json
@@ -6617,6 +6881,10 @@ nm_jansson_load, function in nm-json
+NM_LLDP_ATTR_IEEE_802_1_PPVIDS, macro in nm-dbus-interface +
+
+
NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS, macro in nm-dbus-interface
@@ -6629,10 +6897,30 @@ nm_jansson_load, function in nm-json
+NM_LLDP_ATTR_IEEE_802_1_VLANS, macro in nm-dbus-interface +
+
+
NM_LLDP_ATTR_IEEE_802_1_VLAN_NAME, macro in nm-dbus-interface
+NM_LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF, macro in nm-dbus-interface +
+
+
+NM_LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE, macro in nm-dbus-interface +
+
+
+NM_LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI, macro in nm-dbus-interface +
+
+
+NM_LLDP_ATTR_MANAGEMENT_ADDRESSES, macro in nm-dbus-interface +
+
+
NM_LLDP_ATTR_PORT_DESCRIPTION, macro in nm-dbus-interface
@@ -6685,6 +6973,10 @@ nm_jansson_load, function in nm-json
+nm_lldp_neighbor_get_attr_value, function in NMDevice +
+
+
nm_lldp_neighbor_new, function in NMDevice
@@ -7713,10 +8005,18 @@ nm_jansson_load, function in nm-json
+nm_setting_bridge_add_vlan, function in NMSettingBridge +
+
+
NM_SETTING_BRIDGE_AGEING_TIME, macro in NMSettingBridge
+nm_setting_bridge_clear_vlans, function in NMSettingBridge +
+
+
NM_SETTING_BRIDGE_FORWARD_DELAY, macro in NMSettingBridge
@@ -7749,6 +8049,10 @@ nm_jansson_load, function in nm-json
+nm_setting_bridge_get_num_vlans, function in NMSettingBridge +
+
+
nm_setting_bridge_get_priority, function in NMSettingBridge
@@ -7757,6 +8061,18 @@ nm_jansson_load, function in nm-json
+nm_setting_bridge_get_vlan, function in NMSettingBridge +
+
+
+nm_setting_bridge_get_vlan_default_pvid, function in NMSettingBridge +
+
+
+nm_setting_bridge_get_vlan_filtering, function in NMSettingBridge +
+
+
NM_SETTING_BRIDGE_GROUP_FORWARD_MASK, macro in NMSettingBridge
@@ -7781,10 +8097,22 @@ nm_jansson_load, function in nm-json
+nm_setting_bridge_port_add_vlan, function in NMSettingBridgePort +
+
+
+nm_setting_bridge_port_clear_vlans, function in NMSettingBridgePort +
+
+
nm_setting_bridge_port_get_hairpin_mode, function in NMSettingBridgePort
+nm_setting_bridge_port_get_num_vlans, function in NMSettingBridgePort +
+
+
nm_setting_bridge_port_get_path_cost, function in NMSettingBridgePort
@@ -7793,6 +8121,10 @@ nm_jansson_load, function in nm-json
+nm_setting_bridge_port_get_vlan, function in NMSettingBridgePort +
+
+
NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE, macro in NMSettingBridgePort
@@ -7809,14 +8141,34 @@ nm_jansson_load, function in nm-json
+nm_setting_bridge_port_remove_vlan, function in NMSettingBridgePort +
+
+
+nm_setting_bridge_port_remove_vlan_by_vid, function in NMSettingBridgePort +
+
+
NM_SETTING_BRIDGE_PORT_SETTING_NAME, macro in NMSettingBridgePort
+NM_SETTING_BRIDGE_PORT_VLANS, macro in NMSettingBridgePort +
+
+
NM_SETTING_BRIDGE_PRIORITY, macro in NMSettingBridge
+nm_setting_bridge_remove_vlan, function in NMSettingBridge +
+
+
+nm_setting_bridge_remove_vlan_by_vid, function in NMSettingBridge +
+
+
NM_SETTING_BRIDGE_SETTING_NAME, macro in NMSettingBridge
@@ -7825,6 +8177,18 @@ nm_jansson_load, function in nm-json
+NM_SETTING_BRIDGE_VLANS, macro in NMSettingBridge +
+
+
+NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID, macro in NMSettingBridge +
+
+
+NM_SETTING_BRIDGE_VLAN_FILTERING, macro in NMSettingBridge +
+
+
nm_setting_cdma_get_mtu, function in NMSettingCdma
@@ -8697,6 +9061,10 @@ nm_jansson_load, function in nm-json
+nm_setting_ip_config_add_routing_rule, function in NMSettingIPConfig +
+
+
nm_setting_ip_config_clear_addresses, function in NMSettingIPConfig
@@ -8717,6 +9085,10 @@ nm_jansson_load, function in nm-json
+nm_setting_ip_config_clear_routing_rules, function in NMSettingIPConfig +
+
+
NM_SETTING_IP_CONFIG_DAD_TIMEOUT, macro in NMSettingIPConfig
@@ -8837,6 +9209,10 @@ nm_jansson_load, function in nm-json
+nm_setting_ip_config_get_num_routing_rules, function in NMSettingIPConfig +
+
+
nm_setting_ip_config_get_route, function in NMSettingIPConfig
@@ -8849,6 +9225,10 @@ nm_jansson_load, function in nm-json
+nm_setting_ip_config_get_routing_rule, function in NMSettingIPConfig +
+
+
nm_setting_ip_config_has_dns_options, function in NMSettingIPConfig
@@ -8917,6 +9297,10 @@ nm_jansson_load, function in nm-json
+nm_setting_ip_config_remove_routing_rule, function in NMSettingIPConfig +
+
+
NM_SETTING_IP_CONFIG_ROUTES, macro in NMSettingIPConfig
@@ -8929,6 +9313,10 @@ nm_jansson_load, function in nm-json
+NM_SETTING_IP_CONFIG_ROUTING_RULES, macro in NMSettingIPConfig +
+
+
NM_SETTING_IP_TUNNEL_ENCAPSULATION_LIMIT, macro in NMSettingIPTunnel
@@ -11469,6 +11857,14 @@ nm_jansson_load, function in nm-json
+nm_tc_qdisc_get_attribute, function in NMSettingTCConfig +
+
+
+nm_tc_qdisc_get_attribute_names, function in NMSettingTCConfig +
+
+
nm_tc_qdisc_get_handle, function in NMSettingTCConfig
@@ -11489,6 +11885,10 @@ nm_jansson_load, function in nm-json
+nm_tc_qdisc_set_attribute, function in NMSettingTCConfig +
+
+
nm_tc_qdisc_set_handle, function in NMSettingTCConfig
diff --git a/docs/libnm/html/index.html b/docs/libnm/html/index.html index 0523598b..1112cd36 100644 --- a/docs/libnm/html/index.html +++ b/docs/libnm/html/index.html @@ -15,7 +15,7 @@

- for libnm 1.16.0 + for libnm 1.18.0 The latest version of this documentation can be found on-line at https://developer.gnome.org/libnm/stable/. diff --git a/docs/libnm/html/libnm-nm-dbus-interface.html b/docs/libnm/html/libnm-nm-dbus-interface.html index 73ae64b8..17617b95 100644 --- a/docs/libnm/html/libnm-nm-dbus-interface.html +++ b/docs/libnm/html/libnm-nm-dbus-interface.html @@ -394,15 +394,31 @@ #define +NM_LLDP_ATTR_MANAGEMENT_ADDRESSES + + +#define NM_LLDP_ATTR_IEEE_802_1_PVID #define -NM_LLDP_ATTR_IEEE_802_1_PPVID +NM_LLDP_ATTR_IEEE_802_1_VLANS #define -NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS +NM_LLDP_ATTR_IEEE_802_1_PPVIDS + + +#define +NM_LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF + + +#define +NM_LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI + + +#define +NM_LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE #define @@ -414,6 +430,14 @@ #define +NM_LLDP_ATTR_IEEE_802_1_PPVID + + +#define +NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS + + +#define NM_LLDP_DEST_NEAREST_BRIDGE @@ -2873,20 +2897,44 @@ VPN plugin authentication dialogs.


+

NM_LLDP_ATTR_MANAGEMENT_ADDRESSES

+
#define NM_LLDP_ATTR_MANAGEMENT_ADDRESSES    "management-addresses"
+
+
+
+

NM_LLDP_ATTR_IEEE_802_1_PVID

#define NM_LLDP_ATTR_IEEE_802_1_PVID         "ieee-802-1-pvid"
 

-

NM_LLDP_ATTR_IEEE_802_1_PPVID

-
#define NM_LLDP_ATTR_IEEE_802_1_PPVID        "ieee-802-1-ppvid"
+

NM_LLDP_ATTR_IEEE_802_1_VLANS

+
#define NM_LLDP_ATTR_IEEE_802_1_VLANS        "ieee-802-1-vlans"
 

-

NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS

-
#define NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS  "ieee-802-1-ppvid-flags"
+

NM_LLDP_ATTR_IEEE_802_1_PPVIDS

+
#define NM_LLDP_ATTR_IEEE_802_1_PPVIDS       "ieee-802-1-ppvids"
+
+
+
+
+

NM_LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF

+
#define NM_LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF    "ieee-802-3-mac-phy-conf"
+
+
+
+
+

NM_LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI

+
#define NM_LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI   "ieee-802-3-power-via-mdi"
+
+
+
+
+

NM_LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE

+
#define NM_LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE  "ieee-802-3-max-frame-size"
 

@@ -2903,6 +2951,18 @@ VPN plugin authentication dialogs.


+

NM_LLDP_ATTR_IEEE_802_1_PPVID

+
#define NM_LLDP_ATTR_IEEE_802_1_PPVID        "ieee-802-1-ppvid"
+
+
+
+
+

NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS

+
#define NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS  "ieee-802-1-ppvid-flags"
+
+
+
+

NM_LLDP_DEST_NEAREST_BRIDGE

#define NM_LLDP_DEST_NEAREST_BRIDGE          "nearest-bridge"
 
diff --git a/docs/libnm/html/libnm-nm-utils.html b/docs/libnm/html/libnm-nm-utils.html index 3528aac9..b61e57ab 100644 --- a/docs/libnm/html/libnm-nm-utils.html +++ b/docs/libnm/html/libnm-nm-utils.html @@ -3071,7 +3071,7 @@ nm_utils_format_variant_attributes (NMTCQdisc * nm_utils_tc_qdisc_from_str (const char *str, GError **error);
-

Parces the tc style string qdisc representation of the queueing +

Parses the tc style string qdisc representation of the queueing discipline to a NMTCQdisc instance. Supports a subset of the tc language.

Parameters

@@ -3143,7 +3143,7 @@ discipline.

NMTCAction *
 nm_utils_tc_action_from_str (const char *str,
                              GError **error);
-

Parces the tc style string action representation of the queueing +

Parses the tc style string action representation of the queueing discipline to a NMTCAction instance. Supports a subset of the tc language.

Parameters

@@ -3215,7 +3215,7 @@ discipline.

NMTCTfilter *
 nm_utils_tc_tfilter_from_str (const char *str,
                               GError **error);
-

Parces the tc style string tfilter representation of the queueing +

Parses the tc style string tfilter representation of the queueing discipline to a NMTCTfilter instance. Supports a subset of the tc language.

Parameters

diff --git a/docs/libnm/html/libnm-nm-version.html b/docs/libnm/html/libnm-nm-version.html index 596c4ea0..104af6f2 100644 --- a/docs/libnm/html/libnm-nm-version.html +++ b/docs/libnm/html/libnm-nm-version.html @@ -99,6 +99,12 @@ NM_DEPRECATED_IN_1_16_FOR() + +#define + +NM_DEPRECATED_IN_1_18_FOR() + +
@@ -198,6 +204,14 @@ #define NM_AVAILABLE_IN_1_16 + +#define +NM_DEPRECATED_IN_1_18 + + +#define +NM_AVAILABLE_IN_1_18 +
@@ -264,6 +278,12 @@
# define NM_DEPRECATED_IN_1_16_FOR(f)    G_DEPRECATED_FOR(f)
 
+
+
+

NM_DEPRECATED_IN_1_18_FOR()

+
# define NM_DEPRECATED_IN_1_18_FOR(f)    G_DEPRECATED_FOR(f)
+
+

Types and Values

@@ -396,6 +416,18 @@
# define NM_AVAILABLE_IN_1_16            G_UNAVAILABLE(1,16)
 
+
+
+

NM_DEPRECATED_IN_1_18

+
# define NM_DEPRECATED_IN_1_18           G_DEPRECATED
+
+
+
+
+

NM_AVAILABLE_IN_1_18

+
# define NM_AVAILABLE_IN_1_18            G_UNAVAILABLE(1,18)
+
+