summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-31 20:31:53 +0200
committerOndrej Filip <feela@network.cz>2000-05-31 20:31:53 +0200
commit46962be628c1bd1d9c2badeea181ff6f87f0cb29 (patch)
treebfabfd08e2dbf15a7d82eaa0b0aa49a1b610f9dc /proto
parent3728267827e83bc095956b16256feae9e28adce7 (diff)
downloadbird-46962be628c1bd1d9c2badeea181ff6f87f0cb29.tar
bird-46962be628c1bd1d9c2badeea181ff6f87f0cb29.zip
Better debugging.
Safe neigh_list deleting.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 6e370f8..d0bd089 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -63,11 +63,11 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
void
downint(struct ospf_iface *ifa)
{
- struct ospf_neighbor *n;
+ struct ospf_neighbor *n,*nx;
struct proto *p=&ifa->proto->proto;
struct proto_ospf *po=ifa->proto;
- WALK_LIST(n,ifa->neigh_list)
+ WALK_LIST_DELSAFE(n,nx,ifa->neigh_list)
{
debug("%s: Removing neighbor %I\n", p->name, n->ip);
ospf_neigh_remove(n);
@@ -384,7 +384,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *iface)
{
if((ifa=find_iface((struct proto_ospf *)p, iface))!=NULL)
{
- debug(" OSPF: killing interface %s.\n", iface->name);
+ debug("%s: killing interface %s.\n", p->name, iface->name);
ospf_int_sm(ifa, ISM_DOWN);
}
}
@@ -393,7 +393,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *iface)
{
if((ifa=find_iface((struct proto_ospf *)p, iface))!=NULL)
{
- debug(" OSPF: changing MTU on interface %s.\n", iface->name);
+ debug("%s: changing MTU on interface %s.\n", p->name, iface->name);
/* FIXME: change MTU */
}
}