diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-05-15 10:47:53 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-05-15 10:47:53 +0000 |
commit | 0b26f81bf9e81be0f65787c48061709427c70d10 (patch) | |
tree | e10561c1d301e78de8561f26123687def19c0a46 /ospf6d/ospf6_asbr.c | |
parent | cf1ce250d20003ae94c835e73e95e7442d7a5b53 (diff) |
[ospf6d] GNU Zebra 3563: Fix as-external forwarding address
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
Diffstat (limited to 'ospf6d/ospf6_asbr.c')
-rw-r--r-- | ospf6d/ospf6_asbr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 7980a643..1b6ccbd9 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -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); } |