From: "flichtenheld (Code Review)" Date: Thu, 24 Jul 2025 12:31:45 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Z1knFkH8GmM="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: forward: Make sure pip flags are treated as unsigned List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --Z1knFkH8GmM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1108?usp=3Demail to review the following change. Change subject: forward: Make sure pip flags are treated as unsigned ...................................................................... forward: Make sure pip flags are treated as unsigned process_ip_header already expects them to be unsigned, make sure the flags are to avoid spurious conversion warnings. Change-Id: I6d42c67b8dc5512933bed482bd9c2be80c63e993 Signed-off-by: Frank Lichtenheld --- M src/openvpn/forward.h 1 file changed, 7 insertions(+), 7 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/08/1108/1 diff --git a/src/openvpn/forward.h b/src/openvpn/forward.h index 2818fd1..b3e424c 100644 --- a/src/openvpn/forward.h +++ b/src/openvpn/forward.h @@ -318,13 +318,13 @@ */ void reschedule_multi_process(struct context *c); -#define PIPV4_PASSTOS (1<<0) -#define PIP_MSSFIX (1<<1) /* v4 and v6 */ -#define PIP_OUTGOING (1<<2) -#define PIPV4_EXTRACT_DHCP_ROUTER (1<<3) -#define PIPV4_CLIENT_NAT (1<<4) -#define PIPV6_ICMP_NOHOST_CLIENT (1<<5) -#define PIPV6_ICMP_NOHOST_SERVER (1<<6) +#define PIPV4_PASSTOS (1u<<0) +#define PIP_MSSFIX (1u<<1) /* v4 and v6 */ +#define PIP_OUTGOING (1u<<2) +#define PIPV4_EXTRACT_DHCP_ROUTER (1u<<3) +#define PIPV4_CLIENT_NAT (1u<<4) +#define PIPV6_ICMP_NOHOST_CLIENT (1u<<5) +#define PIPV6_ICMP_NOHOST_SERVER (1u<<6) void process_ip_header(struct context *c, unsigned int flags, struct buffe= r *buf, -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1108?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: I6d42c67b8dc5512933bed482bd9c2be80c63e993 Gerrit-Change-Number: 1108 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --Z1knFkH8GmM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

forward: Make sure pip flags are treated as unsigned

= process_ip_header already expects them to be unsigned,
make sure the fla= gs are to avoid spurious conversion warnings.

Change-Id: I6d42c67b8d= c5512933bed482bd9c2be80c63e993
Signed-off-by: Frank Lichtenheld <fran= k@...2641...>
---
M src/openvpn/forward.h
1 file changed, 7 ins= ertions(+), 7 deletions(-)

git pull ssh://gerrit.openvpn.net:2941=
8/openvpn refs/changes/08/1108/1
diff --git a/src/openvpn/forward.h=
 b/src/openvpn/forward.h
index 2818fd1..b3e424c 100644
--- a/src/openvpn/forward.h
+++ b/src/openvpn/f= orward.h
@@ -318,13 +318,13 @@
*/<= br> void reschedule_multi_process(struct context *c);

-#define PIPV4_PASST= OS (1<<0)
-#define PIP_MSSFIX (1<<1) /*= v4 and v6 */
-#define = PIP_OUTGOING (1<<2)
-#define PIPV4_EXTRACT_DHCP_ROUTER (1<<3)=
-#define PIPV4_CLIENT_= NAT (1<<4)
-#define PIPV6_ICMP_NOHOST_CLIENT (1<<5)
-#define PIPV6_ICMP_NOHOST_SERVER = (1<<6)
+#= define PIPV4_PASSTOS (1u<<0)
+#define PIP_MSSFIX (= 1u<<1) /* v4 and v6 */
+#define PIP_OUTGOING (1u<<2)
+#define PIPV4_EXTRACT_DH= CP_ROUTER (1u<<3)
+#define PIPV4_CLIENT_NAT (1u<<4)
<= span style=3D"color: hsl(120, 100%, 40%);">+#define PIPV6_ICMP_NOHOST_CLIEN= T (1u<<5)

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6d42c67b8dc5512933bed482bd9= c2be80c63e993
Gerrit-Change-Number: 1108
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newchange
--Z1knFkH8GmM=--