Browse Source

Merge pull request #7398 from rosysong/nft-qos

nft-qos: replace input chain with prerouting for monitor and dynamic
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
6c8980fae7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      net/nft-qos/Makefile
  2. +2
    -2
      net/nft-qos/files/lib/dynamic.sh
  3. +2
    -2
      net/nft-qos/files/lib/monitor.sh

+ 1
- 1
net/nft-qos/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=nft-qos
PKG_VERSION:=1.0.1
PKG_VERSION:=1.0.2
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0


+ 2
- 2
net/nft-qos/files/lib/dynamic.sh View File

@ -56,7 +56,7 @@ qosdef_flush_dynamic() {
# init dynamic qos
qosdef_init_dynamic() {
local dynamic_bw_up dynamic_bw_down limit_enable limit_type
local hook_ul="input" hook_dl="postrouting"
local hook_ul="prerouting" hook_dl="postrouting"
uci_validate_section nft-qos default default \
'limit_enable:bool:0' \
@ -79,7 +79,7 @@ qosdef_init_dynamic() {
[ -z "$NFT_QOS_HAS_BRIDGE" ] && {
hook_ul="postrouting"
hook_dl="input"
hook_dl="prerouting"
}
qosdef_appendx "table $NFT_QOS_INET_FAMILY nft-qos-dynamic {\n"


+ 2
- 2
net/nft-qos/files/lib/monitor.sh View File

@ -26,11 +26,11 @@ qosdef_monitor_del() { # <mac> <ip> <hostname>
# init qos monitor
qosdef_init_monitor() {
local hook_ul="input" hook_dl="postrouting"
local hook_ul="prerouting" hook_dl="postrouting"
[ -z "$NFT_QOS_HAS_BRIDGE" ] && {
hook_ul="postrouting"
hook_dl="input"
hook_dl="prerouting"
}
nft add table $NFT_QOS_INET_FAMILY nft-qos-monitor


Loading…
Cancel
Save