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



commit 01030b18b9ddb7e9985fdd8112a82d43c03b9b44
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 4c8e361..fa5e28b 100644
--- a/src/connection-editor/page-ppp.c
+++ b/src/connection-editor/page-ppp.c
@@ -288,6 +288,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]