From de677ffd0e12f966c6d871e1343ccd5c517ad44c Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 23 May 2013 21:48:42 +0400 Subject: shaper: fixed 'shaper restore' command --- accel-pppd/accel-ppp.conf.5 | 4 ++-- accel-pppd/shaper/shaper.c | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/accel-pppd/accel-ppp.conf.5 b/accel-pppd/accel-ppp.conf.5 index 0518042e..dd0d2553 100644 --- a/accel-pppd/accel-ppp.conf.5 +++ b/accel-pppd/accel-ppp.conf.5 @@ -596,8 +596,8 @@ If specified and greated then zero pppd_module will produce verbose logging. .br Configuration of chap-secrets module. .TP -.BI "gw-ip-address=" x.x.x.x -Specifies address to use as local address of ppp interfaces if chap-secrets is used for IP address assignment. +.BI "gw-ip-address=" x.x.x.x[/mask] +Specifies address to use as local address of ppp interfaces if chap-secrets is used for IP address assignment. Mask is used for IPoE. .TP .BI "chap-secrets=" file Specifies alternate chap-secrets file location (default is /etc/ppp/chap-secrets). diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 5e6b576c..34a0988c 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -546,9 +546,6 @@ static int shaper_restore_exec(const char *cmd, char * const *f, int f_cnt, void { struct shaper_pd_t *pd; int all, found = 0;; - int *ptr = 0; - - *ptr = 1; if (f_cnt != 3) return CLI_CMD_SYNTAX; -- cgit v1.2.3