summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-02 11:31:20 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-02 11:31:20 +0200
commitbed417288e989c48a1362bb1177f436a2e2f9f4f (patch)
tree3fb727a0e2b0be0cfecef14f30b57134eeb3348b /proto
parent126683feeda03ffb5a4ce23611e59a4598382d49 (diff)
downloadbird-bed417288e989c48a1362bb1177f436a2e2f9f4f.tar
bird-bed417288e989c48a1362bb1177f436a2e2f9f4f.zip
Minor fixes to previous patches.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c20
-rw-r--r--proto/ospf/packet.c2
2 files changed, 11 insertions, 11 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 83d591b..0416355 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -662,31 +662,31 @@ ospf_ifa_notify(struct proto *p, unsigned flags, struct ifa *a)
WALK_LIST(ac, cf->area_list)
{
u32 found_new[8] = {};
- struct iface_patt *p;
+ struct iface_patt *pt;
- WALK_LIST(p, ac->patt_list)
+ WALK_LIST(pt, ac->patt_list)
{
- if (iface_patt_match(p, i, a))
+ if (iface_patt_match(pt, a->iface, a))
{
- struct ospf_iface_patt *ip = (struct ospf_iface_patt *) p;
+ struct ospf_iface_patt *ipt = (struct ospf_iface_patt *) pt;
/* If true, we already assigned that IID and we skip
this to implement first-match behavior */
- if (iflag_test(found_new, ip->instance_id))
+ if (iflag_test(found_new, ipt->instance_id))
continue;
/* If true, we already assigned that in a different area,
we log collision */
- if (iflag_test(found_all, ip->instance_id))
+ if (iflag_test(found_all, ipt->instance_id))
{
log(L_WARN "%s: Interface %s (IID %d) matches for multiple areas",
- p->name, a->iface->name, ip->instance_id);
+ p->name, a->iface->name, ipt->instance_id);
continue;
}
- iflag_set(found_all, ip->instance_id);
- iflag_set(found_new, ip->instance_id);
- ospf_iface_new(po, a->iface, a, ac, ip);
+ iflag_set(found_all, ipt->instance_id);
+ iflag_set(found_new, ipt->instance_id);
+ ospf_iface_new(po, a->iface, a, ac, ipt);
}
}
}
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index dd8fa5f..b47cbfc 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -348,7 +348,7 @@ ospf_rx_hook(sock *sk, int size)
if ((areaid == ifa->oa->areaid)
#ifdef OSPFv3
- && (ps->instance_id != ifa->instance_id)
+ && (ps->instance_id == ifa->instance_id)
#endif
)
{