Top |
#define | NM_SETTING_WIRED_SETTING_NAME |
enum | NMSettingWiredWakeOnLan |
#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_GENERATE_MAC_ADDRESS_MASK |
#define | NM_SETTING_WIRED_MAC_ADDRESS_BLACKLIST |
#define | NM_SETTING_WIRED_MAC_ADDRESS_DENYLIST |
#define | NM_SETTING_WIRED_MTU |
#define | NM_SETTING_WIRED_S390_SUBCHANNELS |
#define | NM_SETTING_WIRED_S390_NETTYPE |
#define | NM_SETTING_WIRED_S390_OPTIONS |
#define | NM_SETTING_WIRED_WAKE_ON_LAN |
#define | NM_SETTING_WIRED_WAKE_ON_LAN_PASSWORD |
#define | NM_SETTING_WIRED_ACCEPT_ALL_MAC_ADDRESSES |
The NMSettingWired object is a NMSetting subclass that describes properties necessary for connection to Ethernet networks.
NMSetting *
nm_setting_wired_new (void
);
Creates a new NMSettingWired object with default values.
gboolean
nm_setting_wired_get_auto_negotiate (NMSettingWired *setting
);
const char *
nm_setting_wired_get_mac_address (NMSettingWired *setting
);
const char *
nm_setting_wired_get_cloned_mac_address
(NMSettingWired *setting
);
NMTernary
nm_setting_wired_get_accept_all_mac_addresses
(NMSettingWired *setting
);
Since: 1.32
const char *
nm_setting_wired_get_generate_mac_address_mask
(NMSettingWired *setting
);
Since: 1.4
const char *const *
nm_setting_wired_get_mac_address_blacklist
(NMSettingWired *setting
);
nm_setting_wired_get_mac_address_blacklist
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_get_mac_address_denylist()
instead.
guint32
nm_setting_wired_get_num_mac_blacklist_items
(NMSettingWired *setting
);
nm_setting_wired_get_num_mac_blacklist_items
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_get_num_mac_denylist_items()
instead.
const char * nm_setting_wired_get_mac_blacklist_item (NMSettingWired *setting
,guint32 idx
);
nm_setting_wired_get_mac_blacklist_item
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_get_mac_denylist_item()
instead.
Since 1.48, access at index "len" is allowed and returns NULL.
gboolean nm_setting_wired_add_mac_blacklist_item (NMSettingWired *setting
,const char *mac
);
nm_setting_wired_add_mac_blacklist_item
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_add_mac_denylist_item()
instead.
Adds a new MAC address to the “mac-address-blacklist” property.
setting |
the NMSettingWired |
|
mac |
the MAC address string (hex-digits-and-colons notation) to blacklist |
void nm_setting_wired_remove_mac_blacklist_item (NMSettingWired *setting
,guint32 idx
);
nm_setting_wired_remove_mac_blacklist_item
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_remove_mac_denylist_item()
instead.
Removes the MAC address at index idx
from the blacklist.
gboolean nm_setting_wired_remove_mac_blacklist_item_by_value (NMSettingWired *setting
,const char *mac
);
nm_setting_wired_remove_mac_blacklist_item_by_value
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_remove_mac_denylist_item_by_value()
instead.
Removes the MAC address mac
from the blacklist.
setting |
the NMSettingWired |
|
mac |
the MAC address string (hex-digits-and-colons notation) to remove from the blacklist |
void
nm_setting_wired_clear_mac_blacklist_items
(NMSettingWired *setting
);
nm_setting_wired_clear_mac_blacklist_items
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wired_clear_mac_denylist_items()
instead.
Removes all blacklisted MAC addresses.
const char *const *
nm_setting_wired_get_mac_address_denylist
(NMSettingWired *setting
);
Since: 1.48
guint32
nm_setting_wired_get_num_mac_denylist_items
(NMSettingWired *setting
);
Since: 1.48
const char * nm_setting_wired_get_mac_denylist_item (NMSettingWired *setting
,guint32 idx
);
Since: 1.48
gboolean nm_setting_wired_add_mac_denylist_item (NMSettingWired *setting
,const char *mac
);
Adds a new MAC address to the “mac-address-denylist” property.
setting |
the NMSettingWired |
|
mac |
the MAC address string (hex-digits-and-colons notation) to denylist |
TRUE
if the MAC address was added; FALSE
if the MAC address
is invalid or was already present
Since: 1.48
void nm_setting_wired_remove_mac_denylist_item (NMSettingWired *setting
,guint32 idx
);
Removes the MAC address at index idx
from the denylist.
Since: 1.48
gboolean nm_setting_wired_remove_mac_denylist_item_by_value (NMSettingWired *setting
,const char *mac
);
Removes the MAC address mac
from the denylist.
setting |
the NMSettingWired |
|
mac |
the MAC address string (hex-digits-and-colons notation) to remove from the denylist |
Since: 1.48
void
nm_setting_wired_clear_mac_denylist_items
(NMSettingWired *setting
);
Removes all denylisted MAC addresses.
Since: 1.48
const char *const *
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][optional][nullable][transfer none] |
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][optional][nullable][transfer none] |
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 *value
);
Add an option to the table. If the key already exists, the value gets replaced.
Before 1.32, the function would assert that the key is valid. Since then, an invalid key gets silently added but renders the profile as invalid.
gboolean nm_setting_wired_remove_s390_option (NMSettingWired *setting
,const char *key
);
Remove the s390-specific option referenced by key
from the internal option
list.
const char **
nm_setting_wired_get_valid_s390_options
(NMSettingWired *setting
);
Returns a list of valid s390 options.
The setting
argument is unused and NULL
may be passed instead.
NMSettingWiredWakeOnLan
nm_setting_wired_get_wake_on_lan (NMSettingWired *setting
);
Returns the Wake-on-LAN options enabled for the connection
Since: 1.2
const char *
nm_setting_wired_get_wake_on_lan_password
(NMSettingWired *setting
);
Returns the Wake-on-LAN password. This only applies to
NM_SETTING_WIRED_WAKE_ON_LAN_MAGIC
.
Since: 1.2
Options for “wake-on-lan”. Note that not all options are supported by all devices.
Wake-on-LAN disabled |
||
Wake on PHY activity |
||
Wake on unicast messages |
||
Wake on multicast messages |
||
Wake on broadcast messages |
||
Wake on ARP |
||
Wake on magic packet |
||
Wake on all events. This does not
include the exclusive flags |
||
Use the default value |
||
Don't change configured settings |
||
Mask of flags that are incompatible with other flags |
Since: 1.2
#define NM_SETTING_WIRED_CLONED_MAC_ADDRESS "cloned-mac-address"
#define NM_SETTING_WIRED_GENERATE_MAC_ADDRESS_MASK "generate-mac-address-mask"
#define NM_SETTING_WIRED_MAC_ADDRESS_BLACKLIST "mac-address-blacklist"
#define NM_SETTING_WIRED_MAC_ADDRESS_DENYLIST "mac-address-denylist"
#define NM_SETTING_WIRED_WAKE_ON_LAN_PASSWORD "wake-on-lan-password"