diff options
author | Dan Williams <dcbw@redhat.com> | 2009-11-11 14:07:42 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-11-11 14:21:10 -0800 |
commit | 7e6ce058d92f85088f642049848c25cea8294881 (patch) | |
tree | 94ab294a2ab3573fc6f1a105ca0f514cc05e2f91 /libnm-util | |
parent | 050dbd6d7ef21248982c825b8fd936274028fa33 (diff) |
doc: document wired setting properties
Diffstat (limited to 'libnm-util')
-rw-r--r-- | libnm-util/nm-setting-wired.c | 67 |
1 files changed, 61 insertions, 6 deletions
diff --git a/libnm-util/nm-setting-wired.c b/libnm-util/nm-setting-wired.c index 30be70d11a..2f25243318 100644 --- a/libnm-util/nm-setting-wired.c +++ b/libnm-util/nm-setting-wired.c @@ -278,51 +278,106 @@ nm_setting_wired_class_init (NMSettingWiredClass *setting_class) parent_class->verify = verify; /* 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 (object_class, PROP_PORT, g_param_spec_string (NM_SETTING_WIRED_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, 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 (object_class, PROP_SPEED, g_param_spec_uint (NM_SETTING_WIRED_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, 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 (object_class, PROP_DUPLEX, g_param_spec_string (NM_SETTING_WIRED_DUPLEX, "Duplex", - "Duplex", + "If specified, request that the device only use the " + "specified duplex mode. Either 'half' or 'full'.", NULL, 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 (object_class, PROP_AUTO_NEGOTIATE, g_param_spec_boolean (NM_SETTING_WIRED_AUTO_NEGOTIATE, "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, 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 (object_class, PROP_MAC_ADDRESS, _nm_param_spec_specialized (NM_SETTING_WIRED_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, 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 (object_class, PROP_MTU, g_param_spec_uint (NM_SETTING_WIRED_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, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE | NM_SETTING_PARAM_FUZZY_IGNORE)); } |