![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
NMSettingInfinibandNMSettingInfiniband — Describes connection properties for IP-over-InfiniBand networks |
#define NM_SETTING_INFINIBAND_SETTING_NAME #define NM_SETTING_INFINIBAND_MAC_ADDRESS #define NM_SETTING_INFINIBAND_MTU #define NM_SETTING_INFINIBAND_TRANSPORT_MODE #define NM_SETTING_INFINIBAND_P_KEY #define NM_SETTING_INFINIBAND_PARENT struct NMSettingInfiniband; NMSettingInfinibandClass; NMSetting * nm_setting_infiniband_new (void
); const char * nm_setting_infiniband_get_mac_address (NMSettingInfiniband *setting
); guint32 nm_setting_infiniband_get_mtu (NMSettingInfiniband *setting
); const char * nm_setting_infiniband_get_transport_mode (NMSettingInfiniband *setting
); int nm_setting_infiniband_get_p_key (NMSettingInfiniband *setting
); const char * nm_setting_infiniband_get_parent (NMSettingInfiniband *setting
); const char * nm_setting_infiniband_get_virtual_interface_name (NMSettingInfiniband *setting
);
"mac-address" gchar* : Read / Write "mtu" guint : Read / Write / Construct "p-key" gint : Read / Write / Construct "parent" gchar* : Read / Write / Construct "transport-mode" gchar* : Read / Write / Construct
The NMSettingInfiniband object is a NMSetting subclass that describes properties necessary for connection to IP-over-InfiniBand networks.
NMSetting * nm_setting_infiniband_new (void
);
Creates a new NMSettingInfiniband object with default values.
Returns : |
the new empty NMSettingInfiniband object. [transfer full] |
const char * nm_setting_infiniband_get_mac_address
(NMSettingInfiniband *setting
);
|
the NMSettingInfiniband |
Returns : |
the "mac-address" property of the setting |
guint32 nm_setting_infiniband_get_mtu (NMSettingInfiniband *setting
);
|
the NMSettingInfiniband |
Returns : |
the "mtu" property of the setting |
const char * nm_setting_infiniband_get_transport_mode
(NMSettingInfiniband *setting
);
Returns the transport mode for this device. Either 'datagram' or 'connected'.
|
the NMSettingInfiniband |
Returns : |
the IPoIB transport mode |
int nm_setting_infiniband_get_p_key (NMSettingInfiniband *setting
);
Returns the P_Key to use for this device. A value of -1 means to use the default P_Key (aka "the P_Key at index 0"). Otherwise it is a 16-bit unsigned integer.
|
the NMSettingInfiniband |
Returns : |
the IPoIB P_Key |
const char * nm_setting_infiniband_get_parent (NMSettingInfiniband *setting
);
Returns the parent interface name for this device, if set.
|
the NMSettingInfiniband |
Returns : |
the parent interface name |
const char * nm_setting_infiniband_get_virtual_interface_name
(NMSettingInfiniband *setting
);
Returns the interface name created by combining "parent"
and "p-key". (If either property is unset, this will
return NULL
.)
|
the NMSettingInfiniband |
Returns : |
the interface name, or NULL
|
"mac-address"
property "mac-address" gchar* : Read / Write
If specified, this connection will only apply to the IPoIB device whose permanent MAC address matches. This property does not change the MAC address of the device (i.e. MAC spoofing).
Default value: NULL
"mtu"
property "mtu" guint : Read / Write / Construct
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple frames.
Default value: 0
"p-key"
property "p-key" gint : Read / Write / Construct
The InfiniBand P_Key to use for this device. A value of -1 means to use the default P_Key (aka "the P_Key at index 0"). Otherwise it is a 16-bit unsigned integer, whose high bit is set if it is a "full membership" P_Key.
Allowed values: [-1,65535]
Default value: -1
"parent"
property "parent" gchar* : Read / Write / Construct
The interface name of the parent device of this device. Normally NULL
,
but if the "p_key" property is set, then you must
specify the base device by setting either this property or
"mac-address".
Default value: NULL