network-manager-pptp r31 - in trunk: . src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-pptp r31 - in trunk: . src
- Date: Tue, 17 Feb 2009 20:22:13 +0000 (UTC)
Author: dcbw
Date: Tue Feb 17 20:22:13 2009
New Revision: 31
URL: http://svn.gnome.org/viewvc/network-manager-pptp?rev=31&view=rev
Log:
2009-02-17 Dan Williams <dcbw redhat com>
* src/nm-pptp-pppd-plugin.c
- (nm_ip_up): set MTU to 1400, which is what Windows XP/Vista currently
use for PPTP MTU
* src/nm-pptp-service.c
- (construct_pppd_args): send 'noauth' since for the moment there's no
way we could possibly authenticate the PPTP server
Modified:
trunk/ChangeLog
trunk/src/nm-pptp-pppd-plugin.c
trunk/src/nm-pptp-service.c
Modified: trunk/src/nm-pptp-pppd-plugin.c
==============================================================================
--- trunk/src/nm-pptp-pppd-plugin.c (original)
+++ trunk/src/nm-pptp-pppd-plugin.c Tue Feb 17 20:22:13 2009
@@ -210,6 +210,9 @@
g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_DNS, val);
}
+ /* Default MTU to 1400, which is also what Windows XP/Vista use */
+ g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_MTU, uint_to_gvalue (1400));
+
dbus_g_proxy_call_no_reply (proxy, "SetIp4Config",
DBUS_TYPE_G_MAP_OF_VARIANT, hash, G_TYPE_INVALID,
G_TYPE_INVALID);
Modified: trunk/src/nm-pptp-service.c
==============================================================================
--- trunk/src/nm-pptp-service.c (original)
+++ trunk/src/nm-pptp-service.c Tue Feb 17 20:22:13 2009
@@ -727,6 +727,9 @@
g_ptr_array_add (args, (gpointer) g_strdup ("noipdefault"));
g_ptr_array_add (args, (gpointer) g_strdup ("nodefaultroute"));
+ /* Don't need to auth the PPTP server */
+ g_ptr_array_add (args, (gpointer) g_strdup ("noauth"));
+
if (priv->service)
service_priv = NM_PPTP_PPP_SERVICE_GET_PRIVATE (priv->service);
if (service_priv && strlen (service_priv->username)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]