[network-manager-applet] ppp: set default values of lcp-echo-failure and lcp-echo-interval (bgo #663970)



commit 11c19e391e836de4fe122e62e22a0fcf5ce76a66
Author: JiÅÃ KlimeÅ <jklimes redhat com>
Date:   Wed Dec 7 17:59:34 2011 +0100

    ppp: set default values of lcp-echo-failure and lcp-echo-interval (bgo #663970)
    
    in ce_page_ppp_new()
    
    lcp-echo-failure: 5
    lcp-echo-interval: 30

 src/connection-editor/page-ppp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/connection-editor/page-ppp.c b/src/connection-editor/page-ppp.c
index a17ee8f..19f4e29 100644
--- a/src/connection-editor/page-ppp.c
+++ b/src/connection-editor/page-ppp.c
@@ -292,6 +292,10 @@ ce_page_ppp_new (NMConnection *connection,
 	priv->setting = (NMSettingPPP *) nm_connection_get_setting (connection, NM_TYPE_SETTING_PPP);
 	if (!priv->setting) {
 		priv->setting = NM_SETTING_PPP (nm_setting_ppp_new ());
+		g_object_set (G_OBJECT (priv->setting),
+		              NM_SETTING_PPP_LCP_ECHO_FAILURE, 5,
+		              NM_SETTING_PPP_LCP_ECHO_INTERVAL, 30,
+		              NULL);
 		nm_connection_add_setting (connection, NM_SETTING (priv->setting));
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]