![]() |
![]() |
![]() |
libnm-util Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <nm-setting-bridge.h> #define NM_SETTING_BRIDGE_SETTING_NAME enum NMSettingBridgeError; #define NM_SETTING_BRIDGE_ERROR GQuark nm_setting_bridge_error_quark (void
); #define NM_SETTING_BRIDGE_INTERFACE_NAME #define NM_SETTING_BRIDGE_STP #define NM_SETTING_BRIDGE_PRIORITY #define NM_SETTING_BRIDGE_FORWARD_DELAY #define NM_SETTING_BRIDGE_HELLO_TIME #define NM_SETTING_BRIDGE_MAX_AGE #define NM_SETTING_BRIDGE_AGEING_TIME NMSettingBridge; NMSettingBridgeClass; NMSetting * nm_setting_bridge_new (void
); const char * nm_setting_bridge_get_interface_name (NMSettingBridge *setting
); gboolean nm_setting_bridge_get_stp (NMSettingBridge *setting
); guint16 nm_setting_bridge_get_priority (NMSettingBridge *setting
); guint16 nm_setting_bridge_get_forward_delay (NMSettingBridge *setting
); guint16 nm_setting_bridge_get_hello_time (NMSettingBridge *setting
); guint16 nm_setting_bridge_get_max_age (NMSettingBridge *setting
); guint32 nm_setting_bridge_get_ageing_time (NMSettingBridge *setting
);
"ageing-time" guint : Read / Write / Construct "forward-delay" guint : Read / Write / Construct "hello-time" guint : Read / Write / Construct "interface-name" gchar* : Read / Write "max-age" guint : Read / Write / Construct "priority" guint : Read / Write / Construct "stp" gboolean : Read / Write / Construct
The NMSettingBridge object is a NMSetting subclass that describes properties necessary for bridging connections.
typedef enum { NM_SETTING_BRIDGE_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/ NM_SETTING_BRIDGE_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/ NM_SETTING_BRIDGE_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/ } NMSettingBridgeError;
unknown or unclassified error | |
the property was invalid | |
the property was missing and is required |
Since 0.9.8
GQuark nm_setting_bridge_error_quark (void
);
Registers an error quark for NMSettingBridge if necessary.
Returns : |
the error quark used for NMSettingBridge errors. |
Since 0.9.8
typedef struct { NMSettingClass parent; /* Padding for future expansion */ void (*_reserved1) (void); void (*_reserved2) (void); void (*_reserved3) (void); void (*_reserved4) (void); } NMSettingBridgeClass;
NMSetting * nm_setting_bridge_new (void
);
Creates a new NMSettingBridge object with default values.
Returns : |
the new empty NMSettingBridge object. [transfer full] |
Since 0.9.8
const char * nm_setting_bridge_get_interface_name
(NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "interface-name" property of the setting |
Since 0.9.8
gboolean nm_setting_bridge_get_stp (NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "stp" property of the setting |
Since 0.9.8
guint16 nm_setting_bridge_get_priority (NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "priority" property of the setting |
Since 0.9.8
guint16 nm_setting_bridge_get_forward_delay (NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "forward-delay" property of the setting |
Since 0.9.8
guint16 nm_setting_bridge_get_hello_time (NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "hello-time" property of the setting |
Since 0.9.8
guint16 nm_setting_bridge_get_max_age (NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "max-age" property of the setting |
Since 0.9.8
guint32 nm_setting_bridge_get_ageing_time (NMSettingBridge *setting
);
|
the NMSettingBridge |
Returns : |
the "ageing-time" property of the setting |
Since 0.9.8
"ageing-time"
property "ageing-time" guint : Read / Write / Construct
The ethernet MAC address aging time, in seconds.
Allowed values: <= 1000000
Default value: 300
Since 0.9.8
"forward-delay"
property "forward-delay" guint : Read / Write / Construct
The Spanning Tree Protocol (STP) forwarding delay, in seconds.
Allowed values: <= 30
Default value: 15
Since 0.9.8
"hello-time"
property "hello-time" guint : Read / Write / Construct
The Spanning Tree Protocol (STP) hello time, in seconds.
Allowed values: <= 10
Default value: 2
Since 0.9.8
"interface-name"
property "interface-name" gchar* : Read / Write
The name of the virtual in-kernel briding network interface
Default value: NULL
Since 0.9.8
"max-age"
property "max-age" guint : Read / Write / Construct
The Spanning Tree Protocol (STP) maximum message age, in seconds.
Allowed values: <= 40
Default value: 20
Since 0.9.8
"priority"
property "priority" guint : Read / Write / Construct
Sets the Spanning Tree Protocol (STP) priority for this bridge. Lower values are "better"; the lowest priority bridge will be elected the root bridge.
Allowed values: <= 65535
Default value: 128
Since 0.9.8