From: "cron2 (Code Review)" Date: Tue, 28 Jan 2025 19:06:15 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., alex@...2837..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ZbN4zcpcgcU="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Haiku: Fix short interface path length List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kallisti5 Cc: flichtenheld , plaisthos , openvpn-devel --ZbN4zcpcgcU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/68= 9?usp=3Demail ) Change subject: Haiku: Fix short interface path length ...................................................................... Haiku: Fix short interface path length * Haiku uses full paths for interface names, 16 characters isn't enough. Change-Id: I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d Signed-off-by: Alexander von Gluck Acked-by: Frank Lichtenheld Message-Id: <20250128124026.108992-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30= 654.html Signed-off-by: Gert Doering --- M src/openvpn/route.h 1 file changed, 7 insertions(+), 0 deletions(-) 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 na= me */ #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 empt= y */ #endif -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/689?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d Gerrit-Change-Number: 689 Gerrit-PatchSet: 2 Gerrit-Owner: kallisti5 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --ZbN4zcpcgcU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

Haiku: Fix short interface path length

= * Haiku uses full paths for interface names, 16 characters
isn't e= nough.

Change-Id: I6de60ed5c03ea45e1d7a3f7777bfc8ed5075e84d
Signe= d-off-by: Alexander von Gluck <alex@...2837...>
Acked-by: Frank Li= chtenheld <frank@...2641...>
Message-Id: <20250128124026.108992= -1-frank@...2641...>
URL: https://www.mail-archive.com/openvpn-devel@= lists.sourceforge.net/msg30654.html
Signed-off-by: Gert Doering <gert= @...1296...>
---
M src/openvpn/route.h
1 file changed, 7 insert= ions(+), 0 deletions(-)

diff --git a/src/openvpn/route.h b/src/openvpn/route.h
i= ndex 421e7d2..69b06b8 100644
--- a/src/openvpn/route.h
+++ b/src/openvpn/route.h
@@ -155,6 +155,8 @@
/* gateway interface */
#ifdef _WIN32<= /span>
DWORD adapter_index; /* interface or ~0 if undefined *= /
+#elif defined(TARG= ET_HAIKU)
+ char i= face[PATH_MAX]; /* iface names are full /dev path with driver name */
#else
char iface[16]; /* interface name (n= ull 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)
+/* if= ace 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
=

To view, visit change 689. To unsubscribe,= or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6de60ed5c03ea45e1d7a3f7777b= fc8ed5075e84d
Gerrit-Change-Number: 689
Gerrit-PatchSet: 2
Gerrit-Owner: kallisti5 <alex@...2837...>= ;
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--ZbN4zcpcgcU=--