make ipv6 work over wire too



with the recent changes of the dhcp subsystem, ipv6 only works
on wireless networks. 
attached is a small patch to get an ipv6 address over wired interfaces
too.

j
Index: src/NetworkManagerDevice.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/NetworkManagerDevice.c,v
retrieving revision 1.68
diff -u -r1.68 NetworkManagerDevice.c
--- src/NetworkManagerDevice.c	5 Dec 2004 21:28:41 -0000	1.68
+++ src/NetworkManagerDevice.c	9 Dec 2004 13:52:13 -0000
@@ -1559,6 +1559,11 @@
 	g_return_val_if_fail (dev != NULL, FALSE);
 
 	nm_system_delete_default_route ();
+	/* This will assigne an IPv6 address, if a Router ADVertisement Daemon is pressent */
+	if (nm_device_is_up (dev))
+		nm_device_bring_down (dev);
+	nm_device_bring_up (dev);
+
 	if (nm_device_config_get_use_dhcp (dev))
 	{
 		int		err;


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