X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=lcradmin.c;h=1df16c597358d0666abdd9265232b9497edb9e7e;hp=fbd0015a5980a9881ed67f6e3608409a1b39ad91;hb=ff4d197d5ecb2cb29a55f78b260ab387e3afc80d;hpb=d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4 diff --git a/lcradmin.c b/lcradmin.c index fbd0015..1df16c5 100644 --- a/lcradmin.c +++ b/lcradmin.c @@ -679,8 +679,11 @@ char *admin_state(int sock, char *argv[]) color((m[i].u.i.l2link)?green:red); addstr((m[i].u.i.l2link)?" L2 UP":" L2 down"); } - color((m[i].u.i.l1link)?green:blue); - addstr((m[i].u.i.l1link)?" L1 ACTIVE":" L1 inactive"); + color((m[i].u.i.l1link > 0)?green:blue); + if (m[i].u.i.l1link < 0) + addstr(" L1 unknown"); + else + addstr((m[i].u.i.l1link)?" L1 ACTIVE":" L1 inactive"); if (m[i].u.i.los) { color(red); @@ -736,6 +739,8 @@ char *admin_state(int sock, char *argv[]) SPRINT(buffer,"S%2d: ", j+1+(j>=15)); else SPRINT(buffer,"B%2d: ", j+1); + if (m[i].u.i.mode[j] == B_MODE_HDLC) + SCAT(buffer,"HDLC "); addstr(buffer); switch(m[i].u.i.busy[j]) {