From: "flichtenheld (Code Review)"
Date: Tue, 5 Aug 2025 16:00:20 +0000
In-Reply-To:
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="N+oAikaJGQ8="; 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
--N+oAikaJGQ8=
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 reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1108?usp=3Demail
to look at the new patch set (#4).
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/4
diff --git a/src/openvpn/forward.h b/src/openvpn/forward.h
index d564149..79d0f8b 100644
--- a/src/openvpn/forward.h
+++ b/src/openvpn/forward.h
@@ -314,13 +314,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: 4
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-MessageType: newpatchset
--N+oAikaJGQ8=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: plaisthos.
flichtenheld uploaded patch set #4 to this change.
<=
p>View C=
hange
forward: Make sure pip flags are treated as unsigned
proce=
ss_ip_header already expects them to be unsigned,
make sure the flags ar=
e to avoid spurious conversion warnings.
Change-Id: I6d42c67b8dc5512=
933bed482bd9c2be80c63e993
Signed-off-by: Frank Lichtenheld <frank@...493...=
2641...>
---
M src/openvpn/forward.h
1 file changed, 7 insertio=
ns(+), 7 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/ope=
nvpn refs/changes/08/1108/4
diff --git a/src/openvpn/forward.h b/sr=
c/openvpn/forward.h
index d564149..79d0f8b 100644
--- a/src/openvpn/forward.h
+++ b/src/openvpn/forwar=
d.h
@@ -314,13 +314,13 @@
*/
void reschedule_multi_process(struct context *c);
-#define PIPV4_PASSTOS =
(1 << 0)
-#define PIP_MSSFIX (1 << 1) /* v4 and v6 */<=
br>-#define PIP_OUTGOING =
(1 << 2)
-#d=
efine PIPV4_EXTRACT_DHCP_ROUTER (1 << 3)
-#define PIPV4_CLIENT_NAT (1 << 4)=
span>
-#define PIPV6_ICMP_NOHO=
ST_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 &l=
t;< 2)
+#define PI=
PV4_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 buffer *buf,
To view, visit 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: 4
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: newpatchset
--N+oAikaJGQ8=--