summaryrefslogtreecommitdiffstats
path: root/admin_client.c
diff options
context:
space:
mode:
authorSuper User2007-08-11 15:57:58 +0200
committerSuper User2007-08-11 15:57:58 +0200
commitcbe9d412a37e75b61cc74e8a65b0293923eb5160 (patch)
tree8aaf96ba18a5cbc2f5aed9fc0f16c87d7f5559b4 /admin_client.c
parentfixes, debugging for usleep problems. (diff)
downloadlcr-cbe9d412a37e75b61cc74e8a65b0293923eb5160.tar.gz
lcr-cbe9d412a37e75b61cc74e8a65b0293923eb5160.tar.xz
lcr-cbe9d412a37e75b61cc74e8a65b0293923eb5160.zip
added exporting/importing bchannel stacks to the remote application
Diffstat (limited to 'admin_client.c')
-rw-r--r--admin_client.c35
1 files changed, 32 insertions, 3 deletions
diff --git a/admin_client.c b/admin_client.c
index 6bf964c..dac2b78 100644
--- a/admin_client.c
+++ b/admin_client.c
@@ -717,12 +717,41 @@ char *admin_state(int sock, char *argv[])
if (m[i].u.i.l2link && m[i].u.i.block==0)
{
ptmp:
- color((m[i].u.i.busy[j])?yellow:blue);
- addstr((m[i].u.i.busy[j])?"busy":"idle");
+ switch(m[i].u.i.busy[j])
+ {
+ case B_STATE_IDLE:
+ color(blue);
+ addstr("idle ");
+ break;
+ case B_STATE_ACTIVATING:
+ color(yellow);
+ addstr("act'ing ");
+ break;
+ case B_STATE_ACTIVE:
+ color(green);
+ addstr("busy ");
+ break;
+ case B_STATE_DEACTIVATING:
+ color(yellow);
+ addstr("dact'ing");
+ break;
+ case B_STATE_EXPORTING:
+ color(yellow);
+ addstr("exp'ing ");
+ break;
+ case B_STATE_REMOTE:
+ color(green);
+ addstr("remote ");
+ break;
+ case B_STATE_IMPORTING:
+ color(yellow);
+ addstr("imp'ing ");
+ break;
+ }
} else
{
color(red);
- addstr("blk ");
+ addstr("blocked ");
}
if (m[i].u.i.port[j])
{