diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-05 05:06:53 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-05 05:06:53 +0000 |
commit | ac272c0067cc7f04e74f0418bc0c9ce63a657175 (patch) | |
tree | aeaa97d93d7dbc3bbdc2961b4b610c662cc3770f /proto/ospf/topology.c | |
parent | dc2548d2ccc45722f0dcaa861dd3b45a397d2cac (diff) |
Bug in LSA origination.
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r-- | proto/ospf/topology.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 22ebc5e8..d2a244c9 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -98,7 +98,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p) } } break; - case OSPF_IT_BCAST: /*FIXME Go on */ + case OSPF_IT_BCAST: case OSPF_IT_NBMA: if(ifa->state==OSPF_IS_WAITING) { @@ -120,8 +120,8 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p) if(((ifa->state==OSPF_IS_DR) && (j==1)) || (k==1)) { ln->type=LSART_NET; - ln->id=ifa->drid; - ln->data=ipa_to_u32(ifa->drip); + ln->id=ipa_to_u32(ifa->drip); + ln->data=ipa_to_u32(ifa->iface->addr->ip); ln->metric=ifa->cost; ln->notos=0; } |