Top |
NMSetting * | nm_setting_bridge_port_new () |
guint16 | nm_setting_bridge_port_get_priority () |
guint16 | nm_setting_bridge_port_get_path_cost () |
gboolean | nm_setting_bridge_port_get_hairpin_mode () |
void | nm_setting_bridge_port_add_vlan () |
guint | nm_setting_bridge_port_get_num_vlans () |
NMBridgeVlan * | nm_setting_bridge_port_get_vlan () |
void | nm_setting_bridge_port_remove_vlan () |
gboolean | nm_setting_bridge_port_remove_vlan_by_vid () |
void | nm_setting_bridge_port_clear_vlans () |
#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 |
#define | NM_SETTING_BRIDGE_PORT_VLANS |
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.
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
);
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.
Since: 1.18
guint
nm_setting_bridge_port_get_num_vlans (NMSettingBridgePort *setting
);
Since: 1.18
NMBridgeVlan * nm_setting_bridge_port_get_vlan (NMSettingBridgePort *setting
,guint idx
);
Since: 1.18
void nm_setting_bridge_port_remove_vlan (NMSettingBridgePort *setting
,guint idx
);
Removes the vlan at index idx
.
Since: 1.18
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.
Since: 1.18
void
nm_setting_bridge_port_clear_vlans (NMSettingBridgePort *setting
);
Removes all configured VLANs.
Since: 1.18