// vim: sw=8 ts=8
char const *cvs_name = "$Name: $";
-char const *cvs_id_cli = "$Id: cli.c,v 1.64 2005/07/31 10:04:09 bodea Exp $";
+char const *cvs_id_cli = "$Id: cli.c,v 1.68 2005/11/14 20:19:08 bodea Exp $";
#include <stdio.h>
+#include <stddef.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/file.h>
switch (session[s].ppp.phase)
{
case Establish:
- cli_print(cli, "\tLCP state:\t%s", ppp_state(session[s].ppp.lcp));
+ cli_print(cli, "\t LCP state:\t%s", ppp_state(session[s].ppp.lcp));
break;
case Authenticate:
if (!show) continue;
if (!(p = strchr(m, '\n')))
- p = m + strlen(p);
+ p = m + strlen(m);
cli_error(cli, "\r%s-%u-%u %.*s",
debug_levels[(int)ringbuffer->buffer[i].level],
return CLI_OK;
}
- if (!memcmp(&ip_filters[filt].rules[i], rule, sizeof(*rule)))
+ if (!memcmp(&ip_filters[filt].rules[i], rule, offsetof(ip_filter_rulet, counter)))
return CLI_OK;
}
{
char const *r = show_access_list_rule(ip_filters[f].extended, rules);
if (rules->counter)
- cli_print(cli, "%s (%d match%s)", r,
+ cli_print(cli, "%s (%u match%s)", r,
rules->counter, rules->counter > 1 ? "es" : "");
else
cli_print(cli, "%s", r);