SettingWired
Object Hierarchy:
Description:
Namespace: NM
Package: libnm-util
Content:
Constants:
- public const string AUTO_NEGOTIATE
- public const string CLONED_MAC_ADDRESS
- public const string DUPLEX
- public const string MAC_ADDRESS
- public const string MAC_ADDRESS_BLACKLIST
- public const string MTU
- public const string PORT
- public const string S390_NETTYPE
- public const string S390_OPTIONS
- public const string S390_SUBCHANNELS
- public const string SETTING_NAME
- public const string SPEED
Properties:
- public bool auto_negotiate { get; set construct; }
If
true
, allow auto-negotiation of port speed and duplex mode. - public string duplex { owned get; set; }
If specified, request that the device only use the specified duplex mode.
- public uint mtu { get; set construct; }
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple Ethernet frames.
- public string port { owned get; set; }
Specific port type to use if the device supports multiple attachment methods.
- public string s390_nettype { owned get; set; }
s390 network device type; one of "qeth", "lcs", or "ctc", representing the different types of virtual network devices available on s390 systems.
- public uint speed { get; set construct; }
If non-zero, request that the device use only the specified speed.
Creation methods:
- public SettingWired ()
Creates a new SettingWired object with default values.
Methods:
- public bool add_mac_blacklist_item (string mac)
Adds a new MAC address to the
NMSettingWired:mac-address-blacklist
property. - public bool add_s390_option (string key, string value)
Add an option to the table.
- public void clear_mac_blacklist_items ()
Removes all blacklisted MAC addresses.
- public bool get_auto_negotiate ()
- public unowned ByteArray get_cloned_mac_address ()
- public unowned string get_duplex ()
- public unowned ByteArray get_mac_address ()
- public unowned SList<ByteArray> get_mac_address_blacklist ()
- public unowned string get_mac_blacklist_item (uint32 idx)
- public uint32 get_mtu ()
- public uint32 get_num_mac_blacklist_items ()
- public uint32 get_num_s390_options ()
Returns the number of s390-specific options that should be set for this device when it is activated.
- public unowned string get_port ()
- public unowned string get_s390_nettype ()
Returns the s390 device type this connection should apply to.
- public bool get_s390_option (uint32 idx, out string out_key, out string out_value)
Given an index, return the value of the s390 option at that index.
- public unowned string get_s390_option_by_key (string key)
Returns the value associated with the s390-specific option specified by
key
, if it exists. - public unowned GenericArray<string> get_s390_subchannels ()
Return the list of s390 subchannels that identify the device that this connection is applicable to.
- public uint32 get_speed ()
- public unowned string[] get_valid_s390_options ()
Returns a list of valid s390 options.
- public void remove_mac_blacklist_item (uint32 idx)
Removes the MAC address at index
idx
from the blacklist. - public bool remove_mac_blacklist_item_by_value (string mac)
Removes the MAC address
mac
from the blacklist. - public bool remove_s390_option (string key)
Remove the s390-specific option referenced by
key
from the internal option list.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object