![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#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; NMSettingMacvlanClass; enum NMSettingMacvlanMode; NMSetting * nm_setting_macvlan_new (void
); const char * nm_setting_macvlan_get_parent (NMSettingMacvlan *setting
); NMSettingMacvlanMode nm_setting_macvlan_get_mode (NMSettingMacvlan *setting
); gboolean nm_setting_macvlan_get_promiscuous (NMSettingMacvlan *setting
); gboolean nm_setting_macvlan_get_tap (NMSettingMacvlan *setting
);
"mode" guint : Read / Write / Construct "parent" gchar* : Read / Write / Construct "promiscuous" gboolean : Read / Write / Construct "tap" gboolean : Read / Write / Construct
The NMSettingMacvlan object is a NMSetting subclass that describes properties necessary for connection to macvlan interfaces.
typedef enum { NM_SETTING_MACVLAN_MODE_UNKNOWN = 0, NM_SETTING_MACVLAN_MODE_VEPA = 1, NM_SETTING_MACVLAN_MODE_BRIDGE = 2, NM_SETTING_MACVLAN_MODE_PRIVATE = 3, NM_SETTING_MACVLAN_MODE_PASSTHRU = 4, NM_SETTING_MACVLAN_MODE_SOURCE = 5, _NM_SETTING_MACVLAN_MODE_NUM, /*< skip >*/ NM_SETTING_MACVLAN_MODE_LAST = _NM_SETTING_MACVLAN_MODE_NUM - 1, /*< skip >*/ } NMSettingMacvlanMode;
unknown/unset mode | |
Virtual Ethernet Port Aggregator mode | |
bridge mode | |
private mode | |
passthru mode | |
source mode | |
NMSetting * nm_setting_macvlan_new (void
);
Creates a new NMSettingMacvlan object with default values.
Returns : |
the new empty NMSettingMacvlan object. [transfer full] |
Since 1.2
const char * nm_setting_macvlan_get_parent (NMSettingMacvlan *setting
);
|
the NMSettingMacvlan |
Returns : |
the "parent" property of the setting |
Since 1.2
NMSettingMacvlanMode nm_setting_macvlan_get_mode (NMSettingMacvlan *setting
);
|
the NMSettingMacvlan |
Returns : |
the "mode" property of the setting |
Since 1.2
gboolean nm_setting_macvlan_get_promiscuous (NMSettingMacvlan *setting
);
|
the NMSettingMacvlan |
Returns : |
the "promiscuous" property of the setting |
Since 1.2
gboolean nm_setting_macvlan_get_tap (NMSettingMacvlan *setting
);
|
the NMSettingMacvlan |
Returns : |
the "tap" property of the setting |
Since 1.2
"mode"
property "mode" guint : Read / Write / Construct
The macvlan mode, which specifies the communication mechanism between multiple macvlans on the same lower device.
Default value: 0
Since 1.2
"parent"
property "parent" gchar* : Read / Write / Construct
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.
Default value: NULL
Since 1.2
"promiscuous"
property "promiscuous" gboolean : Read / Write / Construct
Whether the interface should be put in promiscuous mode.
Default value: TRUE
Since 1.2