Message-ID: Date: Mon, 1 Jan 2024 14:50:41 +0100 MIME-Version: 1.0 Content-Language: en-GB References: <20240101094054.38869-1-gert@...1296...> From: Arne Schwabe In-Reply-To: <20240101094054.38869-1-gert@...1296...> Subject: Re: [Openvpn-devel] [PATCH] OpenBSD: repair --show-gateway List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: Gert Doering , openvpn-devel@lists.sourceforge.net Am 01.01.24 um 10:40 schrieb Gert Doering: > OpenBSD route sockets do not want to be passed RTA_IFP on RTM_GET > - if we do this, we get back EINVAL. > > On other platforms, if we do not request RTA_IFP, we will not get > back interface information for queried routes - on OpenBSD, RTA_IFP > comes back always... > > So we need to #ifdef this, RTA_IFP on all platforms except OpenBSD. > > (Found this fix in OpenBSD's ports tree, in their patches for OpenVPN > 2.6.8 - but they just remove RTA_IFP, no #ifdef, so we can't just apply > their patch) > > While at it, add M_ERRNO to the "write to routing socket" error message. Acked-By: Arne Schwabe