From 920fefa8e2c7660422a23d79fa45f7cd488e5198 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 9 Jun 2011 17:45:33 +0200 Subject: modem: new property to allow specifying longer timeouts when configuring IP This IpTimeout property will be read by NetworkManager, and used as the time to wait for pppd to establish the IP configuration. --- src/mm-modem.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mm-modem.c') diff --git a/src/mm-modem.c b/src/mm-modem.c index a78587b2..adfbeb26 100644 --- a/src/mm-modem.c +++ b/src/mm-modem.c @@ -860,6 +860,16 @@ mm_modem_init (gpointer g_iface) MM_MODEM_IP_METHOD_PPP, G_PARAM_READWRITE)); + g_object_interface_install_property + (g_iface, + g_param_spec_uint (MM_MODEM_IP_TIMEOUT, + "IP timeout", + "Maximum time to wait for a successful IP establishment, " + "when PPP is used. Modems with special needs will set this " + "property to a value greater than 0", + 0, G_MAXUINT32, 0, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + g_object_interface_install_property (g_iface, g_param_spec_boolean (MM_MODEM_VALID, -- cgit v1.2.3-70-g09d2