mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
432a25db72
95ca1c3 nat46-core: ignore IPv4 options when translating packets 39778c2 add a module argument to ignore TOS translate for IPv4 9a36ee1 add a module argument to ignore TOS translate for IPv4 79190a8 add a module argument to ignore TOS translate for IPv4 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
36 lines
940 B
Makefile
36 lines
940 B
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=nat46
|
|
|
|
PKG_MIRROR_HASH:=c26b8c60aa991a087011b8b6492e43a6749f0a5d9dc79ffcfd352da5fa20b78d
|
|
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
|
|
PKG_SOURCE_DATE:=2022-03-30
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=95ca1c3b99376da2d0306919f2df4a8d3c9bb78b
|
|
|
|
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/nat46
|
|
DEPENDS:=@IPV6
|
|
TITLE:=Stateless NAT46 translation kernel module
|
|
SECTION:=kernel
|
|
SUBMENU:=Network Support
|
|
FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
|
|
AUTOLOAD:=$(call AutoLoad,33,nat46)
|
|
endef
|
|
|
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
|
|
|
define Build/Compile
|
|
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)/nat46/modules" \
|
|
MODFLAGS="-DMODULE -mlong-calls" \
|
|
EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,nat46))
|