From: Ondrej Zajicek Date: Sun, 24 Nov 2013 11:50:53 +0000 (+0100) Subject: Minor changes to default router ID calculation. X-Git-Tag: v1.4.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4d179f2c2f213c9190ff4d05979dc33f2c5b2c7;p=thirdparty%2Fbird.git Minor changes to default router ID calculation. --- diff --git a/nest/iface.c b/nest/iface.c index b4ab70c3a..298698a75 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -600,22 +600,10 @@ if_choose_router_id(struct iface_patt *mask, u32 old_id) if (a->scope <= SCOPE_LINK) continue; - /* FIXME: This should go away */ - if (a->flags & IA_PEER) - continue; - - /* FIXME: This should go away too */ - if (!mask && (a != i->addr)) - continue; - /* Check pattern if specified */ if (mask && !iface_patt_match(mask, i, a)) continue; - /* FIXME: This should go away too */ - if ((i->flags & IF_IGNORE) && !mask) - continue; - /* No pattern or pattern matched */ if (!b || ipa_to_u32(a->ip) < ipa_to_u32(b->ip)) b = a;