[prev in list] [next in list] [prev in thread] [next in thread]
List: quagga-dev
Subject: [quagga-dev 5563] Re: [PATCH 09/11] Test for
From: Joakim Tjernlund <joakim.tjernlund () transmode ! se>
Date: 2008-07-03 14:10:36
Message-ID: 1215094236.6205.105.camel () gentoo-jocke ! transmode ! se
[Download RAW message or body]
On Wed, 2008-07-02 at 15:51 +0200, Joakim Tjernlund wrote:
> In lsa_link_ptop_set() and add ifindex to LSA if set.
>
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> ---
> ospfd/ospf_lsa.c | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
OOPS use ->status instead of ->flags
>From 3b58dbfe181361e1902b8bc2e32c699d6274c0ce Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Date: Tue, 3 Jun 2008 19:07:49 +0200
Subject: [PATCH] Test for ZEBRA_INTERFACE_UNNUMBERED.
In lsa_link_ptop_set() and add ifindex to LSA if set.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
ospfd/ospf_lsa.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index 243928f..50cc20c 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -557,9 +557,13 @@ lsa_link_ptop_set (struct stream *s, struct ospf_interface *oi)
if ((nbr = ospf_nbr_lookup_ptop (oi)))
if (nbr->state == NSM_Full)
{
+ id = oi->address->u.prefix4;
/* For unnumbered point-to-point networks, the Link Data field
should specify the interface's MIB-II ifIndex value. */
- links += link_info_set (s, nbr->router_id, oi->address->u.prefix4,
+ if (oi->ifp->status & ZEBRA_INTERFACE_UNNUMBERED)
+ id.s_addr = oi->ifp->ifindex;
+
+ links += link_info_set (s, nbr->router_id, id,
LSA_LINK_TYPE_POINTOPOINT, 0, cost);
}
--
1.5.5.4
_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic