diff options
Diffstat (limited to 'src/backends/NetworkManagerSuSE.c')
| -rw-r--r-- | src/backends/NetworkManagerSuSE.c | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/src/backends/NetworkManagerSuSE.c b/src/backends/NetworkManagerSuSE.c index 6c8ec1a5..12618532 100644 --- a/src/backends/NetworkManagerSuSE.c +++ b/src/backends/NetworkManagerSuSE.c @@ -19,7 +19,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * (C) Copyright 2004 Red Hat, Inc. + * (C) Copyright 2004 - 2012 Red Hat, Inc. * (C) Copyright 2005-2006 SuSE GmbH */ @@ -27,36 +27,26 @@ #include <config.h> #endif -#include <stdio.h> -#include <string.h> -#include <stdlib.h> - #include "NetworkManagerGeneric.h" -#include "nm-system.h" #include "NetworkManagerUtils.h" #include "nm-logging.h" -/* - * nm_system_enable_loopback - * - * Bring up the loopback interface - * - */ -void nm_system_enable_loopback (void) +void nm_backend_enable_loopback (void) { nm_generic_enable_loopback (); } -/* - * nm_system_update_dns - * - * Invalidate the nscd host cache, if it exists, since - * we changed resolv.conf. - * - */ -void nm_system_update_dns (void) +void nm_backend_update_dns (void) +{ + /* Invalidate the nscd host cache, if it exists, since we changed resolv.conf */ + if (g_file_test ("/usr/sbin/nscd", G_FILE_TEST_IS_EXECUTABLE)) { + nm_log_info (LOGD_DNS, "Clearing nscd hosts cache."); + nm_spawn_process ("/usr/sbin/nscd -i hosts"); + } +} + +int nm_backend_ipv6_use_tempaddr (void) { - nm_log_info (LOGD_DNS, "Clearing nscd hosts cache."); - nm_spawn_process ("/usr/sbin/nscd -i hosts"); + return nm_generic_ipv6_use_tempaddr (); } |