Page 1 of 1

Bandwidth usage/distribution not working

Posted: Thu Aug 11, 2016 3:31 pm
by dubarry
Hello!

I just built Gargoyle from the latest git repository, after making a few tweaks to qosmon.c. I also had to edit the qosmon makefiles to get it to build (see viewtopic.php?f=7&t=7739&p=32574&hilit=utils.h#p33618).

The new image flashed fine, and everything seems to be working except Bandwidth Usage and B/W Distribution, which are just completely blank. Any ideas?

Re: Bandwidth usage/distribution not working

Posted: Thu Aug 11, 2016 4:41 pm
by Lantis
Why are you editing those files? The source compiles fine on my machine without modification.

Re: Bandwidth usage/distribution not working

Posted: Thu Aug 11, 2016 5:07 pm
by dubarry
I'm editing qosmon.c because I wanted to disable the ping entitlement to just use the pinglimit I enter, remove the minimum link limit to allow it to go below 15% of the max, and to prevent it from going idle to keep it active at all times. I live in the country and have a very inconsistent LTE internet connection, and I'm seeing if these changes make it work a bit better for my situation.

I had to edit the makefiles, because it wouldn't build otherwise. It built fine for me before I edited qosmon.c, but after I made the edits (commenting out two lines, editing one other), I got this error:

Code: Select all

utils.c:(.text.format_host+0x162): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
qosmon.o: In function `main':
qosmon.c:(.text.startup+0xde): warning: gethostbyname is obsolescent, use getnameinfo() instead.
collect2: error: ld returned 1 exit status
make[5]: *** [qosmon] Error 1
Editing the makefiles as Optimus suggested here (viewtopic.php?f=7&t=7739&p=32574&hilit=utils.h#p33618) got it to build though. However, now the graphs aren't working.

I noticed the following error in the log:

Code: Select all

Thu Aug 11 15:19:41 2016 daemon.err uhttpd[1380]: iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory
Looks like some other have had this too (viewtopic.php?f=8&t=7176&start=40#p37343). I'm running TL-WR1043ND v1.

Re: Bandwidth usage/distribution not working

Posted: Thu Aug 11, 2016 6:00 pm
by dubarry
More precisely, the error from starting bwmon_gargoyle is:

Code: Select all

root@Gargoyle:/etc/init.d# /etc/init.d/bwmon_gargoyle start
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
root@Gargoyle:/etc/init.d# /etc/init.d/bwmon_gargoyle start
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Couldn't load match `bandwidth':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

Re: Bandwidth usage/distribution not working

Posted: Thu Aug 11, 2016 6:08 pm
by Lantis
Which exact build version did you try?
You've failed to compile any and all of the netfilter modules that gargoyle requires.

Exact git version please.

Re: Bandwidth usage/distribution not working

Posted: Thu Aug 11, 2016 11:25 pm
by dubarry
This is the first time I've ever used git, so forgive my ineptitude. But I cloned it yesterday 8/10/2016 with the command from the documentation page:

Code: Select all

git clone git://gargoyle-router.com/gargoyle.git
I just looked at the repository at https://www.gargoyle-router.com/gargoyle, and it looks like I have the changes from the latest revision ffb37376 listed on the front page. However, if I click view all revisions, it doesn't seem I have any of the changes made after that (e.g. 9e74df36).

Does this mean I'm on version ffb37376?

Re: Bandwidth usage/distribution not working

Posted: Fri Aug 12, 2016 2:05 am
by Lantis
No need to apologise :)

It looks like you're on the right version.
When you start a build, if you watch carefully you should see it do some netfilter integration. It kind of seems like this bit failed.

I'll try and find the kernel modules and where they reside on the router so you can see if they exist.