From: "cron2 (Code Review)" Date: Sun, 1 Oct 2023 12:02:56 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <075578c79043b335f7f8f4a825af31b83dc8990b-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="1o0DiKjaOnk="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Change type of frame.mss_fix to uint16_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel , plaisthos --1o0DiKjaOnk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/268?usp=3Demail ) Change subject: Change type of frame.mss_fix to uint16_t ...................................................................... Patch Set 3: (2 comments) File src/openvpn/mss.c: http://gerrit.openvpn.net/c/openvpn/+/268/comment/94038c59_cb6b931f : PS3, Line 195: mssval +=3D opt[3]; why is this change needed? File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/268/comment/817b1791_91077f03 : PS3, Line 7257: if (mssfix > UINT16_MAX) If we introduce a check here, we should also ensure a minimum value - we as= sign `ce.mssfix-40` to `frame->mss_fix`, which is (now) unsigned, so the re= sult will be something huge for values 1..39, and 0 for `--mssfix 40`. For= IPv6, only values >=3D 60 make sense. Now, the code in `mss_fixup_dowork()` won't adjust a given mss upwards, but= it's still kind of unexpected behaviour... -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/268?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: Id8321dfbb8ad8d79f4bb2a9da61f8cd6b6c6ee26 Gerrit-Change-Number: 268 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Sun, 01 Oct 2023 12:02:56 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --1o0DiKjaOnk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

View C= hange

2 comments: