IPv6 in NetworkManager
- From: j bootlab org
- To: Dan Williams <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: IPv6 in NetworkManager
- Date: Wed, 22 Dec 2004 16:25:38 +0100
hi,
caused anger again to plug in a wire and loose the ipv6 connection,
it works nice with wireless networks, but does not with wired NICs.
attached patch will down/up wired NICs to let them get a IPv6 address
from a Router ADVertisement Daemon. I understand that this could
cause problems with some wireless NICs, but since this only applies for
wired NICs, it should be fine.
j
Index: src/NetworkManagerDevice.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/NetworkManagerDevice.c,v
retrieving revision 1.73
diff -u -r1.73 NetworkManagerDevice.c
--- src/NetworkManagerDevice.c 21 Dec 2004 06:49:21 -0000 1.73
+++ src/NetworkManagerDevice.c 22 Dec 2004 15:12:24 -0000
@@ -1898,6 +1898,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 (do_only_autoip)
{
success = nm_device_do_autoip (dev);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]