Top | ![]() |
![]() |
![]() |
![]() |
GQuark | nm_setting_wired_error_quark () |
NMSetting * | nm_setting_wired_new () |
const char * | nm_setting_wired_get_port () |
guint32 | nm_setting_wired_get_speed () |
const char * | nm_setting_wired_get_duplex () |
gboolean | nm_setting_wired_get_auto_negotiate () |
const GByteArray * | nm_setting_wired_get_mac_address () |
const GByteArray * | nm_setting_wired_get_cloned_mac_address () |
const GSList * | nm_setting_wired_get_mac_address_blacklist () |
guint32 | nm_setting_wired_get_mtu () |
const GPtrArray * | nm_setting_wired_get_s390_subchannels () |
const char * | nm_setting_wired_get_s390_nettype () |
guint32 | nm_setting_wired_get_num_s390_options () |
gboolean | nm_setting_wired_get_s390_option () |
const char * | nm_setting_wired_get_s390_option_by_key () |
gboolean | nm_setting_wired_add_s390_option () |
gboolean | nm_setting_wired_remove_s390_option () |
gboolean | auto-negotiate | Read / Write / Construct |
GArray_guchar_ * | cloned-mac-address | Read / Write |
gchar * | duplex | Read / Write |
GArray_guchar_ * | mac-address | Read / Write |
GSList_gchararray_ * | mac-address-blacklist | Read / Write |
guint | mtu | Read / Write / Construct |
gchar * | port | Read / Write |
gchar * | s390-nettype | Read / Write |
GHashTable_gchararray+gchararray_* | s390-options | Read / Write |
GPtrArray_gchararray_ * | s390-subchannels | Read / Write |
guint | speed | Read / Write / Construct |
#define | NM_SETTING_WIRED_SETTING_NAME |
enum | NMSettingWiredError |
#define | NM_SETTING_WIRED_ERROR |
#define | NM_SETTING_WIRED_PORT |
#define | NM_SETTING_WIRED_SPEED |
#define | NM_SETTING_WIRED_DUPLEX |
#define | NM_SETTING_WIRED_AUTO_NEGOTIATE |
#define | NM_SETTING_WIRED_MAC_ADDRESS |
#define | NM_SETTING_WIRED_CLONED_MAC_ADDRESS |
#define | NM_SETTING_WIRED_MAC_ADDRESS_BLACKLIST |
#define | NM_SETTING_WIRED_MTU |
#define | NM_SETTING_WIRED_S390_SUBCHANNELS |
#define | NM_SETTING_WIRED_S390_NETTYPE |
#define | NM_SETTING_WIRED_S390_OPTIONS |
The NMSettingWired object is a NMSetting subclass that describes properties necessary for connection to Ethernet networks.
GQuark
nm_setting_wired_error_quark (void
);
Registers an error quark for NMSettingWired if necessary.
NMSetting *
nm_setting_wired_new (void
);
Creates a new NMSettingWired object with default values.
gboolean
nm_setting_wired_get_auto_negotiate (NMSettingWired *setting
);
const GByteArray *
nm_setting_wired_get_mac_address (NMSettingWired *setting
);
const GByteArray *
nm_setting_wired_get_cloned_mac_address
(NMSettingWired *setting
);
const GSList *
nm_setting_wired_get_mac_address_blacklist
(NMSettingWired *setting
);
const GPtrArray *
nm_setting_wired_get_s390_subchannels (NMSettingWired *setting
);
Return the list of s390 subchannels that identify the device that this connection is applicable to. The connection should only be used in conjunction with that device.
const char *
nm_setting_wired_get_s390_nettype (NMSettingWired *setting
);
Returns the s390 device type this connection should apply to. Will be one of 'qeth', 'lcs', or 'ctc'.
guint32
nm_setting_wired_get_num_s390_options (NMSettingWired *setting
);
Returns the number of s390-specific options that should be set for this
device when it is activated. This can be used to retrieve each s390
option individually using nm_setting_wired_get_s390_option()
.
gboolean nm_setting_wired_get_s390_option (NMSettingWired *setting
,guint32 idx
,const char **out_key
,const char **out_value
);
Given an index, return the value of the s390 option at that index. indexes
are *not* guaranteed to be static across modifications to options done by
nm_setting_wired_add_s390_option()
and nm_setting_wired_remove_s390_option()
,
and should not be used to refer to options except for short periods of time
such as during option iteration.
setting |
the NMSettingWired |
|
idx |
index of the desired option, from 0 to
|
|
out_key |
on return, the key name of the s390 specific option; this value is owned by the setting and should not be modified. |
[out] |
out_value |
on return, the value of the key of the s390 specific option; this value is owned by the setting and should not be modified. |
[out] |
const char * nm_setting_wired_get_s390_option_by_key (NMSettingWired *setting
,const char *key
);
Returns the value associated with the s390-specific option specified by
key
, if it exists.
gboolean nm_setting_wired_add_s390_option (NMSettingWired *setting
,const char *key
,const char *item
);
gboolean nm_setting_wired_remove_s390_option (NMSettingWired *setting
,const char *key
);
#define NM_SETTING_WIRED_CLONED_MAC_ADDRESS "cloned-mac-address"
#define NM_SETTING_WIRED_MAC_ADDRESS_BLACKLIST "mac-address-blacklist"
“auto-negotiate”
property “auto-negotiate” gboolean
If TRUE, allow auto-negotiation of port speed and duplex mode. If FALSE, do not allow auto-negotiation,in which case the 'speed' and 'duplex' properties should be set.
Flags: Read / Write / Construct
Default value: TRUE
“cloned-mac-address”
property “cloned-mac-address” GArray_guchar_ *
If specified, request that the device use this MAC address instead of its permanent MAC address. This is known as MAC cloning or spoofing.
Flags: Read / Write
“duplex”
property “duplex” gchar *
If specified, request that the device only use the specified duplex mode. Either 'half' or 'full'.
Flags: Read / Write
Default value: NULL
“mac-address”
property “mac-address” GArray_guchar_ *
If specified, this connection will only apply to the ethernet device whose permanent MAC address matches. This property does not change the MAC address of the device (i.e. MAC spoofing).
Flags: Read / Write
“mac-address-blacklist”
property “mac-address-blacklist” GSList_gchararray_ *
If specified, this connection will never apply to the ethernet device whose permanent MAC address matches an address in the list. Each MAC address is in the standard hex-digits-and-colons notation (00:11:22:33:44:55).
Flags: Read / Write
“mtu”
property “mtu” guint
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple Ethernet frames.
Flags: Read / Write / Construct
Default value: 0
“port”
property “port” gchar *
Specific port type to use if multiple the device supports multiple attachment methods. One of 'tp' (Twisted Pair), 'aui' (Attachment Unit Interface), 'bnc' (Thin Ethernet) or 'mii' (Media Independent Interface. If the device supports only one port type, this setting is ignored.
Flags: Read / Write
Default value: NULL
“s390-nettype”
property “s390-nettype” gchar *
s390 network device type; one of 'qeth', 'lcs', or 'ctc', representing the different types of virtual network devices available on s390 systems.
Flags: Read / Write
Default value: NULL
“s390-options”
property “s390-options” GHashTable_gchararray+gchararray_*
Dictionary of key/value pairs of s390-specific device options. Both keys and values must be strings. Allowed keys include 'portno', 'layer2', 'portname', 'protocol', among others.
Flags: Read / Write
“s390-subchannels”
property “s390-subchannels” GPtrArray_gchararray_ *
Identifies specific subchannels that this network device uses for communcation with z/VM or s390 host. Like the 'mac-address' property for non-z/VM devices, this property can be used to ensure this connection only applies to the network device that uses these subchannels. The list should contain exactly 3 strings, and each string may only be composed of hexadecimal characters and the period (.) character.
Flags: Read / Write