diff options
Diffstat (limited to 'libnm-core/nm-setting-ip-config.h')
| -rw-r--r-- | libnm-core/nm-setting-ip-config.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-ip-config.h b/libnm-core/nm-setting-ip-config.h index b7bb0215..84ce8465 100644 --- a/libnm-core/nm-setting-ip-config.h +++ b/libnm-core/nm-setting-ip-config.h @@ -92,6 +92,17 @@ void nm_ip_route_ref (NMIPRoute *route); void nm_ip_route_unref (NMIPRoute *route); gboolean nm_ip_route_equal (NMIPRoute *route, NMIPRoute *other); + +enum { + NM_IP_ROUTE_EQUAL_CMP_FLAGS_NONE = 0, + NM_IP_ROUTE_EQUAL_CMP_FLAGS_WITH_ATTRS = (1LL << 0), +}; + +NM_AVAILABLE_IN_1_10 +gboolean nm_ip_route_equal_full (NMIPRoute *route, + NMIPRoute *other, + guint cmp_flags); + NMIPRoute *nm_ip_route_dup (NMIPRoute *route); int nm_ip_route_get_family (NMIPRoute *route); @@ -131,6 +142,7 @@ gboolean nm_ip_route_attribute_validate (const char *name, gboolean *known, GError **error); +#define NM_IP_ROUTE_ATTRIBUTE_TABLE "table" #define NM_IP_ROUTE_ATTRIBUTE_SRC "src" #define NM_IP_ROUTE_ATTRIBUTE_FROM "from" #define NM_IP_ROUTE_ATTRIBUTE_TOS "tos" @@ -163,6 +175,7 @@ gboolean nm_ip_route_attribute_validate (const char *name, #define NM_SETTING_IP_CONFIG_GATEWAY "gateway" #define NM_SETTING_IP_CONFIG_ROUTES "routes" #define NM_SETTING_IP_CONFIG_ROUTE_METRIC "route-metric" +#define NM_SETTING_IP_CONFIG_ROUTE_TABLE "route-table" #define NM_SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES "ignore-auto-routes" #define NM_SETTING_IP_CONFIG_IGNORE_AUTO_DNS "ignore-auto-dns" #define NM_SETTING_IP_CONFIG_DHCP_HOSTNAME "dhcp-hostname" @@ -271,6 +284,9 @@ void nm_setting_ip_config_clear_routes (NMSettingIPConfig gint64 nm_setting_ip_config_get_route_metric (NMSettingIPConfig *setting); +NM_AVAILABLE_IN_1_10 +guint32 nm_setting_ip_config_get_route_table (NMSettingIPConfig *setting); + gboolean nm_setting_ip_config_get_ignore_auto_routes (NMSettingIPConfig *setting); gboolean nm_setting_ip_config_get_ignore_auto_dns (NMSettingIPConfig *setting); |