https://bugzilla.novell.com/show_bug.cgi?id=462876
User xavier@wflogistics.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462876#c16
--- Comment #16 from Xavier Callejas 2009-02-25 14:49:00 MST ---
I FIX IT! :D
Now I can use NetworkManager to connect to Internet using my HUWAEI USB GSM
modem.
The problem wasn't related to KDE nor GNOME.
The problem was the timeout for waiting the ppp connection start,
NetworkManager closed the connection prematurely (maybe my ISP take to much to
assigning me a TCP auto. configuration)
In the upstream source code the timeout is for just 10 seconds ! but I think I
need to wait about 25 seconds to receive the TCP config.
I also need to pass the parameter:
ipcp-max-failure 30
to pppd command to accept the DNS servers configuration from my ISP.
This is the patch:
--- NetworkManager-0.7.0/src/ppp-manager/nm-ppp-manager.c 2008-11-07
05:03:23.000000000 -0600
+++ NetworkManager-0.7.0-patched/src/ppp-manager/nm-ppp-manager.c 2009-02-25
01:57:15.000000000 -0600
@@ -65,7 +65,7 @@
#include "nm-ppp-manager-glue.h"
#define NM_PPPD_PLUGIN PLUGINDIR "/nm-pppd-plugin.so"
-#define NM_PPP_WAIT_PPPD 15000 /* 15 seconds */
+#define NM_PPP_WAIT_PPPD 1200000 /* 120 seconds */
#define PPP_MANAGER_SECRET_TRIES "ppp-manager-secret-tries"
typedef struct {
@@ -712,6 +712,7 @@
static gboolean
pppd_timed_out (gpointer data)
{
+ nm_info ("se ha incrementado el tiempo de espera para ppp");
NMPPPManager *manager = NM_PPP_MANAGER (data);
nm_warning ("Looks like pppd didn't initialize our dbus module");
@@ -834,6 +835,9 @@
nm_cmd_line_add_string (cmd, "ipparam");
nm_cmd_line_add_string (cmd, priv->dbus_path);
+ nm_cmd_line_add_string (cmd, "ipcp-max-failure");
+ nm_cmd_line_add_string (cmd, "30");
+
nm_cmd_line_add_string (cmd, "plugin");
nm_cmd_line_add_string (cmd, NM_PPPD_PLUGIN);
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.