mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-19 18:31:33 +00:00
Add new package which has scripts for ssid client ratelimiting. Adds rules for ssid ratelimiting and client ratimiting based on 'wireless' config file options 'drate'(ssid dl), 'urate'(ssid ul), 'cdrate'(client dl), and 'curate' (client ul). Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2018 rosysong@rosinson.com
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=nft-qos
|
|
PKG_VERSION:=1.0.6
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
PKG_MAINTAINER:=Rosy Song <rosysong@rosinson.com>
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/nft-qos
|
|
SECTION:=utils
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+nftables +kmod-nft-netdev +kmod-nft-bridge
|
|
TITLE:=QoS scripts over nftables
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/nft-qos/description
|
|
This package provides implementation for qos over nftables.
|
|
Currently, static/dynamic qos and traffic shaping are supported.
|
|
endef
|
|
|
|
define Package/nft-qos/conffiles
|
|
/etc/config/nft-qos
|
|
endef
|
|
|
|
define Build/Prepare
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/nft-qos/install
|
|
$(INSTALL_DIR) $(1)/lib/nft-qos
|
|
$(INSTALL_DATA) ./files/lib/* $(1)/lib/nft-qos/
|
|
chmod 0700 $(1)/lib/nft-qos/mac-rate.sh
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/nft-qos.config $(1)/etc/config/nft-qos
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/nft-qos.init $(1)/etc/init.d/nft-qos
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/dhcp
|
|
$(INSTALL_BIN) ./files/nft-qos-monitor.hotplug $(1)/etc/hotplug.d/dhcp/00-nft-qos-monitor
|
|
$(INSTALL_BIN) ./files/nft-qos-dynamic.hotplug $(1)/etc/hotplug.d/dhcp/01-nft-qos-dynamic
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,nft-qos))
|