Page 1 of 1

custom attributes

Posted: 30 Jan 2017, 11:18
by mlemaitre
Hi,

I'm trying to use the build-in shaper with custom attributes WISPr-Bandwidth-Max-Down and WISPr-Bandwidth-Max-Up from freeradius wisp dictionary.
In accel-ppp.conf, I set attr-down to WISPr-Bandwidth-Max-Down and attr-up to WISPr-Bandwidth-Max-Up, as in the wiki, but when I restart the daemon, I get this error in the emerg log:

shaper: incorrect attribute(s), tbf disabled...

looking at the code, it looks to me like it expects attr-down and up to be integers:

Code: Select all

                if (conf_attr_up <= 0 || conf_attr_down <= 0) {
                        log_emerg("shaper: incorrect attribute(s), tbf disabled...\n");
                        return;
where am I wrong, and how should I set the shaper up ?

Thanks,

Mat

Re: custom attributes

Posted: 30 Jan 2017, 12:09
by Dmitry
hi
did you also specify vendor=WISPr ?

Re: custom attributes

Posted: 30 Jan 2017, 12:27
by mlemaitre
hi,

nope.
I just tried, and the message is gone.
However, how can I check if the shaper is in place ?
I tried "tc qdisc show dev ppp0", but it only shows a fifo, is it attached to an other interface ?

thanks,

Re: custom attributes

Posted: 30 Jan 2017, 13:25
by Dmitry
check logs with verbose=1 and level=4

Re: custom attributes

Posted: 30 Jan 2017, 13:49
by mlemaitre
well, it looks good :

info: ppp0: shaper: installed shaper 6144/256 (Kbit)

but I found that I have an other problem:

warn: shaper: requested 'htb' upstream limiter, but no 'ifb' specified, falling back to police...

and if I try to uncomment ifb=ifb0, then the daemon doesn't start at all.

Re: custom attributes

Posted: 12 Sep 2017, 12:24
by TeCHNoiD
Check ifb driver included in the kernel.