mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-18 18:01:23 +00:00
This patch backports some fixes in netfilter ratelimiting kernel module for wifi6 (linux v4.4.60). These fixes are ported from until following commit id 6e323887565fe8a23c6c85faf9e395a24affd05c in the mainline kernel. Also, fix bugs in client ratelimiting. Per Client Ratelimiting will be used henceforth instead of Per ssid Ratelimiting. Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
30 lines
419 B
Bash
Executable File
30 lines
419 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
#
|
|
# Copyright (C) 2018 rosysong@rosinson.com
|
|
#
|
|
|
|
. /lib/nft-qos/core.sh
|
|
. /lib/nft-qos/ssid_ratelimit.sh
|
|
|
|
START=99
|
|
USE_PROCD=1
|
|
|
|
service_triggers() {
|
|
|
|
procd_open_validate
|
|
procd_close_validate
|
|
}
|
|
|
|
start_service() {
|
|
config_load nft-qos
|
|
qosdef_flush_ssid_ratelimit
|
|
qosdef_init_ssid_ratelimit
|
|
qosdef_init_done
|
|
qosdef_start
|
|
}
|
|
|
|
stop_service() {
|
|
qosdef_flush_ssid_ratelimit
|
|
qosdef_clean_cache
|
|
}
|