aboutsummaryrefslogtreecommitdiff
path: root/net/nft-qos/files/lib
Commit message (Collapse)AuthorAge
* nft-qos: fix monitor duplicatesImran Khan2021-12-17
| | | | | | | | nft command syntax is incorrect rearrange parameter order Signed-off-by: Imran Khan <gururug@gmail.com>
* nft-qos: simplify ifname retrievalEtienne Champetier2021-09-16
| | | | | | | | network_get_device should be enough, and since https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=4b9a67362d70c544b85078b8d5c661f43f7472d9 uci network config interface sections use 'device' instead of 'ifname', rendering the fallback useless Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* nft-qos: support mac address based speed limitTong Zhang2020-08-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes it possible to configure and limit per-client internet speed based on MAC address and it can work with SQM. This feature is what OpenWRT currently lacks. This patch is largely based on static.sh and the configuration file is similar to original nft-qos. New configuration options and examples are listed below config default 'default' option limit_mac_enable '1' config client option drunit 'kbytes' option urunit 'kbytes' option hostname 'tv-box' option macaddr 'AB:CD:EF:01:23:45' option drate '1000' option urate '50' config client option drunit 'kbytes' option urunit 'kbytes' option hostname 'my-pc' option macaddr 'AB:CD:EF:01:23:46' option drate '3000' option urate '2000' limit_mac_enable - enable rate limit based on MAC address drunit - download rate unit urunit - upload rate unit macaddr - client MAC address drate - download rate urate - upload rate Signed-off-by: Tong Zhang <ztong0001@gmail.com>
* nft-qos: fix missing double semicolon in caseRosy Song2019-03-10
| | | | Signed-off-by: Rosy Song <rosysong@rosinson.com>
* nft-qos: Update init scriptJeffery To2019-02-12
| | | | | | | | | | | This replaces the use of uci_validate_section() with uci_load_validate(), which removes the need to declare local variables for every config option. This also adds a validate section to service_triggers(), and fixes some variable name typos in qosdef_init_static(). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* nft-qos: replace input chain with prerouting for monitor and dynamic QoS as wellRosy Song2018-11-12
| | | | Signed-off-by: Rosy Song <rosysong@rosinson.com>
* nft-qos: use prerouting chain rather than inputRosy Song2018-11-10
| | | | | | | | | | | Using the input chain can only limit the upload rate in local network. Since to do the limit rate on both native and remote, we have to replace the input hook with prerouting. Signed-off-by: Rosy Song <rosysong@rosinson.com> (Added Makefile version bump) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* nft-qos: add new packageRosy Song2018-11-06
This is the nftables implementation for qos on OpenWrt, Currently, it has below features: * Static QoS : setting limit rate for devices or global network. * Dynamic/Auto QoS : setting limit rate according to the network bandwidth and adjust itself automatically (hotplug event). * Traffic Priority : this feature is like traffic shaping under tc, it uses ingress hook to handle to packets here. Signed-off-by: Rosy Song <rosysong@rosinson.com>