| Top |
Types and Values
| #define | NM_SETTING_MACVLAN_SETTING_NAME |
| #define | NM_SETTING_MACVLAN_PARENT |
| #define | NM_SETTING_MACVLAN_MODE |
| #define | NM_SETTING_MACVLAN_PROMISCUOUS |
| #define | NM_SETTING_MACVLAN_TAP |
| NMSettingMacvlan | |
| enum | NMSettingMacvlanMode |
Description
The NMSettingMacvlan object is a NMSetting subclass that describes properties necessary for connection to macvlan interfaces.
Functions
nm_setting_macvlan_new ()
NMSetting *
nm_setting_macvlan_new (void);
Creates a new NMSettingMacvlan object with default values.
Since: 1.2
nm_setting_macvlan_get_parent ()
const char *
nm_setting_macvlan_get_parent (NMSettingMacvlan *setting);
Since: 1.2
nm_setting_macvlan_get_mode ()
NMSettingMacvlanMode
nm_setting_macvlan_get_mode (NMSettingMacvlan *setting);
Since: 1.2
nm_setting_macvlan_get_promiscuous ()
gboolean
nm_setting_macvlan_get_promiscuous (NMSettingMacvlan *setting);
Since: 1.2
nm_setting_macvlan_get_tap ()
gboolean
nm_setting_macvlan_get_tap (NMSettingMacvlan *setting);
Since: 1.2
Types and Values
Property Details
The “mode” property
“mode” guint
The macvlan mode, which specifies the communication mechanism between multiple macvlans on the same lower device.
Flags: Read / Write / Construct
Default value: 0
Since: 1.2
The “parent” property
“parent” gchar *
If given, specifies the parent interface name or parent connection UUID from which this MAC-VLAN interface should be created. If this property is not specified, the connection must contain an NMSettingWired setting with a “mac-address” property.
Flags: Read / Write / Construct
Default value: NULL
Since: 1.2
The “promiscuous” property
“promiscuous” gboolean
Whether the interface should be put in promiscuous mode.
Flags: Read / Write / Construct
Default value: TRUE
Since: 1.2
The “tap” property
“tap” gboolean
Whether the interface should be a MACVTAP.
Flags: Read / Write / Construct
Default value: FALSE
Since: 1.2
