On Thu, 10 Feb 2011 00:21:59 +0800
Patrick Coleman <[email protected]> wrote:

>| On Wed, Feb 9, 2011 at 11:42 PM, Manuel Guesdon
>| <[email protected]> wrote:
>| > Hi,
>| >
>| > On Tue, 9 Nov 2010 14:04:22 +0100
>| > Jan Johansson <[email protected]> wrote:
>| > ...
>| >>| I am now trying to replicate this setup for IPv6 using
>| >>| ospf6d but it seems that it will only announce addresses on
>| >>| active interfaces.
>| >
>| > FYI, having the same problem (on passive emX; I haven't tried on carp),
I've
>| > applied your patch:
>| > B http://patrick.ld.net.au/ospf6d-fix-passive-interfaces-mk2.patch
>| > which solve this problem but create a new one: loopback (lo1 in my case)
is
>| > no more announced.
>|
>| Oops. I do intend to fix this; things have just been busy recently.
>| Hopefully soon.

Thx !
I've made a (very) quik & dirty change in rde.c:
--- rde.c.patched       Wed Feb  9 13:48:20 2011
+++ rde.c       Wed Feb  9 17:50:04 2011
@@ -1476,13 +1476,15 @@
                 * This will not advertise backup carp interfaces (which have
a link
                 * state of down).
                 */
-               if (!(LINK_STATE_IS_UP(iface->linkstate)) ||
+         if (iface->media_type!=IFT_LOOP
+             &&(
+                   !(LINK_STATE_IS_UP(iface->linkstate)) ||
                    !(iface->flags & IFF_UP) ||
                    ((iface->state & IF_STA_DOWN) &&
                    !((iface->media_type == IFT_CARP) ||
                    (iface->cflags & F_IFACE_PASSIVE))) ||
                    ((iface->linkstate == LINK_STATE_UNKNOWN) &&
-                   (iface->media_type == IFT_CARP))) {
+                    (iface->media_type == IFT_CARP)))) {
                        log_debug("orig_intra_lsa_rtr: area %s, interface %s:
not including"
                            " in LSA", inet_ntoa(area->id), iface->name);
                        continue;

which bring back the loopback announcement but it's really dirty :-)


Manuel

Reply via email to