From patchwork Fri Jul 12 19:12:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Haelwenn (lanodan) Monnier" X-Patchwork-Id: 13732191 Received: from cloudsdale.the-delta.net.eu.org (cloudsdale.the-delta.net.eu.org [138.201.117.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D4531B95B for ; Fri, 12 Jul 2024 19:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=138.201.117.120 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720813144; cv=none; b=JaRudqt8qBWcZ6GHBgmhNGcHvVt3SUn/9J+j3HKmeKjri3z884rnNddisYx9GPutApeqnNC3tr7h2hAkGmz19SEHCw8DaXlBQpuNCOL6bjzEuHiohUj9lyA95WfAoQ41Avm6Qgn/BvfhRGbT1ifL2PjjCYsza9LlVDcQ097CqUg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720813144; c=relaxed/simple; bh=r4hqy74kp2e4+7UFw68jP6uRypswdxwFInMIMpWxXWQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rEyzgQFr3EK5w0QDHISO+QYq1Kwmd8+oYD1vGWwpCBYrB4OcpI5qPEGvEfSUUrVViJUBueyus6NeNN5kcUCFPcHqeGrf3SPPvtccO3kYHI81982rgUtnAXSUj3JBCDbm/hmXGhlbG/QxGEmUd3tkk40F+fAR/hs3kJo4nXzvglA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hacktivis.me; spf=pass smtp.mailfrom=hacktivis.me; arc=none smtp.client-ip=138.201.117.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hacktivis.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hacktivis.me Received: by cloudsdale.the-delta.net.eu.org (OpenSMTPD) with ESMTP id 2f67be6e; Fri, 12 Jul 2024 19:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=hacktivis.me; h=from:to :cc:date:message-id:mime-version:content-transfer-encoding; s= 20240308_115322; bh=r4hqy74kp2e4+7UFw68jP6uRypswdxwFInMIMpWxXWQ=; b= Y6LTlV81JXnRG23xnYKKjgCsrykv7VcGO9uaoxTI5XsGTHde7UdLo0X4uivb28HN dO4dJysmCqehSCT76rj97WI3Qnf6wOSatPeXVvxKc/KMU2UGMqwyTTsHTbilyqDB J5VsigwO6XUfUNOQ2qKkp5mH+Uv6Zg18lplle2mo1MhGCeqOWmnvXd38lPCyjSqL Ryf4/DeFeQ9n1RKsuApw2XkFgxcKtSyX0ZNUqn1lwwBCqV7Eh5yV52NxMeuTv4yc bYM9ljo/ltzmHuBDayUyc/uZ5IOFTumdPGPUGjXS6nYgpBuYjpiuAaOgiLy6ciSw 9UfuctH0c+Jz3bUHyUG3WfjTl0JRO+LW+b5Irqe5+8cIFuAZVBC4CFblgD9ft5sw m35hI+oG45kfayQToVYfCFQ0xu/0BGnU5MYj0Gr1frZb0kqvuTIuS18o7KJFO8zZ gSGPmdWuNRqe0iVhfB5CVe3u7nyRrqsADEx98sf0FtFg6iBW/65xktRw6fsxHwnL +dhUTRpHyxjYleTWwdf4rhfIiVuYnzAK4YoQiakW00HmmivNZX9+csqjtfJTn696 c0+ys1Haar1OR4k1OOeR8ueQJBP/2j0NlLJJoPH6AlgX/weMIfNpBQ1kaQDV5FWo EpvgvzO78K4WP89hZgySQmAApzioOILwC/aToBRjKik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=hacktivis.me; h=from:to:cc :date:message-id:mime-version:content-transfer-encoding; q=dns; s=20240308_115322; b=q2bWo+W+fc/ER2PodBo7yk5oz9+orsmmGCqWgpUeJg XxiND/vikIPgrsT4D4RHWceUxzq/jxVmmv4abV0ZUMNr+ONiqW3NhI0O1CGhTKZw rdDFeQ7SZbPCbbTfSlCVAsFy+ltuWaFqIP4AOIRfUtkwySx5gx0bChaAtWIB7seB i+Qiq0vvM3LKJ41u0kukYCy0WP/lzPW8T2VPtj1ZAP/XdGFMV0Cio3Pmjs19ySYK u78PhrGWcsyPS0U6b5b3MVwOC9ITBQNuj8zzTvAeGjAt3sK4Bu4JME3UY2Yllcmq QrVHxZdpzKuz81dMm/TxOChK4v1QORHQ0tQ+oZUWNL3Njtsjos/0mh2dQQDfmtHi +uDgpNe5t+HqX+b2cg1XvfPTY5md8bNSIzJZvC4eCoMMU2ADDSYoXag1OZXgGJiZ fWFqsi4NFNGEZFueaHVQFxSFObYmqsXj+DRTEF49jTGQY6MS1Y9fvwTU2h8zrXy1 fE225M65awL+gowtMNJUIDs32NPSd1tRKLW6l5wrxrG2Fg2Avn7+QFjV8vkcAyb/ StHsd6QHXj7LoJZuvwr78lhV/oSA2QjaOsJDsl+8OSoAvDrHC4j9/tZfTE9DanwO xW/VW8pVS/3/pZ6UfRGKs/NTopn1u99j+wujbd/AZhj0LLD8p7MmUmprTD72So33 o= Received: from localhost (cloudsdale.the-delta.net.eu.org [local]) by cloudsdale.the-delta.net.eu.org (OpenSMTPD) with ESMTPA id b2b745b0; Fri, 12 Jul 2024 19:12:11 +0000 (UTC) From: "Haelwenn (lanodan) Monnier" To: netdev@vger.kernel.org Cc: "Haelwenn (lanodan) Monnier" Subject: [PATCH 1/2] libnetlink.h: Add for htobe64 Date: Fri, 12 Jul 2024 21:12:08 +0200 Message-ID: <20240712191209.31324-1-contact@hacktivis.me> X-Mailer: git-send-email 2.44.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Required to build on musl (1.2.5) Signed-off-by: Haelwenn (lanodan) Monnier Reviewed-by: Alyssa Ross --- include/libnetlink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/libnetlink.h b/include/libnetlink.h index 30f0c2d..2b207e8 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h @@ -3,6 +3,7 @@ #define __LIBNETLINK_H__ 1 #include +#include #include #include #include From patchwork Fri Jul 12 19:12:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Haelwenn (lanodan) Monnier" X-Patchwork-Id: 13732192 Received: from cloudsdale.the-delta.net.eu.org (cloudsdale.the-delta.net.eu.org [138.201.117.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA170347B4 for ; Fri, 12 Jul 2024 19:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=138.201.117.120 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720813149; cv=none; b=EKvQrEkmtk5J24Z4QIuMKx1idAwlsQosJqSSqVCrG75IsMTPIumBettAw7EvEpwciLcid36YdWyytAKLV8v3KV1K2ueuf611iOvuTcSXeKdZcT1vXPDK8YoTshnAoPl0mDplhNt/Vz/4chedwDLm6eG/ZZBSHSrBFFRmW5oO2K8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720813149; c=relaxed/simple; bh=/dBCaLURWhpyD7gyix8erY0eaGdIjyIvFT3o+9Edet8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V6hwTTp/qpYvchNJdfDfu4pAkB3Kv8lqIgONCfeuDq/AHMFlX8IOD37NxCgOTdouk4SUlbyjG8RcKBzoE2UAnfKG2d7IOqhZR3P+xh0eZmd/BffFnBo5jo7/ZyfFLACo0NxaYawtWPu6UNlNKQ4L5mh0GCnPgf0sxGP16fZ5uHY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hacktivis.me; spf=pass smtp.mailfrom=hacktivis.me; arc=none smtp.client-ip=138.201.117.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hacktivis.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hacktivis.me Received: by cloudsdale.the-delta.net.eu.org (OpenSMTPD) with ESMTP id 0a910d95; Fri, 12 Jul 2024 19:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=hacktivis.me; h=from:to :cc:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20240308_115322; bh=/dBCaLURWhpyD7 gyix8erY0eaGdIjyIvFT3o+9Edet8=; b=WpjjcNSsCW6rVLn/1O5Auc2otoEDFw thrcdom6vDRSRvaEuQtpibu94dMopTmWuiSjfZjGFDzfD4KazF4QIU5WYRNNqRbH 1JZHgyrfVzHFv8e+cSrmNno26oMI69Uhyh/mdhisIqcKvYRaOQje5FkRcc/qN8Ae UGVhIeY3BDfa7D+z2ARnFCCk+JRAFepS9gnwtSk1Xwp+XY4hbtpcXJIGqAtGv6oA 52jnNidv782TkdK17fLq+Ic0+H7PQQFF9MzzHK4tS4rz/p/FYB/OU6c0D/BqLog/ 5rg6rpv4PMdjVDcjFaNACuRxjnfbZ+jr0JpQt5b5uYVWi0ExDp8esr9kvzN+9B16 i9mLFyAQb3ATK8oay6U93O4fjwTjJNKBWSZBl5SchZjkANdpc5GXPb+kv3Znv+P0 26ro4gWLG2VH6UGVdwZu9R1L91TEMGV0WoqUpCUhmp5ZFQiR8UQGlI1FWi8Xyg7V efMKVUi9kHj+wXxBis37FfDmLfxPvxHXKCwptDAptM165mliepDjzkl32URAwMb5 vwucoFzfM9U9DzT9qGpuACMlaEIVxOv7cbyJDyLkcNZzYqKPM5lhjn4CM5baFHqz 91CBPwetuKYTnJcOq7UWlKf6g7DYyULFK4poqX2fcKH17AkmJ/cp+B+vBIpTD1j6 mYimIxnVSpyoM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=hacktivis.me; h=from:to:cc :date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; q=dns; s=20240308_115322; b=QHBM+7aj uoD46yPPPOLHEq7DZw/GeOfv8o+oIcEsweXAGV2PEVbBRSavXGfPkZA4EIXzPAHN aH/rQ44Jz+SbZwp3GHAT4SscdeELpkUanNa4jjJtJ5CayeX2zS8r3pKhWEbc8wHj 1yP+1imx5wmyy023YmI2rVftb/eL6ej/93s1ICjcRpoP67/ps7g5h6CbLZGaRKlk nhyTuv53vV+5YVWb7seNuPNT+2Vey+uCPyvwAf44vdMCF3UEfEcoc+5N3UL5jknZ mk3QnGPvbq+QCrpancVNIsMRehNlJOb3bF/MiqzrwKvQfAUEEaWmkGGlJIvYsrpZ QHnuM1Xa9n5zph3kTtlWl0jFdJ3JAOdXH7JenoQ6AbDlAfmAOE1vdLLShwYDGTWV fuUGHSVbvqXSL2DbqWWOTQb1nlcXGEoUj9KjuwntblNpyIGP5x65VesGheLRYoQd Xo3G1Du9H0iuZWZSDYzsj684miRw0P8NI9qsQDntSv3TpcEDV3jiFHrl3engpumP yPAFDHgqQP0AHPi4pFvQQhWUvegnbAvErnPIyHCvjixuIhFcQ1jkiH2LZdnNhuAr N/z7v08ew7bLONvUmdKq9Qs4BefwpBFwPnb8fh/281uQlig67r+YFRJ5bRIlbPTK 1q4qe6udgv9R2g0u+Rwm0qlCT/J4/SBs4s4= Received: from localhost (cloudsdale.the-delta.net.eu.org [local]) by cloudsdale.the-delta.net.eu.org (OpenSMTPD) with ESMTPA id be45d66c; Fri, 12 Jul 2024 19:12:12 +0000 (UTC) From: "Haelwenn (lanodan) Monnier" To: netdev@vger.kernel.org Cc: "Haelwenn (lanodan) Monnier" Subject: [PATCH 2/2] arpd.c: Use names for struct msghdr initialisation Date: Fri, 12 Jul 2024 21:12:09 +0200 Message-ID: <20240712191209.31324-2-contact@hacktivis.me> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240712191209.31324-1-contact@hacktivis.me> References: <20240712191209.31324-1-contact@hacktivis.me> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fixes the following compiler error which is due to padding elements being present in musl (1.2.5), thankfully the struct element names are part of POSIX. arpd.c:442:3: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion] 442 | NULL, 0, | ^~~~ Signed-off-by: Haelwenn (lanodan) Monnier --- misc/arpd.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/misc/arpd.c b/misc/arpd.c index 3185620..724d387 100644 --- a/misc/arpd.c +++ b/misc/arpd.c @@ -437,10 +437,13 @@ static void get_kern_msg(void) struct iovec iov; char buf[8192]; struct msghdr msg = { - (void *)&nladdr, sizeof(nladdr), - &iov, 1, - NULL, 0, - 0 + .msg_name = (void *)&nladdr, + .msg_namelen = sizeof(nladdr), + .msg_iov = &iov, + .msg_iovlen = 1, + .msg_control = NULL, + .msg_controllen = 0, + .msg_flags = 0 }; iov.iov_base = buf;