summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-05-23 21:48:42 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-05-23 21:48:42 +0400
commitde677ffd0e12f966c6d871e1343ccd5c517ad44c (patch)
tree5ab925afd7c9b5b382543b8c3b1b90156d99f86f
parent2a9676f4663a3332fd02ed05035cac1c47d181f3 (diff)
downloadaccel-ppp-de677ffd0e12f966c6d871e1343ccd5c517ad44c.tar.gz
accel-ppp-de677ffd0e12f966c6d871e1343ccd5c517ad44c.zip
shaper: fixed 'shaper restore' command
-rw-r--r--accel-pppd/accel-ppp.conf.54
-rw-r--r--accel-pppd/shaper/shaper.c3
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;