All die() renamed to bug().
This commit is contained in:
parent
80787d418b
commit
fef1badfcf
5 changed files with 13 additions and 13 deletions
|
@ -133,7 +133,7 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: /* Ignore it */
|
default: /* Ignore it */
|
||||||
die("Bug in dbdes sending");
|
bug("Bug in dbdes sending");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -357,7 +357,7 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
defaut:
|
defaut:
|
||||||
die("%s: Received dbdes from %I in unknown state.", p->name, n->ip);
|
bug("%s: Received dbdes from %I in undefined state.", p->name, n->ip);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,7 @@ ospf_int_sm(struct ospf_iface *ifa, int event)
|
||||||
schedule_rt_lsa(ifa->oa);
|
schedule_rt_lsa(ifa->oa);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
die("%s: ISM - Unknown event?",p->name);
|
bug("%s: ISM - Unknown event?",p->name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -176,7 +176,7 @@ htonlsab(void *h, void *n, u8 type, u16 len)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: die("(hton): Unknown LSA");
|
default: bug("(hton): Unknown LSA");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ ntohlsab(void *n, void *h, u8 type, u16 len)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: die("(ntoh): Unknown LSA");
|
default: bug("(ntoh): Unknown LSA");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ lsrr_timer_hook(timer *timer)
|
||||||
|
|
||||||
WALK_SLIST(SNODE en,n->lsrtl)
|
WALK_SLIST(SNODE en,n->lsrtl)
|
||||||
{
|
{
|
||||||
if((SNODE en)->next==(SNODE en)) die("BUGGGGGG");
|
if((SNODE en)->next==(SNODE en)) bug("RTList is cycled");
|
||||||
llsh=sl_alloc(upslab);
|
llsh=sl_alloc(upslab);
|
||||||
llsh->lsh.id=en->lsa.id;
|
llsh->lsh.id=en->lsa.id;
|
||||||
llsh->lsh.rt=en->lsa.rt;
|
llsh->lsh.rt=en->lsa.rt;
|
||||||
|
|
|
@ -176,7 +176,7 @@ can_do_adj(struct ospf_neighbor *n)
|
||||||
switch(ifa->state)
|
switch(ifa->state)
|
||||||
{
|
{
|
||||||
case OSPF_IS_DOWN:
|
case OSPF_IS_DOWN:
|
||||||
die("%s: Iface %s in down state?", p->name, ifa->iface->name);
|
bug("%s: Iface %s in down state?", p->name, ifa->iface->name);
|
||||||
break;
|
break;
|
||||||
case OSPF_IS_WAITING:
|
case OSPF_IS_WAITING:
|
||||||
DBG("%s: Neighbor? on iface %s\n",p->name, ifa->iface->name);
|
DBG("%s: Neighbor? on iface %s\n",p->name, ifa->iface->name);
|
||||||
|
@ -191,12 +191,12 @@ can_do_adj(struct ospf_neighbor *n)
|
||||||
if(n->state>=NEIGHBOR_2WAY) i=1;
|
if(n->state>=NEIGHBOR_2WAY) i=1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
die("%s: Iface %s in unknown state?",p->name, ifa->iface->name);
|
bug("%s: Iface %s in unknown state?",p->name, ifa->iface->name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
die("%s: Iface %s is unknown type?",p->name, ifa->iface->name);
|
bug("%s: Iface %s is unknown type?",p->name, ifa->iface->name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DBG("%s: Iface %s can_do_adj=%d\n",p->name, ifa->iface->name,i);
|
DBG("%s: Iface %s can_do_adj=%d\n",p->name, ifa->iface->name,i);
|
||||||
|
@ -249,7 +249,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event)
|
||||||
tm_start(n->lsrr_timer,n->ifa->rxmtint);
|
tm_start(n->lsrr_timer,n->ifa->rxmtint);
|
||||||
tm_start(n->ackd_timer,n->ifa->rxmtint/2);
|
tm_start(n->ackd_timer,n->ifa->rxmtint/2);
|
||||||
}
|
}
|
||||||
else die("NEGDONE and I'm not in EXSTART?");
|
else bug("NEGDONE and I'm not in EXSTART?");
|
||||||
break;
|
break;
|
||||||
case INM_EXDONE:
|
case INM_EXDONE:
|
||||||
neigh_chstate(n,NEIGHBOR_LOADING);
|
neigh_chstate(n,NEIGHBOR_LOADING);
|
||||||
|
@ -293,7 +293,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event)
|
||||||
neigh_chstate(n,NEIGHBOR_INIT);
|
neigh_chstate(n,NEIGHBOR_INIT);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
die("%s: INM - Unknown event?",p->name);
|
bug("%s: INM - Unknown event?",p->name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -358,7 +358,7 @@ bdr_election(struct ospf_iface *ifa, struct proto *p)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if((tmp=find_neigh(ifa,ndrid))==NULL)
|
if((tmp=find_neigh(ifa,ndrid))==NULL)
|
||||||
die("Error in DR election.");
|
bug("Error in DR election.");
|
||||||
ifa->drid=ndrid;
|
ifa->drid=ndrid;
|
||||||
ifa->drip=tmp->ip;
|
ifa->drip=tmp->ip;
|
||||||
}
|
}
|
||||||
|
@ -371,7 +371,7 @@ bdr_election(struct ospf_iface *ifa, struct proto *p)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if((tmp=find_neigh(ifa,nbdrid))==NULL)
|
if((tmp=find_neigh(ifa,nbdrid))==NULL)
|
||||||
die("Error in BDR election.");
|
bug("Error in BDR election.");
|
||||||
ifa->bdrid=nbdrid;
|
ifa->bdrid=nbdrid;
|
||||||
ifa->bdrip=tmp->ip;
|
ifa->bdrip=tmp->ip;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue