Is it possible to manually edit the values in the bandwith usage table?
The values are stored in bin files, so a text editor is not an optionb.
I found the commands bw_get and bw_set, but that seems not to be very clear if that's their purpose, or how to use them.
TIA
Is it allowed to manually edit the Bandwidth Usage Table?
Moderator: Moderators
-
- Posts: 122
- Joined: Mon Jun 09, 2014 12:53 pm
Re: Is it allowed to manually edit the Bandwidth Usage Table?
Yes that is what they are used for, but no it isn't supposed to be user friendly.
You would need to craft a very specific binary file in order to do this, which is well beyond the scope of what this forum can assist with.
You need a complete understanding of the save_history_to_file function in ipt_bwctl. This is used by bw_get, which is of course the inverse of bw_set.
Reading one by hand is incredibly slow and painful. I just tried it out of interest and there are bits that i don't understand completely either.
You also need to keep in mind the endianness of your router, and also the fact that ip addresses in the file appear to be stored in network byte order.
You would need to craft a very specific binary file in order to do this, which is well beyond the scope of what this forum can assist with.
You need a complete understanding of the save_history_to_file function in ipt_bwctl. This is used by bw_get, which is of course the inverse of bw_set.
Reading one by hand is incredibly slow and painful. I just tried it out of interest and there are bits that i don't understand completely either.
You also need to keep in mind the endianness of your router, and also the fact that ip addresses in the file appear to be stored in network byte order.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
-
- Posts: 122
- Joined: Mon Jun 09, 2014 12:53 pm
Re: Is it allowed to manually edit the Bandwidth Usage Table?
Ok, I'll give up 
In any case, thanks a lot for your answer.
I wish you a nice day.

In any case, thanks a lot for your answer.
I wish you a nice day.