mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 14:40:33 +01:00
nmcli: allow to set dhcp-timeout as "infinity"
DHCP timeout may now be explicitly disabled by setting the ipv[4,6].dhcp-timeout options to "infinity". This will set the DHCP timeout value to MAXINT32.
This commit is contained in:
parent
a245554984
commit
e04c9af5fd
1 changed files with 13 additions and 0 deletions
|
|
@ -5364,6 +5364,19 @@ static const NMMetaPropertyInfo *const property_infos_IP4_CONFIG[] = {
|
|||
),
|
||||
PROPERTY_INFO (NM_SETTING_IP_CONFIG_DHCP_TIMEOUT, DESCRIBE_DOC_NM_SETTING_IP4_CONFIG_DHCP_TIMEOUT,
|
||||
.property_type = &_pt_gobject_int,
|
||||
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int,
|
||||
.value_infos = INT_VALUE_INFOS (
|
||||
{
|
||||
.value = 0,
|
||||
.nick = "default",
|
||||
},
|
||||
{
|
||||
.value = G_MAXINT32,
|
||||
.nick = "infinity",
|
||||
}
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
PROPERTY_INFO (NM_SETTING_IP_CONFIG_DHCP_SEND_HOSTNAME, DESCRIBE_DOC_NM_SETTING_IP4_CONFIG_DHCP_SEND_HOSTNAME,
|
||||
.property_type = &_pt_gobject_bool,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue