diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-01 17:53:06 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-01 17:53:06 +0200 |
commit | a783e259d8d710208280126177487cc790418515 (patch) | |
tree | 961bb067c8e7e9c608b839f7abc1128eedec89a3 /proto/ospf/ospf.c | |
parent | b594ad238692738352cd8827d71038a356b0d5a5 (diff) | |
download | bird-a783e259d8d710208280126177487cc790418515.tar bird-a783e259d8d710208280126177487cc790418515.zip |
Cisco-like "show ospf neighbors" implemented.
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r-- | proto/ospf/ospf.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 92bb670..b8f7b98 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -316,3 +316,19 @@ struct protocol proto_ospf = { get_attr: ospf_get_attr, get_status: ospf_get_status }; + +void +ospf_sh_neigh(struct proto *p) +{ + struct ospf_iface *ifa; + struct ospf_neighbor *n; + struct proto_ospf *po=(struct proto_ospf *)p; + + cli_msg(-1013,"%s:",p->name); + cli_msg(-1013,"%-12s\t%3s\t%-15s\t%-5s\t%-12s\t%-10s","Router ID","Pri", + " State", "DTime", "Router IP", "Interface"); + WALK_LIST(ifa,po->iface_list) + WALK_LIST(n, ifa->neigh_list) + ospf_sh_neigh_info(n); + cli_msg(0,""); +} |