From d306ac633ad3ee6bcb3104e1e33eeaf3976541e4 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 7 Apr 2016 12:22:44 +0200 Subject: [PATCH] platform: add NM_PLATFORM_NETNS_SUPPORT_DEFAULT (cherry picked from commit d6b3081f7ba625cc18cf4f077534e93c94ab7ae1) --- src/platform/nm-platform.c | 2 +- src/platform/nm-platform.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 07ec4cf0b3..69b0d420ca 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -4261,7 +4261,7 @@ nm_platform_class_init (NMPlatformClass *platform_class) g_object_class_install_property (object_class, PROP_NETNS_SUPPORT, g_param_spec_boolean (NM_PLATFORM_NETNS_SUPPORT, "", "", - FALSE, + NM_PLATFORM_NETNS_SUPPORT_DEFAULT, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h index 10fe282db0..9f055b042c 100644 --- a/src/platform/nm-platform.h +++ b/src/platform/nm-platform.h @@ -40,6 +40,8 @@ #define NM_IS_PLATFORM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_PLATFORM)) #define NM_PLATFORM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_PLATFORM, NMPlatformClass)) +#define NM_PLATFORM_NETNS_SUPPORT_DEFAULT FALSE + /******************************************************************/ #define NM_PLATFORM_NETNS_SUPPORT "netns-support"