![]() |
![]() |
![]() |
libnm-util Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define NM_SETTING_IP4_CONFIG_SETTING_NAME enum NMSettingIP4ConfigError; #define NM_TYPE_SETTING_IP4_CONFIG_ERROR #define NM_SETTING_IP4_CONFIG_ERROR GQuark nm_setting_ip4_config_error_quark (void); #define NM_SETTING_IP4_CONFIG_METHOD #define NM_SETTING_IP4_CONFIG_DNS #define NM_SETTING_IP4_CONFIG_DNS_SEARCH #define NM_SETTING_IP4_CONFIG_ADDRESSES #define NM_SETTING_IP4_CONFIG_ROUTES #define NM_SETTING_IP4_CONFIG_IGNORE_AUTO_ROUTES #define NM_SETTING_IP4_CONFIG_IGNORE_AUTO_DNS #define NM_SETTING_IP4_CONFIG_DHCP_CLIENT_ID #define NM_SETTING_IP4_CONFIG_DHCP_HOSTNAME #define NM_SETTING_IP4_CONFIG_NEVER_DEFAULT #define NM_SETTING_IP4_CONFIG_METHOD_AUTO #define NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL #define NM_SETTING_IP4_CONFIG_METHOD_MANUAL #define NM_SETTING_IP4_CONFIG_METHOD_SHARED typedef NMIP4Address; NMIP4Address * nm_ip4_address_new (void); NMIP4Address * nm_ip4_address_dup (NMIP4Address *source); void nm_ip4_address_ref (NMIP4Address *address); void nm_ip4_address_unref (NMIP4Address *address); gboolean nm_ip4_address_compare (NMIP4Address *address, NMIP4Address *other); guint32 nm_ip4_address_get_address (NMIP4Address *address); void nm_ip4_address_set_address (NMIP4Address *address, guint32 addr); guint32 nm_ip4_address_get_prefix (NMIP4Address *address); void nm_ip4_address_set_prefix (NMIP4Address *address, guint32 prefix); guint32 nm_ip4_address_get_gateway (NMIP4Address *address); void nm_ip4_address_set_gateway (NMIP4Address *address, guint32 gateway); typedef NMIP4Route; NMIP4Route * nm_ip4_route_new (void); NMIP4Route * nm_ip4_route_dup (NMIP4Route *route); void nm_ip4_route_ref (NMIP4Route *route); void nm_ip4_route_unref (NMIP4Route *route); gboolean nm_ip4_route_compare (NMIP4Route *route, NMIP4Route *other); guint32 nm_ip4_route_get_dest (NMIP4Route *route); void nm_ip4_route_set_dest (NMIP4Route *route, guint32 dest); guint32 nm_ip4_route_get_prefix (NMIP4Route *route); void nm_ip4_route_set_prefix (NMIP4Route *route, guint32 prefix); guint32 nm_ip4_route_get_next_hop (NMIP4Route *route); void nm_ip4_route_set_next_hop (NMIP4Route *route, guint32 next_hop); guint32 nm_ip4_route_get_metric (NMIP4Route *route); void nm_ip4_route_set_metric (NMIP4Route *route, guint32 metric); NMSettingIP4Config; GType nm_setting_ip4_config_get_type (void); NMSetting * nm_setting_ip4_config_new (void); const char * nm_setting_ip4_config_get_method (NMSettingIP4Config *setting); guint32 nm_setting_ip4_config_get_num_dns (NMSettingIP4Config *setting); guint32 nm_setting_ip4_config_get_dns (NMSettingIP4Config *setting, guint32 i); gboolean nm_setting_ip4_config_add_dns (NMSettingIP4Config *setting, guint32 dns); void nm_setting_ip4_config_remove_dns (NMSettingIP4Config *setting, guint32 i); void nm_setting_ip4_config_clear_dns (NMSettingIP4Config *setting); guint32 nm_setting_ip4_config_get_num_dns_searches (NMSettingIP4Config *setting); const char * nm_setting_ip4_config_get_dns_search (NMSettingIP4Config *setting, guint32 i); gboolean nm_setting_ip4_config_add_dns_search (NMSettingIP4Config *setting, const char *dns_search); void nm_setting_ip4_config_remove_dns_search (NMSettingIP4Config *setting, guint32 i); void nm_setting_ip4_config_clear_dns_searches (NMSettingIP4Config *setting); guint32 nm_setting_ip4_config_get_num_addresses (NMSettingIP4Config *setting); NMIP4Address * nm_setting_ip4_config_get_address (NMSettingIP4Config *setting, guint32 i); gboolean nm_setting_ip4_config_add_address (NMSettingIP4Config *setting, NMIP4Address *address); void nm_setting_ip4_config_remove_address (NMSettingIP4Config *setting, guint32 i); void nm_setting_ip4_config_clear_addresses (NMSettingIP4Config *setting); guint32 nm_setting_ip4_config_get_num_routes (NMSettingIP4Config *setting); NMIP4Route * nm_setting_ip4_config_get_route (NMSettingIP4Config *setting, guint32 i); gboolean nm_setting_ip4_config_add_route (NMSettingIP4Config *setting, NMIP4Route *route); void nm_setting_ip4_config_remove_route (NMSettingIP4Config *setting, guint32 i); void nm_setting_ip4_config_clear_routes (NMSettingIP4Config *setting); gboolean nm_setting_ip4_config_get_ignore_auto_routes (NMSettingIP4Config *setting); gboolean nm_setting_ip4_config_get_ignore_auto_dns (NMSettingIP4Config *setting); const char * nm_setting_ip4_config_get_dhcp_client_id (NMSettingIP4Config *setting); const char * nm_setting_ip4_config_get_dhcp_hostname (NMSettingIP4Config *setting); gboolean nm_setting_ip4_config_get_never_default (NMSettingIP4Config *setting);
"dhcp-client-id" gchar* : Read / Write "dhcp-hostname" gchar* : Read / Write "ignore-auto-dns" gboolean : Read / Write / Construct "ignore-auto-routes" gboolean : Read / Write / Construct "method" gchar* : Read / Write "never-default" gboolean : Read / Write / Construct
typedef enum { NM_SETTING_IP4_CONFIG_ERROR_UNKNOWN = 0, NM_SETTING_IP4_CONFIG_ERROR_INVALID_PROPERTY, NM_SETTING_IP4_CONFIG_ERROR_MISSING_PROPERTY, NM_SETTING_IP4_CONFIG_ERROR_NOT_ALLOWED_FOR_METHOD } NMSettingIP4ConfigError;
#define NM_TYPE_SETTING_IP4_CONFIG_ERROR (nm_setting_ip4_config_error_get_type ())
#define NM_SETTING_IP4_CONFIG_ERROR nm_setting_ip4_config_error_quark ()
#define NM_SETTING_IP4_CONFIG_IGNORE_AUTO_ROUTES "ignore-auto-routes"
#define NM_SETTING_IP4_CONFIG_IGNORE_AUTO_DNS "ignore-auto-dns"
#define NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL "link-local"
gboolean nm_ip4_address_compare (NMIP4Address *address, NMIP4Address *other);
|
|
|
|
Returns : |
guint32 nm_ip4_address_get_address (NMIP4Address *address);
|
|
Returns : |
void nm_ip4_address_set_address (NMIP4Address *address, guint32 addr);
|
|
|
guint32 nm_ip4_address_get_prefix (NMIP4Address *address);
|
|
Returns : |
void nm_ip4_address_set_prefix (NMIP4Address *address, guint32 prefix);
|
|
|
guint32 nm_ip4_address_get_gateway (NMIP4Address *address);
|
|
Returns : |
void nm_ip4_address_set_gateway (NMIP4Address *address, guint32 gateway);
|
|
|
gboolean nm_ip4_route_compare (NMIP4Route *route, NMIP4Route *other);
|
|
|
|
Returns : |
void nm_ip4_route_set_dest (NMIP4Route *route, guint32 dest);
|
|
|
void nm_ip4_route_set_prefix (NMIP4Route *route, guint32 prefix);
|
|
|
guint32 nm_ip4_route_get_next_hop (NMIP4Route *route);
|
|
Returns : |
void nm_ip4_route_set_next_hop (NMIP4Route *route, guint32 next_hop);
|
|
|
void nm_ip4_route_set_metric (NMIP4Route *route, guint32 metric);
|
|
|
const char * nm_setting_ip4_config_get_method (NMSettingIP4Config *setting);
|
|
Returns : |
guint32 nm_setting_ip4_config_get_num_dns (NMSettingIP4Config *setting);
|
|
Returns : |
guint32 nm_setting_ip4_config_get_dns (NMSettingIP4Config *setting, guint32 i);
|
|
|
|
Returns : |
gboolean nm_setting_ip4_config_add_dns (NMSettingIP4Config *setting, guint32 dns);
|
|
|
|
Returns : |
void nm_setting_ip4_config_remove_dns (NMSettingIP4Config *setting, guint32 i);
|
|
|
void nm_setting_ip4_config_clear_dns (NMSettingIP4Config *setting);
|
guint32 nm_setting_ip4_config_get_num_dns_searches (NMSettingIP4Config *setting);
|
|
Returns : |
const char * nm_setting_ip4_config_get_dns_search (NMSettingIP4Config *setting, guint32 i);
|
|
|
|
Returns : |
gboolean nm_setting_ip4_config_add_dns_search (NMSettingIP4Config *setting, const char *dns_search);
|
|
|
|
Returns : |
void nm_setting_ip4_config_remove_dns_search (NMSettingIP4Config *setting, guint32 i);
|
|
|
void nm_setting_ip4_config_clear_dns_searches (NMSettingIP4Config *setting);
|
guint32 nm_setting_ip4_config_get_num_addresses (NMSettingIP4Config *setting);
|
|
Returns : |
NMIP4Address * nm_setting_ip4_config_get_address (NMSettingIP4Config *setting, guint32 i);
|
|
|
|
Returns : |
gboolean nm_setting_ip4_config_add_address (NMSettingIP4Config *setting, NMIP4Address *address);
|
|
|
|
Returns : |
void nm_setting_ip4_config_remove_address (NMSettingIP4Config *setting, guint32 i);
|
|
|
void nm_setting_ip4_config_clear_addresses (NMSettingIP4Config *setting);
|
guint32 nm_setting_ip4_config_get_num_routes (NMSettingIP4Config *setting);
|
|
Returns : |
NMIP4Route * nm_setting_ip4_config_get_route (NMSettingIP4Config *setting, guint32 i);
|
|
|
|
Returns : |
gboolean nm_setting_ip4_config_add_route (NMSettingIP4Config *setting, NMIP4Route *route);
|
|
|
|
Returns : |
void nm_setting_ip4_config_remove_route (NMSettingIP4Config *setting, guint32 i);
|
|
|
void nm_setting_ip4_config_clear_routes (NMSettingIP4Config *setting);
|
gboolean nm_setting_ip4_config_get_ignore_auto_routes (NMSettingIP4Config *setting);
|
|
Returns : |
gboolean nm_setting_ip4_config_get_ignore_auto_dns (NMSettingIP4Config *setting);
|
|
Returns : |
const char * nm_setting_ip4_config_get_dhcp_client_id (NMSettingIP4Config *setting);
|
|
Returns : |
const char * nm_setting_ip4_config_get_dhcp_hostname (NMSettingIP4Config *setting);
|
|
Returns : |
gboolean nm_setting_ip4_config_get_never_default (NMSettingIP4Config *setting);
|
|
Returns : |
"dhcp-client-id"
property"dhcp-client-id" gchar* : Read / Write
A string sent to the DHCP server to identify the local machine which the DHCP server may use to cusomize the DHCP lease and options.
Default value: NULL
"dhcp-hostname"
property"dhcp-hostname" gchar* : Read / Write
A hostname to be sent to the DHCP server when acquiring a lease. Some DHCP servers use this hostname to update DNS databases, essentially providing a static hostname for the computer.
Default value: NULL
"ignore-auto-dns"
property"ignore-auto-dns" gboolean : Read / Write / Construct
When the method is set to 'auto' and this property to TRUE, automatically configured nameservers and search domains are ignored and only namservers and search domains specified in "dns" and "dns-search", if any, are used.
Default value: FALSE
"ignore-auto-routes"
property"ignore-auto-routes" gboolean : Read / Write / Construct
When the method is set to 'auto' and this property to TRUE, automatically configured routes are ignored and only routes specified in "routes", if any, are used.
Default value: FALSE
"method"
property"method" gchar* : Read / Write
IPv4 configuration method. If 'auto' is specified then the appropriate automatic method (DHCP, PPP, etc) is used for the interface and most other properties can be left unset. If 'link-local' is specified, then a link-local address in the 169.254/16 range will be assigned to the interface. If 'manual' is specified, static IP addressing is used and at least one IP address must be given in the 'addresses' property. If 'shared' is specified (indicating that this connection will provide network access to other computers) then the interface is assigned an address in the 10.42.x.1/24 range and a DHCP and forwarding DNS server are started, and the interface is NAT-ed to the current default network connection. This property must be set.
Default value: NULL
"never-default"
property"never-default" gboolean : Read / Write / Construct
If TRUE, this connection will never be the default IPv4 connection, meaning it will never be assigned the default route by NetworkManager.
Default value: FALSE