| Message ID | 20250128124026.108992-1-frank@lichtenheld.com |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:6a49:b0:5e7:b9eb:58e8 with SMTP id v9csp400887mat;
Tue, 28 Jan 2025 04:40:48 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCWzJK966nZLuDC0TsdxXE97zrT2SixQOxX/AkRBPMs6LBB4lRvqiEzqobCe82UabXt58OfYxVCTt0M=@openvpn.net
X-Google-Smtp-Source:
AGHT+IHeutpxX5SE+4KK/DPth4SJyOSyjoCaLEmAXmHpQcuqQGK6cIACN4GDCyJmZ1+NbJlaS91l
X-Received: by 2002:a05:6830:601c:b0:71d:54fb:da4e with SMTP id
46e09a7af769-7249da580c9mr29980615a34.3.1738068047877;
Tue, 28 Jan 2025 04:40:47 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1738068047; cv=none;
d=google.com; s=arc-20240605;
b=RqO3BkZSpsG2q0yd7hNEdeIf3henh3a/YWEoKNlvoCU6UhQeM7Ailc272e5Wb0macf
voRGNi3FigSg8wJyhvE2SLWKyqMEqYXwCwoigo1HJGVcFZ8HF+Tmg/3eTVbZxS6OdS9f
jTmCI4t9pbvf7J12HJz35BRcFshSp3y6ukTcJtustkSP6N2b4n8+fbeVNGoqot70IIRs
s1QIZyD7liItQkBYJIkWSCD5WNM9IfBZ5CTV9UnPt5UV/xKSeZVOEwaZaWl+Qw/P8Ovw
6Cfscd6y0fdu3MZzeTbXQwbtVh3iIGu88ntTb7zrAnuR0C0sQYbJTfHllg6g5WV/84JP
+RtA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
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=tYET7DlPctcQ/wk0z75GwCZsfHw1FA8eicQJG28OuJo=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=H4ECEEA7CetNf6CJHuZcZtslIpXWQ8+xf8Zc8ZuSkS8iBbVPXqkPnvgIG8JBwgQcAN
qyCdoFYP9pzHePE2vZ6yKgBb807jZT4HakMNDdS+c1twy1/+WZH09BJc2AI8+gQrks8t
hAix8FmugnsOxPj7fsb8Z7uWy+G5Ryk5hr79HPEEIxgUV81nQmlnWC/JwUBjD3l/lCoJ
AvKKSusUmKhKG/IXP0Zsb6KaCqcI2qdlbMGYMyA2DeKSOL2/JwJAnGP7ep2BJeHL/2Jg
P+dvlaPd5K0Pfe9MH3LjjWuG+MSZBp5iPw9T7vyQxPFvr4d24ZAR5VzL8tw7ooPfswHr
OAKg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=gPgTYsj7;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=gwSM+LP7;
dkim=neutral (body hash did not verify) header.i=@lichtenheld.com
header.s=MBO0001 header.b=bCyDa4EW;
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
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
46e09a7af769-724ecfb5fa1si7546411a34.270.2025.01.28.04.40.47
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Tue, 28 Jan 2025 04:40:47 -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=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=gPgTYsj7;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=gwSM+LP7;
dkim=neutral (body hash did not verify) header.i=@lichtenheld.com
header.s=MBO0001 header.b=bCyDa4EW;
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
Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com)
by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1tcktX-00060z-J0;
Tue, 28 Jan 2025 12:40:43 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <frank@lichtenheld.com>) id 1tcktW-00060i-0P
for openvpn-devel@lists.sourceforge.net;
Tue, 28 Jan 2025 12:40:42 +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:Cc:To:From:Sender:Reply-To: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-Subscribe:List-Post:List-Owner:List-Archive;
bh=70mIiG8hZ1WNDC2BE5ZnbiVjFsdtyYUmjxnuccvF4rg=; b=gPgTYsj76TZCiK/QkR8wnMoyPY
yiAMxZfClocRIeNwMTG7iNJskbOLqtjXGhYAErK0CDbMYGY4La2ZSWih5AwlM+XHrAbJ34972BZus
4HPBstjpe4QVxryLpW3ZLskJu5kC91u+oSyeKubUyZ6J9PBZ54+yn340guLMl5WZnXq0=;
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:Cc:To:From:Sender:Reply-To: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-Subscribe:
List-Post:List-Owner:List-Archive;
bh=70mIiG8hZ1WNDC2BE5ZnbiVjFsdtyYUmjxnuccvF4rg=; b=gwSM+LP7FkyHQeSlRHwxiZ0Q62
nP+HogKMIdNPEzPqmG/cK4dOM9Z2QNnOmQd1Odng+FP7InV9mq6gG1Q4nWxzUKDnRUbca9fcKkBch
/+NdPRCqnQR4WhCRvRdgw2azuEuB0uvR8ejfM6Fzmb4br+audbVJdGJqxNzQ+PfKdNRU=;
Received: from mout-p-201.mailbox.org ([80.241.56.171])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95)
id 1tcktU-00081s-F5 for openvpn-devel@lists.sourceforge.net;
Tue, 28 Jan 2025 12:40:41 +0000
Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest
SHA256)
(No client certificate requested)
by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Yj4d708jzz9tHg;
Tue, 28 Jan 2025 13:40:27 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lichtenheld.com;
s=MBO0001; t=1738068027;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=70mIiG8hZ1WNDC2BE5ZnbiVjFsdtyYUmjxnuccvF4rg=;
b=bCyDa4EW17Yim99YWNozrTWAPcKmvPBYzh8byjUxTFzblpAjHoU8lqIeCrJJwPLlwNIs+t
JSSOb4py/C27qgrhMZit1udGYTPd81MBtS0ftMD/F4eDc1kksys3Tiv1m4ru7umoGc81te
0NMOPyAVc+9XeYN1ddVWpYvI3jEX3Y/o8XMCqbz7V8fQfZZhLkxbqfIAvigHDSgzXHhLQX
8JJW9zWAQxz9BuXakH57tIeVsniKexxSjL/rdcPslNBGkPfgewGahsXlpE/wjs4nQwl7c3
w2wziKZN6uc8/p3Uz+/kIU0WjxQbOPUIuTPru9hzygpcAosTUsU/ubcNxPr+xA==
From: Frank Lichtenheld <frank@lichtenheld.com>
To: openvpn-devel@lists.sourceforge.net
Date: Tue, 28 Jan 2025 13:40:26 +0100
Message-Id: <20250128124026.108992-1-frank@lichtenheld.com>
In-Reply-To:
<gerrit.1738029022000.I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d@gerrit.openvpn.net>
References:
<gerrit.1738029022000.I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d@gerrit.openvpn.net>
MIME-Version: 1.0
X-Spam-Score: -0.9 (/)
X-Spam-Report: Spam detection software,
running on the system "util-spamd-1.v13.lw.sourceforge.com",
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: Alexander von Gluck <alex@terarocket.io> * Haiku uses
full paths for interface names,
16 characters isn't enough. Change-Id:
I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d
Signed-off-by: Alexander von Gluck <alex@terarocket.io> Acked-by: Frank
Lichtenheld <frank@lichtenheld.com> ---
Content analysis details: (-0.9 points, 6.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[80.241.56.171 listed in bl.score.senderscore.com]
0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[80.241.56.171 listed in sa-trusted.bondedsender.org]
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/,
low trust [80.241.56.171 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 Message has at least one valid DKIM or DK signature
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily
valid -0.0 T_SCC_BODY_TEXT_LINE No description available.
X-Headers-End: 1tcktU-00081s-F5
Subject: [Openvpn-devel] [PATCH v1] Haiku: Fix short interface path length
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: =?utf-8?q?1822496441177044647?=
X-GMAIL-MSGID: =?utf-8?q?1822496441177044647?=
|
| Series |
[Openvpn-devel,v1] Haiku: Fix short interface path length
|
|
Commit Message
Frank Lichtenheld
Jan. 28, 2025, 12:40 p.m. UTC
From: Alexander von Gluck <alex@terarocket.io> * Haiku uses full paths for interface names, 16 characters isn't enough. Change-Id: I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d Signed-off-by: Alexander von Gluck <alex@terarocket.io> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> --- 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/+/689 This mail reflects revision 1 of this Change. Signed-off-by line for the author was added as per our policy. Acked-by according to Gerrit (reflected above): Frank Lichtenheld <frank@lichtenheld.com>
Comments
I'm not totally happy with another #ifdef added to that already-not-so-nice
#orgy, but I see no more elegant way. One might consider to move the
#define IFNAMSIZ further up, and use it in the "iface[16]" definition
(getting rid of one #ifdef)... but that's somewhat outside the scope
of this patch, so maybe I'll give it a go ;-)
Your patch has been applied to the master branch.
commit 34f302247c865827b7075422e32c272a203783cb
Author: Alexander von Gluck
Date: Tue Jan 28 13:40:26 2025 +0100
Haiku: Fix short interface path length
Signed-off-by: Alexander von Gluck <alex@terarocket.io>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20250128124026.108992-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30654.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/src/openvpn/route.h b/src/openvpn/route.h index 421e7d2..69b06b8 100644 --- a/src/openvpn/route.h +++ b/src/openvpn/route.h @@ -155,6 +155,8 @@ /* gateway interface */ #ifdef _WIN32 DWORD adapter_index; /* interface or ~0 if undefined */ +#elif defined(TARGET_HAIKU) + char iface[PATH_MAX]; /* iface names are full /dev path with driver name */ #else char iface[16]; /* interface name (null terminated), may be empty */ #endif @@ -186,8 +188,13 @@ #else /* non linux platform don't have this constant defined */ #ifndef IFNAMSIZ +#if defined(TARGET_HAIKU) +/* iface names are full /dev path with driver name */ +#define IFNAMSIZ PATH_MAX +#else #define IFNAMSIZ 16 #endif +#endif char iface[IFNAMSIZ]; /* interface name (null terminated), may be empty */ #endif