mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Better chstate dumping.
This commit is contained in:
parent
284c43ff66
commit
8914e37dc0
@ -8,14 +8,18 @@
|
|||||||
|
|
||||||
#include "ospf.h"
|
#include "ospf.h"
|
||||||
|
|
||||||
|
char *ospf_is[]={ "down", "loop", "waiting", "point-to-point", "drother",
|
||||||
|
"backup", "dr" };
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
iface_chstate(struct ospf_iface *ifa, u8 state)
|
iface_chstate(struct ospf_iface *ifa, u8 state)
|
||||||
{
|
{
|
||||||
struct proto *p;
|
struct proto *p;
|
||||||
|
|
||||||
p=(struct proto *)(ifa->proto);
|
p=(struct proto *)(ifa->proto);
|
||||||
debug("%s: Changing state of iface: %s from %u into %u.\n",
|
debug("%s: Changing state of iface: %s from \"%s\" into \"%s\".\n",
|
||||||
p->name, ifa->iface->name, ifa->state, state);
|
p->name, ifa->iface->name, ospf_is[ifa->state], ospf_is[state]);
|
||||||
ifa->state=state;
|
ifa->state=state;
|
||||||
if(ifa->iface->flags & IF_MULTICAST)
|
if(ifa->iface->flags & IF_MULTICAST)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user