NMSettingBridgePort

NMSettingBridgePort — Describes connection properties for bridge ports

Synopsis


#include <nm-setting-bridge-port.h>

#define             NM_SETTING_BRIDGE_PORT_SETTING_NAME
enum                NMSettingBridgePortError;
#define             NM_TYPE_SETTING_BRIDGE_PORT_ERROR
#define             NM_SETTING_BRIDGE_PORT_ERROR
GQuark              nm_setting_bridge_port_error_quark  (void);
#define             NM_SETTING_BRIDGE_PORT_PRIORITY
#define             NM_SETTING_BRIDGE_PORT_PATH_COST
#define             NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE
                    NMSettingBridgePort;
GType               nm_setting_bridge_port_get_type     (void);
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);

Object Hierarchy

  GObject
   +----NMSetting
         +----NMSettingBridgePort

Properties

  "hairpin-mode"             gboolean              : Read / Write
  "path-cost"                guint                 : Read / Write / Construct
  "priority"                 guint                 : Read / Write / Construct

Description

The NMSettingBridgePort object is a NMSetting subclass that describes optional properties that apply to bridge ports.

Details

NM_SETTING_BRIDGE_PORT_SETTING_NAME

#define NM_SETTING_BRIDGE_PORT_SETTING_NAME "bridge-port"


enum NMSettingBridgePortError

typedef enum {
	NM_SETTING_BRIDGE_PORT_ERROR_UNKNOWN = 0,      /*< nick=UnknownError >*/
	NM_SETTING_BRIDGE_PORT_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/
	NM_SETTING_BRIDGE_PORT_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/
} NMSettingBridgePortError;

NM_SETTING_BRIDGE_PORT_ERROR_UNKNOWN

unknown or unclassified error

NM_SETTING_BRIDGE_PORT_ERROR_INVALID_PROPERTY

the property was invalid

NM_SETTING_BRIDGE_PORT_ERROR_MISSING_PROPERTY

the property was missing and is required

NM_TYPE_SETTING_BRIDGE_PORT_ERROR

#define NM_TYPE_SETTING_BRIDGE_PORT_ERROR (nm_setting_bridge_port_error_get_type ()) 


NM_SETTING_BRIDGE_PORT_ERROR

#define NM_SETTING_BRIDGE_PORT_ERROR nm_setting_bridge_port_error_quark ()


nm_setting_bridge_port_error_quark ()

GQuark              nm_setting_bridge_port_error_quark  (void);

Registers an error quark for NMSettingBridgePort if necessary.

Returns :

the error quark used for NMSettingBridgePort errors.

NM_SETTING_BRIDGE_PORT_PRIORITY

#define NM_SETTING_BRIDGE_PORT_PRIORITY     "priority"


NM_SETTING_BRIDGE_PORT_PATH_COST

#define NM_SETTING_BRIDGE_PORT_PATH_COST    "path-cost"


NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE

#define NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE "hairpin-mode"


NMSettingBridgePort

typedef struct _NMSettingBridgePort NMSettingBridgePort;


nm_setting_bridge_port_get_type ()

GType               nm_setting_bridge_port_get_type     (void);

Returns :


nm_setting_bridge_port_new ()

NMSetting *         nm_setting_bridge_port_new          (void);

Creates a new NMSettingBridgePort object with default values.

Returns :

the new empty NMSettingBridgePort object. transfer full.

nm_setting_bridge_port_get_priority ()

guint16             nm_setting_bridge_port_get_priority (NMSettingBridgePort *setting);

setting :

the NMSettingBridgePort

Returns :

the "priority" property of the setting

nm_setting_bridge_port_get_path_cost ()

guint16             nm_setting_bridge_port_get_path_cost
                                                        (NMSettingBridgePort *setting);

setting :

the NMSettingBridgePort

Returns :

the "path-cost" property of the setting

nm_setting_bridge_port_get_hairpin_mode ()

gboolean            nm_setting_bridge_port_get_hairpin_mode
                                                        (NMSettingBridgePort *setting);

setting :

the NMSettingBridgePort

Returns :

the "hairpin-mode" property of the setting

Property Details

The "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


The "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


The "priority" property

  "priority"                 guint                 : Read / Write / Construct

The Spanning Tree Protocol (STP) priority of this bridge port.

Allowed values: <= 63

Default value: 32