]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ospf6d] GNU Zebra 3563: Fix as-external forwarding address
authorPaul Jakma <paul.jakma@sun.com>
Mon, 15 May 2006 10:47:53 +0000 (10:47 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Mon, 15 May 2006 10:47:53 +0000 (10:47 +0000)
2006-03-01  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>

* ospf6_asbr.c: fix bug of needless forwarding address
* ospf6d.h: version 0.9.7r

ospf6d/ChangeLog
ospf6d/ospf6_asbr.c
ospf6d/ospf6d.h

index 01064aa5bd61341c94a0854c00d29eb46f554dd4..6a0bb5e1c5a9478b0e0e403542ad683ae1bf13f8 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-01  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>
+
+       * ospf6_asbr.c: fix bug of needless forwarding address
+       * ospf6d.h: version 0.9.7r
+
 2006-02-22  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>
 
        * valgrind check and memory fix
index 7980a643dbf299e9895c8be3f71b87ed196f90f5..1b6ccbd999a1961e02d0e3a5b181ffdf8ef15c0d 100644 (file)
@@ -59,6 +59,7 @@ ospf6_as_external_lsa_originate (struct ospf6_route *route)
   char buffer[OSPF6_MAX_LSASIZE];
   struct ospf6_lsa_header *lsa_header;
   struct ospf6_lsa *old, *lsa;
+  struct ospf6_external_info *info = route->route_option;
 
   struct ospf6_as_external_lsa *as_external_lsa;
   char buf[64];
@@ -91,7 +92,7 @@ ospf6_as_external_lsa_originate (struct ospf6_route *route)
     UNSET_FLAG (as_external_lsa->bits_metric, OSPF6_ASBR_BIT_E);
 
   /* forwarding address */
-  if (! IN6_IS_ADDR_UNSPECIFIED (&route->nexthop[0].address))
+  if (! IN6_IS_ADDR_UNSPECIFIED (&info->forwarding))
     SET_FLAG (as_external_lsa->bits_metric, OSPF6_ASBR_BIT_F);
   else
     UNSET_FLAG (as_external_lsa->bits_metric, OSPF6_ASBR_BIT_F);
@@ -120,7 +121,7 @@ ospf6_as_external_lsa_originate (struct ospf6_route *route)
   /* Forwarding address */
   if (CHECK_FLAG (as_external_lsa->bits_metric, OSPF6_ASBR_BIT_F))
     {
-      memcpy (p, &route->nexthop[0].address, sizeof (struct in6_addr));
+      memcpy (p, &info->forwarding, sizeof (struct in6_addr));
       p += sizeof (struct in6_addr);
     }
 
index 1dfd96b501aa5b179e651c26338f559248a8fb97..2790fc29131a1425e16534b0b67d3549322f4178 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef OSPF6D_H
 #define OSPF6D_H
 
-#define OSPF6_DAEMON_VERSION    "0.9.7q"
+#define OSPF6_DAEMON_VERSION    "0.9.7r"
 
 /* global variables */
 extern int errno;