SettingIP4Config
Object Hierarchy:
Description:
Namespace: NM
Package: libnm-util
Content:
Properties:
- public string dhcp_client_id { owned get; set; }
A string sent to the DHCP server to identify the local machine which the DHCP server may use to customize the DHCP lease and options.
- public string dhcp_hostname { owned get; set; }
If the dhcp_send_hostname property is
true
, then the specified name will be sent to the DHCP server when acquiring a lease. - public bool dhcp_send_hostname { get; set construct; }
If
true
, a hostname is sent to the DHCP server when acquiring a lease. - public uint dhcp_timeout { get; set; }
Number of seconds after which the unfinished DHCP transaction fails or zero for default.
- public bool ignore_auto_dns { get; set construct; }
When the method is set to "auto" and this property to
true
, automatically configured nameservers and search domains are ignored and only nameservers and search domains specified in theNMSettingIP4Config:dns
s andNMSettingIP4Config:dns-search
properties, if any, are used. - public bool ignore_auto_routes { get; set construct; }
When the method is set to "auto" and this property to
true
, automatically configured routes are ignored and only routes specified in theNMSettingIP4Config:routes
s property, if any, are used. - public bool may_fail { get; set construct; }
If
true
, allow overall network configuration to proceed even if IPv4 configuration times out. - public string method { owned get; set; }
IPv4 configuration method.
- public bool never_default { get; set construct; }
If
true
, this connection will never be the default IPv4 connection, meaning it will never be assigned the default route by NetworkManager. - public int64 route_metric { get; set construct; }
The default metric for routes that don't explicitly specify a metric.
Creation methods:
- public SettingIP4Config ()
Creates a new SettingIP4Config object with default values.
Methods:
- public bool add_address (IP4Address address)
Adds a new IPv4 address and associated information to the setting.
- public bool add_dns (uint32 dns)
Adds a new DNS server to the setting.
- public bool add_dns_search (string dns_search)
Adds a new DNS search domain to the setting.
- public bool add_route (IP4Route route)
Adds a new IPv4 route and associated information to the setting.
- public void clear_addresses ()
Removes all configured addresses.
- public void clear_dns ()
Removes all configured DNS servers.
- public void clear_dns_searches ()
Removes all configured DNS search domains.
- public void clear_routes ()
Removes all configured routes.
- public IP4Address get_address (uint32 i)
- public unowned string get_dhcp_client_id ()
Returns the value contained in the dhcp_client_id property.
- public unowned string get_dhcp_hostname ()
Returns the value contained in the dhcp_hostname property.
- public bool get_dhcp_send_hostname ()
Returns the value contained in the dhcp_send_hostname property.
- public int get_dhcp_timeout ()
Returns the value contained in the dhcp_timeout property.
- public uint32 get_dns (uint32 i)
- public unowned string get_dns_search (uint32 i)
- public bool get_ignore_auto_dns ()
Returns the value contained in the ignore_auto_dns property.
- public bool get_ignore_auto_routes ()
Returns the value contained in the ignore_auto_routes property.
- public bool get_may_fail ()
Returns the value contained in the may_fail property.
- public unowned string get_method ()
- public bool get_never_default ()
Returns the value contained in the never_default property.
- public uint32 get_num_addresses ()
- public uint32 get_num_dns ()
- public uint32 get_num_dns_searches ()
- public uint32 get_num_routes ()
- public IP4Route get_route (uint32 i)
- public int64 get_route_metric ()
Returns the value contained in the route_metric property.
- public void remove_address (uint32 i)
Removes the address at index
i
. - public bool remove_address_by_value (IP4Address address)
Removes the address
address
. - public void remove_dns (uint32 i)
Removes the DNS server at index
i
. - public bool remove_dns_by_value (uint32 dns)
Removes the DNS server
dns
. - public void remove_dns_search (uint32 i)
Removes the DNS search domain at index
i
. - public bool remove_dns_search_by_value (string dns_search)
Removes the DNS search domain
dns_search
. - public void remove_route (uint32 i)
Removes the route at index
i
. - public bool remove_route_by_value (IP4Route route)
Removes the route
route
.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object