![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#define NM_DEVICE_ETHERNET_HW_ADDRESS #define NM_DEVICE_ETHERNET_PERMANENT_HW_ADDRESS #define NM_DEVICE_ETHERNET_SPEED #define NM_DEVICE_ETHERNET_CARRIER #define NM_DEVICE_ETHERNET_S390_SUBCHANNELS NMDeviceEthernet; NMDeviceEthernetClass; const char * nm_device_ethernet_get_hw_address (NMDeviceEthernet *device
); const char * nm_device_ethernet_get_permanent_hw_address (NMDeviceEthernet *device
); guint32 nm_device_ethernet_get_speed (NMDeviceEthernet *device
); gboolean nm_device_ethernet_get_carrier (NMDeviceEthernet *device
); const char * const * nm_device_ethernet_get_s390_subchannels (NMDeviceEthernet *device
);
"carrier" gboolean : Read "hw-address" gchar* : Read "perm-hw-address" gchar* : Read "s390-subchannels" GStrv : Read "speed" guint : Read
#define NM_DEVICE_ETHERNET_PERMANENT_HW_ADDRESS "perm-hw-address"
const char * nm_device_ethernet_get_hw_address (NMDeviceEthernet *device
);
Gets the active hardware (MAC) address of the NMDeviceEthernet
|
a NMDeviceEthernet |
Returns : |
the active hardware address. This is the internal string used by the device, and must not be modified. |
const char * nm_device_ethernet_get_permanent_hw_address
(NMDeviceEthernet *device
);
Gets the permanent hardware (MAC) address of the NMDeviceEthernet
|
a NMDeviceEthernet |
Returns : |
the permanent hardware address. This is the internal string used by the device, and must not be modified. |
guint32 nm_device_ethernet_get_speed (NMDeviceEthernet *device
);
Gets the speed of the NMDeviceEthernet.
|
a NMDeviceEthernet |
Returns : |
the speed of the device |
gboolean nm_device_ethernet_get_carrier (NMDeviceEthernet *device
);
Whether the device has carrier.
|
a NMDeviceEthernet |
Returns : |
TRUE if the device has carrier |
const char * const * nm_device_ethernet_get_s390_subchannels
(NMDeviceEthernet *device
);
Return the list of s390 subchannels if the device supports them.
|
a NMDeviceEthernet |
Returns : |
array of strings, each specifying one subchannel the s390 device uses to communicate to the host. [transfer none][element-type utf8] |
Since 1.2
"carrier"
property "carrier" gboolean : Read
Whether the device has carrier.
Default value: FALSE
"hw-address"
property "hw-address" gchar* : Read
The active hardware (MAC) address of the device.
Default value: NULL
"perm-hw-address"
property "perm-hw-address" gchar* : Read
The permanent hardware (MAC) address of the device.
Default value: NULL
"s390-subchannels"
property "s390-subchannels" GStrv : Read
Identifies subchannels of this network device used for communication with z/VM or s390 host.
Since 1.2