Re: make ipv6 work over wire too



since wireless NICs work fine without the patch, they are brought up
than changing the essid, while wired devices are up all the time to
check for plugged in cables, what about adding 
if (!nm_device_is_wireless (dev))
around the down/up, so only wired NICs get a changes to find IPv6
routers.

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  14 Dec 2004 16:01:30 -0000
@@ -1559,6 +1559,13 @@
        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_wireless (dev))
+       {
+               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]