[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-dev
Subject:    [quagga-dev 5461] [PATCH 5/6] Test for ZEBRA_INTERFACE_UNNUMBERED in
From:       Joakim Tjernlund <Joakim.Tjernlund () transmode ! se>
Date:       2008-06-03 17:41:40
Message-ID: 1212514901-29168-6-git-send-email-Joakim.Tjernlund () transmode ! se
[Download RAW message or body]


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..66c6402 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->flags & 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.1

_______________________________________________
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