![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct NMIPConfig; NMIPConfigClass; #define NM_IP_CONFIG_FAMILY #define NM_IP_CONFIG_GATEWAY #define NM_IP_CONFIG_ADDRESSES #define NM_IP_CONFIG_ROUTES #define NM_IP_CONFIG_NAMESERVERS #define NM_IP_CONFIG_DOMAINS #define NM_IP_CONFIG_SEARCHES #define NM_IP_CONFIG_WINS_SERVERS int nm_ip_config_get_family (NMIPConfig *config
); const char * nm_ip_config_get_gateway (NMIPConfig *config
); GPtrArray * nm_ip_config_get_addresses (NMIPConfig *config
); GPtrArray * nm_ip_config_get_routes (NMIPConfig *config
); const char * const * nm_ip_config_get_nameservers (NMIPConfig *config
); const char * const * nm_ip_config_get_domains (NMIPConfig *config
); const char * const * nm_ip_config_get_searches (NMIPConfig *config
); const char * const * nm_ip_config_get_wins_servers (NMIPConfig *config
);
"addresses" GPtrArray* : Read "domains" GStrv : Read "family" gint : Read "gateway" gchar* : Read "nameservers" GStrv : Read "routes" GPtrArray* : Read "searches" GStrv : Read "wins-servers" GStrv : Read
int nm_ip_config_get_family (NMIPConfig *config
);
Gets the IP address family
|
a NMIPConfig |
Returns : |
the IP address family; either AF_INET or AF_INET6
|
const char * nm_ip_config_get_gateway (NMIPConfig *config
);
Gets the IP gateway address.
|
a NMIPConfig |
Returns : |
the IP address of the gateway. [transfer none] |
GPtrArray * nm_ip_config_get_addresses (NMIPConfig *config
);
Gets the IP addresses (containing the address, prefix, and gateway).
|
a NMIPConfig |
Returns : |
the GPtrArray containing NMIPAddresses. This is the internal copy used by the configuration and must not be modified. [element-type NMIPAddress][transfer none] |
GPtrArray * nm_ip_config_get_routes (NMIPConfig *config
);
Gets the routes.
|
a NMIPConfig |
Returns : |
the GPtrArray containing NMIPRoutes. This is the internal copy used by the configuration, and must not be modified. [element-type NMIPRoute][transfer none] |
const char * const * nm_ip_config_get_nameservers (NMIPConfig *config
);
Gets the domain name servers (DNS).
|
a NMIPConfig |
Returns : |
the array of nameserver IP addresses. [transfer none] |
const char * const * nm_ip_config_get_domains (NMIPConfig *config
);
Gets the domain names.
|
a NMIPConfig |
Returns : |
the array of domains.
(This is never NULL , though it may be 0-length). [transfer none]
|
const char * const * nm_ip_config_get_searches (NMIPConfig *config
);
Gets the DNS searches.
|
a NMIPConfig |
Returns : |
the array of DNS search strings.
(This is never NULL , though it may be 0-length). [transfer none]
|
const char * const * nm_ip_config_get_wins_servers (NMIPConfig *config
);
Gets the Windows Internet Name Service servers (WINS).
|
a NMIPConfig |
Returns : |
the arry of WINS server IP address strings.
(This is never NULL , though it may be 0-length.). [transfer none]
|
"addresses"
property"addresses" GPtrArray* : Read
A GPtrArray containing the addresses (NMIPAddress) of the configuration.
"domains"
property"domains" GStrv : Read
The array containing domain strings of the configuration.
"family"
property"family" gint : Read
The IP address family of the configuration; either AF_INET
or AF_INET6
.
Allowed values: [0,255]
Default value: 0
"gateway"
property"gateway" gchar* : Read
The IP gateway address of the configuration as string.
Default value: NULL
"nameservers"
property"nameservers" GStrv : Read
The array containing name server IP addresses of the configuration.
"routes"
property"routes" GPtrArray* : Read
A GPtrArray containing the routes (NMIPRoute) of the configuration.
"searches"
property"searches" GStrv : Read
The array containing DNS search strings of the configuration.
"wins-servers"
property"wins-servers" GStrv : Read
The array containing WINS server IP addresses of the configuration. (This will always be empty for IPv6 configurations.)