From 6d160f30d56df6433ea30e504e0dfeb626d52aa5 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 5 Nov 2013 18:47:53 +0400 Subject: pppoe: show 'starting' in statistics --- accel-pppd/ctrl/pppoe/cli.c | 1 + accel-pppd/ctrl/pppoe/pppoe.h | 1 + 2 files changed, 2 insertions(+) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/pppoe/cli.c b/accel-pppd/ctrl/pppoe/cli.c index c9d67228..4f712b8b 100644 --- a/accel-pppd/ctrl/pppoe/cli.c +++ b/accel-pppd/ctrl/pppoe/cli.c @@ -89,6 +89,7 @@ help: static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt, void *client) { cli_send(client, "pppoe:\r\n"); + cli_sendv(client, " starting: %u\r\n", stat_starting); cli_sendv(client, " active: %u\r\n", stat_active); cli_sendv(client, " delayed PADO: %u\r\n", stat_delayed_pado); cli_sendv(client, " recv PADI: %lu\r\n", stat_PADI_recv); diff --git a/accel-pppd/ctrl/pppoe/pppoe.h b/accel-pppd/ctrl/pppoe/pppoe.h index 248ea409..faed20c1 100644 --- a/accel-pppd/ctrl/pppoe/pppoe.h +++ b/accel-pppd/ctrl/pppoe/pppoe.h @@ -95,6 +95,7 @@ extern char *conf_service_name; extern char *conf_ac_name; extern char *conf_pado_delay; +extern unsigned int stat_starting; extern unsigned int stat_active; extern unsigned int stat_delayed_pado; extern unsigned long stat_PADI_recv; -- cgit v1.2.3