mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 05:50:12 +01:00
ip-config: cleanup integer types for nm_ip4_config_get_num_*()
This commit is contained in:
parent
5253ab0d0d
commit
510626bf74
4 changed files with 48 additions and 68 deletions
|
|
@ -347,7 +347,6 @@ gboolean
|
|||
nm_ip4_config_commit (const NMIP4Config *config, int ifindex, gboolean routes_full_sync, gint64 default_route_metric)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
int i;
|
||||
gs_unref_ptrarray GPtrArray *added_addresses = NULL;
|
||||
|
||||
g_return_val_if_fail (ifindex > 0, FALSE);
|
||||
|
|
@ -359,7 +358,8 @@ nm_ip4_config_commit (const NMIP4Config *config, int ifindex, gboolean routes_fu
|
|||
|
||||
/* Routes */
|
||||
{
|
||||
int count = nm_ip4_config_get_num_routes (config);
|
||||
guint i;
|
||||
guint count = nm_ip4_config_get_num_routes (config);
|
||||
GArray *routes = g_array_sized_new (FALSE, FALSE, sizeof (NMPlatformIP4Route), count);
|
||||
gboolean success;
|
||||
gs_unref_array GArray *device_route_purge_list = NULL;
|
||||
|
|
@ -1366,7 +1366,7 @@ gboolean
|
|||
nm_ip4_config_destination_is_direct (const NMIP4Config *config, guint32 network, guint8 plen)
|
||||
{
|
||||
guint naddresses = nm_ip4_config_get_num_addresses (config);
|
||||
int i;
|
||||
guint i;
|
||||
in_addr_t peer_network;
|
||||
|
||||
for (i = 0; i < naddresses; i++) {
|
||||
|
|
@ -1725,7 +1725,7 @@ nm_ip4_config_del_nameserver (NMIP4Config *config, guint i)
|
|||
_notify (config, PROP_NAMESERVERS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip4_config_get_num_nameservers (const NMIP4Config *config)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1782,7 +1782,7 @@ nm_ip4_config_del_domain (NMIP4Config *config, guint i)
|
|||
_notify (config, PROP_DOMAINS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip4_config_get_num_domains (const NMIP4Config *config)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1854,7 +1854,7 @@ nm_ip4_config_del_search (NMIP4Config *config, guint i)
|
|||
_notify (config, PROP_SEARCHES);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip4_config_get_num_searches (const NMIP4Config *config)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1911,7 +1911,7 @@ nm_ip4_config_del_dns_option(NMIP4Config *config, guint i)
|
|||
_notify (config, PROP_DNS_OPTIONS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip4_config_get_num_dns_options (const NMIP4Config *config)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1999,7 +1999,7 @@ nm_ip4_config_del_nis_server (NMIP4Config *config, guint i)
|
|||
g_array_remove_index (priv->nis, i);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip4_config_get_num_nis_servers (const NMIP4Config *config)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -2072,7 +2072,7 @@ nm_ip4_config_del_wins (NMIP4Config *config, guint i)
|
|||
_notify (config, PROP_WINS_SERVERS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip4_config_get_num_wins (const NMIP4Config *config)
|
||||
{
|
||||
const NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -2147,7 +2147,7 @@ hash_u32 (GChecksum *sum, guint32 n)
|
|||
void
|
||||
nm_ip4_config_hash (const NMIP4Config *config, GChecksum *sum, gboolean dns_only)
|
||||
{
|
||||
guint32 i;
|
||||
guint i;
|
||||
const char *s;
|
||||
|
||||
g_return_if_fail (config);
|
||||
|
|
@ -2294,8 +2294,8 @@ get_property (GObject *object, guint prop_id,
|
|||
case PROP_ADDRESS_DATA:
|
||||
{
|
||||
GVariantBuilder array_builder, addr_builder;
|
||||
int naddr = nm_ip4_config_get_num_addresses (config);
|
||||
int i;
|
||||
guint naddr = nm_ip4_config_get_num_addresses (config);
|
||||
guint i;
|
||||
|
||||
g_variant_builder_init (&array_builder, G_VARIANT_TYPE ("aa{sv}"));
|
||||
for (i = 0; i < naddr; i++) {
|
||||
|
|
@ -2329,8 +2329,8 @@ get_property (GObject *object, guint prop_id,
|
|||
case PROP_ADDRESSES:
|
||||
{
|
||||
GVariantBuilder array_builder;
|
||||
int naddr = nm_ip4_config_get_num_addresses (config);
|
||||
int i;
|
||||
guint naddr = nm_ip4_config_get_num_addresses (config);
|
||||
guint i;
|
||||
|
||||
g_variant_builder_init (&array_builder, G_VARIANT_TYPE ("aau"));
|
||||
for (i = 0; i < naddr; i++) {
|
||||
|
|
@ -2353,7 +2353,7 @@ get_property (GObject *object, guint prop_id,
|
|||
{
|
||||
GVariantBuilder array_builder, route_builder;
|
||||
guint nroutes = nm_ip4_config_get_num_routes (config);
|
||||
int i;
|
||||
guint i;
|
||||
|
||||
g_variant_builder_init (&array_builder, G_VARIANT_TYPE ("aa{sv}"));
|
||||
for (i = 0; i < nroutes; i++) {
|
||||
|
|
@ -2385,7 +2385,7 @@ get_property (GObject *object, guint prop_id,
|
|||
{
|
||||
GVariantBuilder array_builder;
|
||||
guint nroutes = nm_ip4_config_get_num_routes (config);
|
||||
int i;
|
||||
guint i;
|
||||
|
||||
g_variant_builder_init (&array_builder, G_VARIANT_TYPE ("aau"));
|
||||
for (i = 0; i < nroutes; i++) {
|
||||
|
|
|
|||
|
|
@ -58,13 +58,13 @@ NMIP4Config * nm_ip4_config_new (int ifindex);
|
|||
|
||||
int nm_ip4_config_get_ifindex (const NMIP4Config *config);
|
||||
|
||||
/* Integration with nm-platform and nm-setting */
|
||||
|
||||
NMIP4Config *nm_ip4_config_capture (int ifindex, gboolean capture_resolv_conf);
|
||||
gboolean nm_ip4_config_commit (const NMIP4Config *config, int ifindex, gboolean routes_full_sync, gint64 default_route_metric);
|
||||
void nm_ip4_config_merge_setting (NMIP4Config *config, NMSettingIPConfig *setting, guint32 default_route_metric);
|
||||
NMSetting *nm_ip4_config_create_setting (const NMIP4Config *config);
|
||||
|
||||
/* Utility functions */
|
||||
|
||||
void nm_ip4_config_merge (NMIP4Config *dst, const NMIP4Config *src, NMIPConfigMergeFlags merge_flags);
|
||||
void nm_ip4_config_subtract (NMIP4Config *dst, const NMIP4Config *src);
|
||||
void nm_ip4_config_intersect (NMIP4Config *dst, const NMIP4Config *src);
|
||||
|
|
@ -72,7 +72,7 @@ gboolean nm_ip4_config_replace (NMIP4Config *dst, const NMIP4Config *src, gboole
|
|||
gboolean nm_ip4_config_destination_is_direct (const NMIP4Config *config, guint32 dest, guint8 plen);
|
||||
void nm_ip4_config_dump (const NMIP4Config *config, const char *detail);
|
||||
|
||||
/* Gateways */
|
||||
|
||||
void nm_ip4_config_set_never_default (NMIP4Config *config, gboolean never_default);
|
||||
gboolean nm_ip4_config_get_never_default (const NMIP4Config *config);
|
||||
void nm_ip4_config_set_gateway (NMIP4Config *config, guint32 gateway);
|
||||
|
|
@ -81,7 +81,6 @@ gboolean nm_ip4_config_has_gateway (const NMIP4Config *config);
|
|||
guint32 nm_ip4_config_get_gateway (const NMIP4Config *config);
|
||||
gint64 nm_ip4_config_get_route_metric (const NMIP4Config *config);
|
||||
|
||||
/* Addresses */
|
||||
void nm_ip4_config_reset_addresses (NMIP4Config *config);
|
||||
void nm_ip4_config_add_address (NMIP4Config *config, const NMPlatformIP4Address *address);
|
||||
void nm_ip4_config_del_address (NMIP4Config *config, guint i);
|
||||
|
|
@ -90,73 +89,62 @@ const NMPlatformIP4Address *nm_ip4_config_get_address (const NMIP4Config *config
|
|||
gboolean nm_ip4_config_address_exists (const NMIP4Config *config, const NMPlatformIP4Address *address);
|
||||
gboolean nm_ip4_config_addresses_sort (NMIP4Config *config);
|
||||
|
||||
/* Routes */
|
||||
void nm_ip4_config_reset_routes (NMIP4Config *config);
|
||||
void nm_ip4_config_add_route (NMIP4Config *config, const NMPlatformIP4Route *route);
|
||||
void nm_ip4_config_del_route (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_routes (const NMIP4Config *config);
|
||||
const NMPlatformIP4Route *nm_ip4_config_get_route (const NMIP4Config *config, guint32 i);
|
||||
guint nm_ip4_config_get_num_routes (const NMIP4Config *config);
|
||||
const NMPlatformIP4Route *nm_ip4_config_get_route (const NMIP4Config *config, guint i);
|
||||
|
||||
const NMPlatformIP4Route *nm_ip4_config_get_direct_route_for_host (const NMIP4Config *config, guint32 host);
|
||||
|
||||
/* Nameservers */
|
||||
void nm_ip4_config_reset_nameservers (NMIP4Config *config);
|
||||
void nm_ip4_config_add_nameserver (NMIP4Config *config, guint32 nameserver);
|
||||
void nm_ip4_config_del_nameserver (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_nameservers (const NMIP4Config *config);
|
||||
guint nm_ip4_config_get_num_nameservers (const NMIP4Config *config);
|
||||
guint32 nm_ip4_config_get_nameserver (const NMIP4Config *config, guint i);
|
||||
|
||||
/* Domains */
|
||||
void nm_ip4_config_reset_domains (NMIP4Config *config);
|
||||
void nm_ip4_config_add_domain (NMIP4Config *config, const char *domain);
|
||||
void nm_ip4_config_del_domain (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_domains (const NMIP4Config *config);
|
||||
guint nm_ip4_config_get_num_domains (const NMIP4Config *config);
|
||||
const char * nm_ip4_config_get_domain (const NMIP4Config *config, guint i);
|
||||
|
||||
/* Search lists */
|
||||
void nm_ip4_config_reset_searches (NMIP4Config *config);
|
||||
void nm_ip4_config_add_search (NMIP4Config *config, const char *search);
|
||||
void nm_ip4_config_del_search (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_searches (const NMIP4Config *config);
|
||||
guint nm_ip4_config_get_num_searches (const NMIP4Config *config);
|
||||
const char * nm_ip4_config_get_search (const NMIP4Config *config, guint i);
|
||||
|
||||
/* DNS options */
|
||||
void nm_ip4_config_reset_dns_options (NMIP4Config *config);
|
||||
void nm_ip4_config_add_dns_option (NMIP4Config *config, const char *option);
|
||||
void nm_ip4_config_del_dns_option (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_dns_options (const NMIP4Config *config);
|
||||
guint nm_ip4_config_get_num_dns_options (const NMIP4Config *config);
|
||||
const char * nm_ip4_config_get_dns_option (const NMIP4Config *config, guint i);
|
||||
|
||||
/* DNS priority */
|
||||
void nm_ip4_config_set_dns_priority (NMIP4Config *config, gint priority);
|
||||
gint nm_ip4_config_get_dns_priority (const NMIP4Config *config);
|
||||
|
||||
/* MSS */
|
||||
void nm_ip4_config_set_mss (NMIP4Config *config, guint32 mss);
|
||||
guint32 nm_ip4_config_get_mss (const NMIP4Config *config);
|
||||
|
||||
/* NIS */
|
||||
void nm_ip4_config_reset_nis_servers (NMIP4Config *config);
|
||||
void nm_ip4_config_add_nis_server (NMIP4Config *config, guint32 nis);
|
||||
void nm_ip4_config_del_nis_server (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_nis_servers (const NMIP4Config *config);
|
||||
guint nm_ip4_config_get_num_nis_servers (const NMIP4Config *config);
|
||||
guint32 nm_ip4_config_get_nis_server (const NMIP4Config *config, guint i);
|
||||
void nm_ip4_config_set_nis_domain (NMIP4Config *config, const char *domain);
|
||||
const char * nm_ip4_config_get_nis_domain (const NMIP4Config *config);
|
||||
|
||||
/* WINS */
|
||||
void nm_ip4_config_reset_wins (NMIP4Config *config);
|
||||
void nm_ip4_config_add_wins (NMIP4Config *config, guint32 wins);
|
||||
void nm_ip4_config_del_wins (NMIP4Config *config, guint i);
|
||||
guint32 nm_ip4_config_get_num_wins (const NMIP4Config *config);
|
||||
guint nm_ip4_config_get_num_wins (const NMIP4Config *config);
|
||||
guint32 nm_ip4_config_get_wins (const NMIP4Config *config, guint i);
|
||||
|
||||
/* MTU */
|
||||
void nm_ip4_config_set_mtu (NMIP4Config *config, guint32 mtu, NMIPConfigSource source);
|
||||
guint32 nm_ip4_config_get_mtu (const NMIP4Config *config);
|
||||
NMIPConfigSource nm_ip4_config_get_mtu_source (const NMIP4Config *config);
|
||||
|
||||
/* Metered */
|
||||
void nm_ip4_config_set_metered (NMIP4Config *config, gboolean metered);
|
||||
gboolean nm_ip4_config_get_metered (const NMIP4Config *config);
|
||||
|
||||
|
|
|
|||
|
|
@ -384,7 +384,6 @@ gboolean
|
|||
nm_ip6_config_commit (const NMIP6Config *config, int ifindex, gboolean routes_full_sync)
|
||||
{
|
||||
const NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
int i;
|
||||
gboolean success;
|
||||
|
||||
g_return_val_if_fail (ifindex > 0, FALSE);
|
||||
|
|
@ -395,7 +394,8 @@ nm_ip6_config_commit (const NMIP6Config *config, int ifindex, gboolean routes_fu
|
|||
|
||||
/* Routes */
|
||||
{
|
||||
int count = nm_ip6_config_get_num_routes (config);
|
||||
guint i;
|
||||
guint count = nm_ip6_config_get_num_routes (config);
|
||||
GArray *routes = g_array_sized_new (FALSE, FALSE, sizeof (NMPlatformIP6Route), count);
|
||||
const NMPlatformIP6Route *route;
|
||||
|
||||
|
|
@ -712,8 +712,8 @@ nm_ip6_config_merge (NMIP6Config *dst, const NMIP6Config *src, NMIPConfigMergeFl
|
|||
gboolean
|
||||
nm_ip6_config_destination_is_direct (const NMIP6Config *config, const struct in6_addr *network, guint8 plen)
|
||||
{
|
||||
int num = nm_ip6_config_get_num_addresses (config);
|
||||
int i;
|
||||
guint num = nm_ip6_config_get_num_addresses (config);
|
||||
guint i;
|
||||
|
||||
nm_assert (network);
|
||||
nm_assert (plen <= 128);
|
||||
|
|
@ -1626,7 +1626,7 @@ nm_ip6_config_del_nameserver (NMIP6Config *config, guint i)
|
|||
_notify (config, PROP_NAMESERVERS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip6_config_get_num_nameservers (const NMIP6Config *config)
|
||||
{
|
||||
const NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1683,7 +1683,7 @@ nm_ip6_config_del_domain (NMIP6Config *config, guint i)
|
|||
_notify (config, PROP_DOMAINS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip6_config_get_num_domains (const NMIP6Config *config)
|
||||
{
|
||||
const NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1755,7 +1755,7 @@ nm_ip6_config_del_search (NMIP6Config *config, guint i)
|
|||
_notify (config, PROP_SEARCHES);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip6_config_get_num_searches (const NMIP6Config *config)
|
||||
{
|
||||
const NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -1812,7 +1812,7 @@ nm_ip6_config_del_dns_option (NMIP6Config *config, guint i)
|
|||
_notify (config, PROP_DNS_OPTIONS);
|
||||
}
|
||||
|
||||
guint32
|
||||
guint
|
||||
nm_ip6_config_get_num_dns_options (const NMIP6Config *config)
|
||||
{
|
||||
const NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
|
|
@ -2038,8 +2038,8 @@ get_property (GObject *object, guint prop_id,
|
|||
case PROP_ADDRESS_DATA:
|
||||
{
|
||||
GVariantBuilder array_builder, addr_builder;
|
||||
int naddr = nm_ip6_config_get_num_addresses (config);
|
||||
int i;
|
||||
guint naddr = nm_ip6_config_get_num_addresses (config);
|
||||
guint i;
|
||||
|
||||
g_variant_builder_init (&array_builder, G_VARIANT_TYPE ("aa{sv}"));
|
||||
for (i = 0; i < naddr; i++) {
|
||||
|
|
@ -2069,8 +2069,8 @@ get_property (GObject *object, guint prop_id,
|
|||
{
|
||||
GVariantBuilder array_builder;
|
||||
const struct in6_addr *gateway = nm_ip6_config_get_gateway (config);
|
||||
int naddr = nm_ip6_config_get_num_addresses (config);
|
||||
int i;
|
||||
guint naddr = nm_ip6_config_get_num_addresses (config);
|
||||
guint i;
|
||||
|
||||
g_variant_builder_init (&array_builder, G_VARIANT_TYPE ("a(ayuay)"));
|
||||
for (i = 0; i < naddr; i++) {
|
||||
|
|
|
|||
|
|
@ -60,13 +60,13 @@ NMIP6Config * nm_ip6_config_new_cloned (const NMIP6Config *src);
|
|||
|
||||
int nm_ip6_config_get_ifindex (const NMIP6Config *config);
|
||||
|
||||
/* Integration with nm-platform and nm-setting */
|
||||
|
||||
NMIP6Config *nm_ip6_config_capture (int ifindex, gboolean capture_resolv_conf, NMSettingIP6ConfigPrivacy use_temporary);
|
||||
gboolean nm_ip6_config_commit (const NMIP6Config *config, int ifindex, gboolean routes_full_sync);
|
||||
void nm_ip6_config_merge_setting (NMIP6Config *config, NMSettingIPConfig *setting, guint32 default_route_metric);
|
||||
NMSetting *nm_ip6_config_create_setting (const NMIP6Config *config);
|
||||
|
||||
/* Utility functions */
|
||||
|
||||
void nm_ip6_config_merge (NMIP6Config *dst, const NMIP6Config *src, NMIPConfigMergeFlags merge_flags);
|
||||
void nm_ip6_config_subtract (NMIP6Config *dst, const NMIP6Config *src);
|
||||
void nm_ip6_config_intersect (NMIP6Config *dst, const NMIP6Config *src);
|
||||
|
|
@ -74,14 +74,13 @@ gboolean nm_ip6_config_replace (NMIP6Config *dst, const NMIP6Config *src, gboole
|
|||
int nm_ip6_config_destination_is_direct (const NMIP6Config *config, const struct in6_addr *dest, guint8 plen);
|
||||
void nm_ip6_config_dump (const NMIP6Config *config, const char *detail);
|
||||
|
||||
/* Gateways */
|
||||
|
||||
void nm_ip6_config_set_never_default (NMIP6Config *config, gboolean never_default);
|
||||
gboolean nm_ip6_config_get_never_default (const NMIP6Config *config);
|
||||
void nm_ip6_config_set_gateway (NMIP6Config *config, const struct in6_addr *);
|
||||
const struct in6_addr *nm_ip6_config_get_gateway (const NMIP6Config *config);
|
||||
gint64 nm_ip6_config_get_route_metric (const NMIP6Config *config);
|
||||
|
||||
/* Addresses */
|
||||
void nm_ip6_config_reset_addresses (NMIP6Config *config);
|
||||
void nm_ip6_config_add_address (NMIP6Config *config, const NMPlatformIP6Address *address);
|
||||
void nm_ip6_config_del_address (NMIP6Config *config, guint i);
|
||||
|
|
@ -93,49 +92,42 @@ gboolean nm_ip6_config_addresses_sort (NMIP6Config *config, NMSettingIP6ConfigPr
|
|||
gboolean nm_ip6_config_has_any_dad_pending (const NMIP6Config *self,
|
||||
const NMIP6Config *candidates);
|
||||
|
||||
/* Routes */
|
||||
void nm_ip6_config_reset_routes (NMIP6Config *config);
|
||||
void nm_ip6_config_add_route (NMIP6Config *config, const NMPlatformIP6Route *route);
|
||||
void nm_ip6_config_del_route (NMIP6Config *config, guint i);
|
||||
guint32 nm_ip6_config_get_num_routes (const NMIP6Config *config);
|
||||
const NMPlatformIP6Route *nm_ip6_config_get_route (const NMIP6Config *config, guint32 i);
|
||||
guint nm_ip6_config_get_num_routes (const NMIP6Config *config);
|
||||
const NMPlatformIP6Route *nm_ip6_config_get_route (const NMIP6Config *config, guint i);
|
||||
|
||||
const NMPlatformIP6Route *nm_ip6_config_get_direct_route_for_host (const NMIP6Config *config, const struct in6_addr *host);
|
||||
const NMPlatformIP6Address *nm_ip6_config_get_subnet_for_host (const NMIP6Config *config, const struct in6_addr *host);
|
||||
|
||||
/* Nameservers */
|
||||
void nm_ip6_config_reset_nameservers (NMIP6Config *config);
|
||||
void nm_ip6_config_add_nameserver (NMIP6Config *config, const struct in6_addr *nameserver);
|
||||
void nm_ip6_config_del_nameserver (NMIP6Config *config, guint i);
|
||||
guint32 nm_ip6_config_get_num_nameservers (const NMIP6Config *config);
|
||||
guint nm_ip6_config_get_num_nameservers (const NMIP6Config *config);
|
||||
const struct in6_addr *nm_ip6_config_get_nameserver (const NMIP6Config *config, guint i);
|
||||
|
||||
/* Domains */
|
||||
void nm_ip6_config_reset_domains (NMIP6Config *config);
|
||||
void nm_ip6_config_add_domain (NMIP6Config *config, const char *domain);
|
||||
void nm_ip6_config_del_domain (NMIP6Config *config, guint i);
|
||||
guint32 nm_ip6_config_get_num_domains (const NMIP6Config *config);
|
||||
guint nm_ip6_config_get_num_domains (const NMIP6Config *config);
|
||||
const char * nm_ip6_config_get_domain (const NMIP6Config *config, guint i);
|
||||
|
||||
/* Search lists */
|
||||
void nm_ip6_config_reset_searches (NMIP6Config *config);
|
||||
void nm_ip6_config_add_search (NMIP6Config *config, const char *search);
|
||||
void nm_ip6_config_del_search (NMIP6Config *config, guint i);
|
||||
guint32 nm_ip6_config_get_num_searches (const NMIP6Config *config);
|
||||
guint nm_ip6_config_get_num_searches (const NMIP6Config *config);
|
||||
const char * nm_ip6_config_get_search (const NMIP6Config *config, guint i);
|
||||
|
||||
/* DNS options */
|
||||
void nm_ip6_config_reset_dns_options (NMIP6Config *config);
|
||||
void nm_ip6_config_add_dns_option (NMIP6Config *config, const char *option);
|
||||
void nm_ip6_config_del_dns_option (NMIP6Config *config, guint i);
|
||||
guint32 nm_ip6_config_get_num_dns_options (const NMIP6Config *config);
|
||||
guint nm_ip6_config_get_num_dns_options (const NMIP6Config *config);
|
||||
const char * nm_ip6_config_get_dns_option (const NMIP6Config *config, guint i);
|
||||
|
||||
/* DNS priority */
|
||||
void nm_ip6_config_set_dns_priority (NMIP6Config *config, gint priority);
|
||||
gint nm_ip6_config_get_dns_priority (const NMIP6Config *config);
|
||||
|
||||
/* MSS */
|
||||
void nm_ip6_config_set_mss (NMIP6Config *config, guint32 mss);
|
||||
guint32 nm_ip6_config_get_mss (const NMIP6Config *config);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue