![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define NM_SETTING_BRIDGE_PORT_SETTING_NAME #define NM_SETTING_BRIDGE_PORT_PRIORITY #define NM_SETTING_BRIDGE_PORT_PATH_COST #define NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE NMSettingBridgePort; NMSettingBridgePortClass; NMSetting * nm_setting_bridge_port_new (void
); guint16 nm_setting_bridge_port_get_priority (NMSettingBridgePort *setting
); guint16 nm_setting_bridge_port_get_path_cost (NMSettingBridgePort *setting
); gboolean nm_setting_bridge_port_get_hairpin_mode (NMSettingBridgePort *setting
);
"hairpin-mode" gboolean : Read / Write "path-cost" guint : Read / Write / Construct "priority" guint : Read / Write / Construct
The NMSettingBridgePort object is a NMSetting subclass that describes optional properties that apply to bridge ports.
NMSetting * nm_setting_bridge_port_new (void
);
Creates a new NMSettingBridgePort object with default values.
Returns : |
the new empty NMSettingBridgePort object. [transfer full] |
guint16 nm_setting_bridge_port_get_priority (NMSettingBridgePort *setting
);
|
the NMSettingBridgePort |
Returns : |
the "priority" property of the setting |
guint16 nm_setting_bridge_port_get_path_cost
(NMSettingBridgePort *setting
);
|
the NMSettingBridgePort |
Returns : |
the "path-cost" property of the setting |
gboolean nm_setting_bridge_port_get_hairpin_mode
(NMSettingBridgePort *setting
);
|
the NMSettingBridgePort |
Returns : |
the "hairpin-mode" property of the setting |
"hairpin-mode"
property "hairpin-mode" gboolean : Read / Write
Enables or disabled "hairpin mode" for the port, which allows frames to be sent back out through the port the frame was received on.
Default value: FALSE
"path-cost"
property "path-cost" guint : Read / Write / Construct
The Spanning Tree Protocol (STP) port cost for destinations via this port.
Allowed values: <= 65535
Default value: 100