[openwrt/openwrt] kernel/modules: add kmod-inet-diag package

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 13 12:53:42 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/efc8aff62cb244583a14c30f8d099103b75ced1d

commit efc8aff62cb244583a14c30f8d099103b75ced1d
Author: Tianling Shen <cnsztl at immortalwrt.org>
AuthorDate: Wed Mar 9 10:35:04 2022 +0800

    kernel/modules: add kmod-inet-diag package
    
    Add option to compile kmod-inet-diag, support for INET (TCP, DCCP, etc)
    socket monitoring interface used by native Linux tools such as ss.
    
    Signed-off-by: Tianling Shen <cnsztl at immortalwrt.org>
---
 package/kernel/linux/modules/netsupport.mk | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 92ff194a62..fd9051586a 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -1295,6 +1295,31 @@ endef
 $(eval $(call KernelPackage,netlink-diag))
 
 
+define KernelPackage/inet-diag
+  SUBMENU:=$(NETWORK_SUPPORT_MENU)
+  TITLE:=INET diag support for ss utility
+  KCONFIG:= \
+	CONFIG_INET_DIAG \
+	CONFIG_INET_TCP_DIAG \
+	CONFIG_INET_UDP_DIAG \
+	CONFIG_INET_RAW_DIAG \
+	CONFIG_INET_DIAG_DESTROY=n
+  FILES:= \
+	$(LINUX_DIR)/net/ipv4/inet_diag.ko \
+	$(LINUX_DIR)/net/ipv4/tcp_diag.ko \
+	$(LINUX_DIR)/net/ipv4/udp_diag.ko \
+	$(LINUX_DIR)/net/ipv4/raw_diag.ko
+  AUTOLOAD:=$(call AutoLoad,31,inet_diag tcp_diag udp_diag raw_diag)
+endef
+
+define KernelPackage/inet-diag/description
+Support for INET (TCP, DCCP, etc) socket monitoring interface used by
+native Linux tools such as ss.
+endef
+
+$(eval $(call KernelPackage,inet-diag))
+
+
 define KernelPackage/wireguard
   SUBMENU:=$(NETWORK_SUPPORT_MENU)
   TITLE:=WireGuard secure network tunnel




More information about the lede-commits mailing list