mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
doc: document wired setting properties
This commit is contained in:
parent
7f3f5bfef3
commit
0539c2b6d2
1 changed files with 61 additions and 6 deletions
|
|
@ -278,51 +278,106 @@ nm_setting_wired_class_init (NMSettingWiredClass *setting_class)
|
||||||
parent_class->verify = verify;
|
parent_class->verify = verify;
|
||||||
|
|
||||||
/* Properties */
|
/* Properties */
|
||||||
|
/**
|
||||||
|
* NMSettingWired:port:
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
**/
|
||||||
g_object_class_install_property
|
g_object_class_install_property
|
||||||
(object_class, PROP_PORT,
|
(object_class, PROP_PORT,
|
||||||
g_param_spec_string (NM_SETTING_WIRED_PORT,
|
g_param_spec_string (NM_SETTING_WIRED_PORT,
|
||||||
"Port",
|
"Port",
|
||||||
"Port type",
|
"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.",
|
||||||
NULL,
|
NULL,
|
||||||
G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE));
|
G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NMSettingWired:speed:
|
||||||
|
*
|
||||||
|
* If non-zero, request that the device use only the specified speed.
|
||||||
|
* In Mbit/s, ie 100 == 100Mbit/s.
|
||||||
|
**/
|
||||||
g_object_class_install_property
|
g_object_class_install_property
|
||||||
(object_class, PROP_SPEED,
|
(object_class, PROP_SPEED,
|
||||||
g_param_spec_uint (NM_SETTING_WIRED_SPEED,
|
g_param_spec_uint (NM_SETTING_WIRED_SPEED,
|
||||||
"Speed",
|
"Speed",
|
||||||
"Speed",
|
"If non-zero, request that the device use only the "
|
||||||
|
"specified speed. In Mbit/s, ie 100 == 100Mbit/s.",
|
||||||
0, G_MAXUINT32, 0,
|
0, G_MAXUINT32, 0,
|
||||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE));
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NMSettingWired:duplex:
|
||||||
|
*
|
||||||
|
* If specified, request that the device only use the specified duplex mode.
|
||||||
|
* Either 'half' or 'full'.
|
||||||
|
**/
|
||||||
g_object_class_install_property
|
g_object_class_install_property
|
||||||
(object_class, PROP_DUPLEX,
|
(object_class, PROP_DUPLEX,
|
||||||
g_param_spec_string (NM_SETTING_WIRED_DUPLEX,
|
g_param_spec_string (NM_SETTING_WIRED_DUPLEX,
|
||||||
"Duplex",
|
"Duplex",
|
||||||
"Duplex",
|
"If specified, request that the device only use the "
|
||||||
|
"specified duplex mode. Either 'half' or 'full'.",
|
||||||
NULL,
|
NULL,
|
||||||
G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE));
|
G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NMSettingEthernet:auto-negotiate:
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
**/
|
||||||
g_object_class_install_property
|
g_object_class_install_property
|
||||||
(object_class, PROP_AUTO_NEGOTIATE,
|
(object_class, PROP_AUTO_NEGOTIATE,
|
||||||
g_param_spec_boolean (NM_SETTING_WIRED_AUTO_NEGOTIATE,
|
g_param_spec_boolean (NM_SETTING_WIRED_AUTO_NEGOTIATE,
|
||||||
"AutoNegotiate",
|
"AutoNegotiate",
|
||||||
"Auto negotiate",
|
"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.",
|
||||||
TRUE,
|
TRUE,
|
||||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE));
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NMSettingWired:mac-address:
|
||||||
|
*
|
||||||
|
* If specified, this connection will only apply to the ethernet device
|
||||||
|
* whose MAC address matches. This property does not change the MAC address
|
||||||
|
* of the device (known as MAC spoofing).
|
||||||
|
**/
|
||||||
g_object_class_install_property
|
g_object_class_install_property
|
||||||
(object_class, PROP_MAC_ADDRESS,
|
(object_class, PROP_MAC_ADDRESS,
|
||||||
_nm_param_spec_specialized (NM_SETTING_WIRED_MAC_ADDRESS,
|
_nm_param_spec_specialized (NM_SETTING_WIRED_MAC_ADDRESS,
|
||||||
"MAC Address",
|
"MAC Address",
|
||||||
"Harware address",
|
"If specified, this connection will only apply to "
|
||||||
|
"the ethernet device whose MAC address matches. "
|
||||||
|
"This property does not change the MAC address "
|
||||||
|
"of the device (known as MAC spoofing).",
|
||||||
DBUS_TYPE_G_UCHAR_ARRAY,
|
DBUS_TYPE_G_UCHAR_ARRAY,
|
||||||
G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE));
|
G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NMSettingWired:mtu:
|
||||||
|
*
|
||||||
|
* If non-zero, only transmit packets of the specified size or smaller,
|
||||||
|
* breaking larger packets up into multiple Ethernet frames.
|
||||||
|
**/
|
||||||
g_object_class_install_property
|
g_object_class_install_property
|
||||||
(object_class, PROP_MTU,
|
(object_class, PROP_MTU,
|
||||||
g_param_spec_uint (NM_SETTING_WIRED_MTU,
|
g_param_spec_uint (NM_SETTING_WIRED_MTU,
|
||||||
"MTU",
|
"MTU",
|
||||||
"MTU",
|
"If non-zero, only transmit packets of the specified "
|
||||||
|
"size or smaller, breaking larger packets up into "
|
||||||
|
"multiple Ethernet frames.",
|
||||||
0, G_MAXUINT32, 0,
|
0, G_MAXUINT32, 0,
|
||||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE | NM_SETTING_PARAM_FUZZY_IGNORE));
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE | NM_SETTING_PARAM_FUZZY_IGNORE));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue