From patchwork Mon Nov 30 15:26:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5820 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp13133091lad; Mon, 30 Nov 2026 07:26:33 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErG9Dy74XsXqx5iy2s6Lw91v9cDp6KIiu0hvfb+NJTcYw6mCL6kAoJA5MHA0dgCjjPj5TKlf4815sgM=@openvpn.net X-Received: by 2002:a17:90b:4c07:b0:3b4:f92:ade7 with SMTP id 98e67ed59e1d1-3b41cb20eb8mr35606622a91.52.1796052393024; Mon, 30 Nov 2026 07:26:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796052393; cv=none; d=google.com; s=arc-20260327; b=fP7zuTd6/YAWJkqruMUjsJoTlSvBXiOITdZIqXa6+qWrW3CUehgcR0U6XaYGKFTQQL LIaE6A3nccpkAXpMhJ8bgbrX0V/Sr3q1dEWzodnHe4nIHE0MIkQmjvIBBhY/mEU3m0Gu m8Uo7zcdC0kCnFKnk3GSVcLK7RcaJ0uoc1fBQNsYgOO3ra2Bnh6UhWovBoZ8z/rb6/eZ t2LQQR75eMA4jVJSPpE9gUXxruLFrDMPefg0mimStCWAoh83WGW0ku2luD81vIwbzhY8 9UTThZV58IP3Ys4KUVJpWWIRYs2eBjfE3624DvbmvZtb6RqQsVS6Gv1uXoe6whJB3NJ1 s5FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=2jZH2u6rsD7O6QK41pGtvpX266t0KKPN8CkoEQwjTuI=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=OI+dGh0HpD2RAopBGjOcnKhk+YUJRFYux8nmaxx6ZvWHPUTSuArF4dGQu6qme2AmRy Eu4YA5/h+oVDy7KEaKf79ncWZX41ZrCUKRpN1H3NnZLSvABhDtxZiTJC0LuoqF/x19Nu KsDWHWAo9/gyOrVVXKsNYYO/g3ozFUW5J8s76d2D3r58P12F2aDaxKlqnGPrdqOKZkIx JVbGckGaQPN+S+LSzUVDey5spaDhddvvv59O/qrE0h4MF9pdRy4iGJ0k4odGpL7KvIGI GxEqeNCuSl2QdUwznHSWhfIeVnQvi8D2Ic010Wses6SeQ2VKKxXLp08rBm4Z/VX8F1Fp UuIg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=AR6LdfTb; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=YNavHatz; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=I8sTE6mL; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 41be03b00d2f7-cde6d1255absi54219961a12.370.2026.11.30.07.26.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2026 07:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=AR6LdfTb; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=YNavHatz; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=I8sTE6mL; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=2jZH2u6rsD7O6QK41pGtvpX266t0KKPN8CkoEQwjTuI=; b=AR6LdfTbtkp00U YQUwqx/PQZP8j1PgQvRxf2vvykveda0d+4I2sz/IB28VD7sxVAExGHQFMmacgj2ihY/N3Tiag/VYc 0Uxdorb+vmOFovKDS9/gqo6renFVboqGQFTRDkMYE1sqJhLm0IIHO7NA6M1gxWnMNPZah/JwTonwH zqY=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xY3Gu-0000000065n-1qzo; Mon, 30 Nov 2026 15:26:28 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xY3Gt-0000000065g-1rtV for openvpn-devel@lists.sourceforge.net; Mon, 30 Nov 2026 15:26:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xFDWZtdpBbaDB6vRkX1S+QO081IHJVXQkxFckomjKZI=; b=YNavHatzntSqDpw+g7GBwaE0Lf EYnhwm3YrSlrUnCuOgPtW+6umg5tooPmzXXXggha4OMMwuizEnn//ZdVW3C9KEKSIEopEhgzc/H1j 5Z/Eyynjcb01LAwpUga+sYMQh25scQ3FTY/Pj8Q2DxDdleQmmegp9OsiD4FZ4h1knByc=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xFDWZtdpBbaDB6vRkX1S+QO081IHJVXQkxFckomjKZI=; b=I8sTE6mLQ1zIZpOt8mgDvTOd2w FoaLw11rAKuLqsa4Bpe4mbd75KSxNoUqQ6jnCtapeuNPwqNxPmxs4brOUDwdKaJ8fulRs3FvG1zt4 oLYkcAfaUmeJsjqg/4H0MD73Ck252iH/rz1hBrDfWXDZiKymixyWwLMjv8K762+8hs5Y=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xY3Gr-000000007Sq-2M8C for openvpn-devel@lists.sourceforge.net; Mon, 30 Nov 2026 15:26:27 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6AUFQIWW017541 for ; Mon, 30 Nov 2026 16:26:18 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6AUFQIxT017540 for openvpn-devel@lists.sourceforge.net; Mon, 30 Nov 2026 16:26:18 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Mon, 30 Nov 2026 16:26:10 +0100 Message-ID: <20261130152618.17524-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-1.hosts.colo.sdot.me", 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: From: Razvan Cojocaru Commit 1308ccec ("Remove support for PF (Packet Filter)") removed the last users of the MROUTE_SEC_* flags, the code setting MR_ARP and all callers passing MAPF_SHOW_ARP. Drop them and the "ARP/" bran [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URI: openvpn.net] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xY3Gr-000000007Sq-2M8C Subject: [Openvpn-devel] [PATCH v2] mroute: remove leftovers of the PF removal X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1883297434454775624 X-GMAIL-MSGID: 1883297434454775624 From: Razvan Cojocaru Commit 1308ccec ("Remove support for PF (Packet Filter)") removed the last users of the MROUTE_SEC_* flags, the code setting MR_ARP and all callers passing MAPF_SHOW_ARP. Drop them and the "ARP/" branch in mroute_addr_print_ex() that could no longer be reached, and renumber the remaining flags to close the gaps. Change-Id: I459bcd0193347698b274b0d79b8f187289d4589b Signed-off-by: Razvan Cojocaru Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2369 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2369 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Frank Lichtenheld diff --git a/src/openvpn/mroute.c b/src/openvpn/mroute.c index 261d25a..f102071 100644 --- a/src/openvpn/mroute.c +++ b/src/openvpn/mroute.c @@ -392,10 +392,6 @@ case MR_ADDR_IPV4: { - if ((flags & MAPF_SHOW_ARP) && (maddr.type & MR_ARP)) - { - buf_printf(&out, "ARP/"); - } if (maddr.type & MR_WITH_PROTO) { buf_printf(&out, "%s:", proto2ascii(maddr.proto, AF_INET, false)); diff --git a/src/openvpn/mroute.h b/src/openvpn/mroute.h index 9d61b22..bccfed5 100644 --- a/src/openvpn/mroute.h +++ b/src/openvpn/mroute.h @@ -40,13 +40,6 @@ #define MROUTE_EXTRACT_MCAST (1 << 2) #define MROUTE_EXTRACT_IGMP (1 << 3) -#define MROUTE_SEC_EXTRACT_SUCCEEDED (1 << (0 + MROUTE_SEC_SHIFT)) -#define MROUTE_SEC_EXTRACT_BCAST (1 << (1 + MROUTE_SEC_SHIFT)) -#define MROUTE_SEC_EXTRACT_MCAST (1 << (2 + MROUTE_SEC_SHIFT)) -#define MROUTE_SEC_EXTRACT_IGMP (1 << (3 + MROUTE_SEC_SHIFT)) - -#define MROUTE_SEC_SHIFT 4 - /* * Choose the largest address possible with * any of our supported types, which is IPv6 @@ -69,14 +62,11 @@ /* Address type mask indicating that netbits is part of address */ #define MR_WITH_NETBITS 8 -/* Indicates than IPv4 addr was extracted from ARP packet */ -#define MR_ARP 16 - /* Address type mask indicating that proto # is part of address */ -#define MR_WITH_PROTO 32 +#define MR_WITH_PROTO 16 /* MRoute is an on link/scope address needed for DCO on Unix platforms */ -#define MR_ONLINK_DCO_ADDR 64 +#define MR_ONLINK_DCO_ADDR 32 struct mroute_addr { @@ -154,8 +144,7 @@ #define MAPF_SUBNET (1 << 0) #define MAPF_IA_EMPTY_IF_UNDEF (1 << 1) -#define MAPF_SHOW_ARP (1 << 2) -#define MAPF_SHOW_FAMILY (1 << 3) +#define MAPF_SHOW_FAMILY (1 << 2) const char *mroute_addr_print_ex(const struct mroute_addr *ma, const unsigned int flags, struct gc_arena *gc);