NMSettingBridge

NMSettingBridge — Describes connection properties for bridges

Properties

guint ageing-time Read / Write / Construct
guint forward-delay Read / Write / Construct
guint hello-time Read / Write / Construct
gchar * mac-address Read / Write
guint max-age Read / Write / Construct
guint priority Read / Write / Construct
gboolean stp Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NMSetting
        ╰── NMSettingBridge

Description

The NMSettingBridge object is a NMSetting subclass that describes properties necessary for bridging connections.

Functions

nm_setting_bridge_new ()

NMSetting *
nm_setting_bridge_new (void);

Creates a new NMSettingBridge object with default values.

Returns

the new empty NMSettingBridge object.

[transfer full]


nm_setting_bridge_get_mac_address ()

const char *
nm_setting_bridge_get_mac_address (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “mac-address” property of the setting


nm_setting_bridge_get_stp ()

gboolean
nm_setting_bridge_get_stp (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “stp” property of the setting


nm_setting_bridge_get_priority ()

guint16
nm_setting_bridge_get_priority (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “priority” property of the setting


nm_setting_bridge_get_forward_delay ()

guint16
nm_setting_bridge_get_forward_delay (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “forward-delay” property of the setting


nm_setting_bridge_get_hello_time ()

guint16
nm_setting_bridge_get_hello_time (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “hello-time” property of the setting


nm_setting_bridge_get_max_age ()

guint16
nm_setting_bridge_get_max_age (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “max-age” property of the setting


nm_setting_bridge_get_ageing_time ()

guint32
nm_setting_bridge_get_ageing_time (NMSettingBridge *setting);

Parameters

setting

the NMSettingBridge

 

Returns

the “ageing-time” property of the setting

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"

Property Details

The “ageing-time” property

  “ageing-time”              guint

Flags: Read / Write / Construct

Allowed values: <= 1000000

Default value: 300


The “forward-delay” property

  “forward-delay”            guint

Flags: Read / Write / Construct

Allowed values: <= 30

Default value: 15


The “hello-time” property

  “hello-time”               guint

Flags: Read / Write / Construct

Allowed values: <= 10

Default value: 2


The “mac-address” property

  “mac-address”              gchar *

Flags: Read / Write

Default value: NULL


The “max-age” property

  “max-age”                  guint

Flags: Read / Write / Construct

Allowed values: <= 40

Default value: 20


The “priority” property

  “priority”                 guint

Flags: Read / Write / Construct

Allowed values: <= 65535

Default value: 32768


The “stp” property

  “stp”                      gboolean

Flags: Read / Write / Construct

Default value: TRUE