network-manager-applet r717 - trunk/src/connection-editor



Author: dcbw
Date: Thu May  8 00:54:28 2008
New Revision: 717
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=717&view=rev

Log:
Always send gateway

Modified:
   trunk/src/connection-editor/page-ip4.c

Modified: trunk/src/connection-editor/page-ip4.c
==============================================================================
--- trunk/src/connection-editor/page-ip4.c	(original)
+++ trunk/src/connection-editor/page-ip4.c	Thu May  8 00:54:28 2008
@@ -542,6 +542,7 @@
 		char *str_gateway = NULL;
 		struct in_addr tmp_addr, tmp_netmask, tmp_gateway = { 0 };
 		GArray *addr;
+		guint32 empty_val = 0;
 		
 		gtk_tree_model_get (model, &tree_iter, COL_ADDRESS, &str_address, -1);
 		gtk_tree_model_get (model, &tree_iter, COL_NETMASK, &str_netmask, -1);
@@ -571,6 +572,8 @@
 		g_array_append_val (addr, tmp_netmask.s_addr);
 		if (tmp_gateway.s_addr)
 			g_array_append_val (addr, tmp_gateway.s_addr);
+		else
+			g_array_append_val (addr, empty_val);
 		g_ptr_array_add (addresses, addr);
 
 next:



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