projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43d0275
)
Show full radius id in show radius
author
fred_nerk
<fred_nerk>
Thu, 26 Aug 2004 04:38:40 +0000
(
04:38
+0000)
committer
fred_nerk
<fred_nerk>
Thu, 26 Aug 2004 04:38:40 +0000
(
04:38
+0000)
cli.c
patch
|
blob
|
history
diff --git
a/cli.c
b/cli.c
index
b0c86c5
..
0653794
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-2,7
+2,7
@@
// vim: sw=4 ts=8
char const *cvs_name = "$Name: $";
// vim: sw=4 ts=8
char const *cvs_name = "$Name: $";
-char const *cvs_id_cli = "$Id: cli.c,v 1.1
1 2004/08/13 00:02:5
0 fred_nerk Exp $";
+char const *cvs_id_cli = "$Id: cli.c,v 1.1
2 2004/08/26 04:38:4
0 fred_nerk Exp $";
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
@@
-885,7
+885,7
@@
int cmd_show_radius(struct cli_def *cli, char *command, char **argv, int argc)
NULL);
}
NULL);
}
- cli_print(cli, "%6s%
5s%6s%9s%9s%4s
", "Radius", "Sock", "State", "Session", "Retry", "Try");
+ cli_print(cli, "%6s%
6s%5s%6s%9s%9s%4s", "ID
", "Radius", "Sock", "State", "Session", "Retry", "Try");
time(&time_now);
time(&time_now);
@@
-901,7
+901,8
@@
int cmd_show_radius(struct cli_def *cli, char *command, char **argv, int argc)
if (!show_all && radius[i].state == RADIUSNULL) continue;
if (!show_all && radius[i].state == RADIUSNULL) continue;
- cli_print(cli, "%6d%5d%6s%9d%9u%4d",
+ cli_print(cli, "%6d%6d%5d%6s%9d%9u%4d",
+ i,
i >> RADIUS_SHIFT,
i & RADIUS_MASK,
states[radius[i].state],
i >> RADIUS_SHIFT,
i & RADIUS_MASK,
states[radius[i].state],