X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/659c46ff4fa1e17c5a7661110206d38734b0e600..f6f41eb77779fd7d961a704e5071dde8b7e4f835:/cli.c?ds=sidebyside diff --git a/cli.c b/cli.c index b4f578d..86751ea 100644 --- a/cli.c +++ b/cli.c @@ -2,7 +2,7 @@ // vim: sw=8 ts=8 char const *cvs_name = "$Name: $"; -char const *cvs_id_cli = "$Id: cli.c,v 1.36 2004-11-29 06:30:05 bodea Exp $"; +char const *cvs_id_cli = "$Id: cli.c,v 1.38 2004-12-01 02:51:06 bodea Exp $"; #include #include @@ -1003,7 +1003,7 @@ static int cmd_show_radius(struct cli_def *cli, char *command, char **argv, int NULL); } - cli_print(cli, "%6s%6s%5s%6s%9s%9s%4s", "ID", "Radius", "Sock", "State", "Session", "Retry", "Try"); + cli_print(cli, "%6s%7s%5s%6s%9s%9s%4s", "ID", "Radius", "Sock", "State", "Session", "Retry", "Try"); time(&time_now); @@ -1019,7 +1019,7 @@ static int cmd_show_radius(struct cli_def *cli, char *command, char **argv, int if (!show_all && radius[i].state == RADIUSNULL) continue; - cli_print(cli, "%6d%6d%5d%6s%9d%9u%4d", + cli_print(cli, "%6d%7d%5d%6s%9d%9u%4d", i, i >> RADIUS_SHIFT, i & RADIUS_MASK, @@ -2688,7 +2688,7 @@ ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char * if (a < argc && MATCH("fragments", argv[a])) { - if (rule.src_ports.op || rule.dest_ports.op || rule.tcp_flag_op) + if (rule.src_ports.op || rule.dst_ports.op || rule.tcp_flag_op) { cli_print(cli, "Can't specify \"fragments\" on rules with layer 4 matches"); return NULL;