From patchwork Wed Jul 5 12:24:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Vandeputte X-Patchwork-Id: 1803628 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ferQjRIH; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=citymesh.com header.i=@citymesh.com header.a=rsa-sha256 header.s=google header.b=Vutwav0x; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QwzVm5j95z20ZQ for ; Wed, 5 Jul 2023 22:29:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UNdMbEdjUG/CHsvcT4hcwXxbtCIRbZ+AJ8Y/503o7+w=; b=ferQjRIHXtUyR3 1WamoyAIDVhip58ltQX8rsa+PB3bDuynZgPEaeYgWL/Pl0kTwOFBHRwMK6AUnL2cFaqIP33gpyx37 av/9x6Uin6yfoywhKwTwkNniOyQXYOCXNhte0lUrGVnlm42sG1ZdTgGap81+CDf6KT++X+WkhTf0i rVtS5yfjvhxti6mfyjkRVYttBbUgCxZmc3UVaYGItXc3J4a/6/tYfw44ZoN3WRqR2RBN/705srs5v m6SGYUrp/EdraC4N8zlpM2mrk5eUP+/vQTFr6yZspVyMEXE6CI2HUZ3C2GXQZYmsBcClZdVkJPjef ABIfCaZkFOjwk0QTnS+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qH1aH-00FsGV-07; Wed, 05 Jul 2023 12:26:13 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qH1aE-00FsEn-0k for openwrt-devel@lists.openwrt.org; Wed, 05 Jul 2023 12:26:11 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31297125334so599578f8f.0 for ; Wed, 05 Jul 2023 05:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citymesh.com; s=google; t=1688559960; x=1691151960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fpMY4ZtQBM0tNsjxtaQGo5axtuERJZ1n47vyvasqO5U=; b=Vutwav0xhcqq68SXejbiOABRskTB/f76RAQMdl69lbEczfJJwhNacTcNKGEH/bHj/9 FgKVDJcbME17wKXJYxG9zho0VYH1EyuFCQEzoHhu1FT2x3JS7JADIMN2I9+r4dmCkadf XF63Tm50uFA+aDMFnj+BoJLl86zhJFpvuo6S3OR0Ocu4Ji3CfjSKr/d2L716tNrDQ7+7 6TJtee966ga/X5ytn0JQOohGxoCquXe1zfWRBqFb7VgtmmeTWWCJik/CNdz50Fo2oxAk bw/KaXuwsHmO+U3hHQFUEb3+i52BRl3FeRqzZ4vE7t1l03q6Lzqo1TzoeKY7EXlYdOEH e14A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688559960; x=1691151960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fpMY4ZtQBM0tNsjxtaQGo5axtuERJZ1n47vyvasqO5U=; b=j19Jsw1LwQBcEM09Qg12bypW5Qyb/l4Nq8+WGgVqGB08/ICkO0tx5ksNpRcsATpH3W 7Zd9QXW9Sx5B0+t1zW+RO1g0FVIb1NS1VVAahULsPmxvqZ5tmo9ba6buM1+3bw5dNhe7 VMR6uz+D3uPKQqlG2yuy6xZvDU1ZiXp17zIaBWyGU6ylMzxs7xJ84RV3SUdPIzWs2Xxt VXUnjguGG93EwTmHqYedUycUbBmBKhcLMKjBdLkHW+Bt8T3Zp136JVa9YcvcfmGhxggH 646SMZHAqhlFKEvFR47cI6Ok0gK7rf2aKH/FsVg+JZ4/yx7osEo0vs5ntKC9L4l8w0Yy 8BaA== X-Gm-Message-State: ABy/qLYeQaUMVKCBpk4o6VH7JGi9SvYeKz3PaLO58ZJM3fjQNHtNxwou 7tsNzF3PB8Mt/03zhb/iudtZVRKDj9AVL0F3OXU= X-Google-Smtp-Source: APBJJlHt6OzozPfoAlL3cP7k3cLpDVeA4gDC5uSsyrYUoM6uqXjI00FvUnlfQRyuDXkXzQaclslj2g== X-Received: by 2002:adf:ea41:0:b0:314:3a69:2d76 with SMTP id j1-20020adfea41000000b003143a692d76mr2243771wrn.21.1688559960123; Wed, 05 Jul 2023 05:26:00 -0700 (PDT) Received: from localhost.localdomain ([31.31.140.89]) by smtp.gmail.com with ESMTPSA id 12-20020a05600c020c00b003f819faff24sm1992499wmi.40.2023.07.05.05.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 05:25:59 -0700 (PDT) From: Koen Vandeputte To: openwrt-devel@lists.openwrt.org Cc: Koen Vandeputte Subject: [PATCH] libnl: add support for cli Date: Wed, 5 Jul 2023 14:24:47 +0200 Message-Id: <20230705122447.2825792-1-koen.vandeputte@citymesh.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230705_052610_278595_D06C5C0D X-CRM114-Status: GOOD ( 10.28 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Some packages (like wavemon >= 0.9.4) depend on libnl-cli Add support for this part of the lib. libnl-cli itself depends on libnl-genl and libnl-nf On MIPS, this component adds 81kB Signed-off-by: Koen Vandeputte --- package/libs/libnl/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:42a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Some packages (like wavemon >= 0.9.4) depend on libnl-cli Add support for this part of the lib. libnl-cli itself depends on libnl-genl and libnl-nf On MIPS, this component adds 81kB Signed-off-by: Koen Vandeputte --- package/libs/libnl/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/package/libs/libnl/Makefile b/package/libs/libnl/Makefile index 56549dcc0a..f8c7437668 100644 --- a/package/libs/libnl/Makefile +++ b/package/libs/libnl/Makefile @@ -55,10 +55,16 @@ $(call Package/libnl/default) DEPENDS:=+libnl-route endef +define Package/libnl-cli +$(call Package/libnl/default) + TITLE:=CLI Netlink Library + DEPENDS:=+libnl-genl +libnl-nf +endef + define Package/libnl $(call Package/libnl/default) TITLE:=Full Netlink Library - DEPENDS:=+libnl-genl +libnl-route +libnl-nf + DEPENDS:=+libnl-genl +libnl-route +libnl-nf +libnl-cli endef define Package/libnl-core/description @@ -77,6 +83,10 @@ define Package/libnl-nf/description Netfilter Netlink Library Functions endef +define Package/libnl-cli/description + CLI Netlink Library Functions +endef + define Package/libnl/description Socket handling, connection management, sending and receiving of data, message construction and parsing, object caching system, etc. @@ -98,6 +108,7 @@ define Build/InstallDev $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-genl-3.so $(1)/usr/lib/libnl-genl.so $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so $(1)/usr/lib/libnl-nf.so $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so $(1)/usr/lib/libnl-route.so + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-cli-3.so $(1)/usr/lib/libnl-cli.so endef define Package/libnl-core/install @@ -120,6 +131,11 @@ define Package/libnl-nf/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so.* $(1)/usr/lib/ endef +define Package/libnl-cli/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-cli-3.so.* $(1)/usr/lib/ +endef + define Package/libnl/install : endef @@ -128,4 +144,5 @@ $(eval $(call BuildPackage,libnl-core)) $(eval $(call BuildPackage,libnl-genl)) $(eval $(call BuildPackage,libnl-route)) $(eval $(call BuildPackage,libnl-nf)) +$(eval $(call BuildPackage,libnl-cli)) $(eval $(call BuildPackage,libnl))