From: "flichtenheld (Code Review)" Date: Mon, 5 Feb 2024 11:24:24 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <8cdf8c81e5231b2f99d61634dae9cddcae74e945-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="SSwHe4ID3Kw="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: Implement support for larger packet counter sizes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --SSwHe4ID3Kw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. flichtenheld has posted comments on this change. ( http://gerrit.openvpn.ne= t/c/openvpn/+/507?usp=3Demail ) Change subject: Implement support for larger packet counter sizes ...................................................................... Patch Set 2: Code-Review-1 (11 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/507/comment/9474d66b_41a49dc1 : PS2, Line 27: larger packet counters in any scenario since the other scenar= ios Maybe nicer "in any other scenario since those are all legacy" http://gerrit.openvpn.net/c/openvpn/+/507/comment/c459f6e9_1c6a2ee5 : PS2, Line 38: 2^32 packet ids) forward. But this is an obscure edge that we= can remove second "forward" http://gerrit.openvpn.net/c/openvpn/+/507/comment/e22305ad_aea02a52 : PS2, Line 41: Change-Id: I01e258e97351b5aa4b9e561f5b35ddc2318569e2 Missing sign-off Patchset: PS2: Didn't get through the whole change, yet, but since I accumulated already a= sizeable number of comments, here they are... File src/openvpn/crypto.h: http://gerrit.openvpn.net/c/openvpn/+/507/comment/f5a0f5fa_c7d56d07 : PS2, Line 287: /**< Bit-flag indicating that we should use a 64 bit (8 = byte) packet This needs WAY more explanation. What is the difference between CO_PACKET_I= D_LONG_FORM and this? CO_PACKET_ID_LONG_FORM is only for non-AEAD data pack= ets and this is only for AEAD packets, right? I think this should be mentio= ned here. http://gerrit.openvpn.net/c/openvpn/+/507/comment/44aff7d2_675e1cf8 : PS2, Line 288: * counter instead of the 32 bit that we normally use. "normally use" -> "use by default". 32bit will remain the default, but hope= fully not the norm. File src/openvpn/packet_id.h: http://gerrit.openvpn.net/c/openvpn/+/507/comment/586075bf_d6c272af : PS2, Line 250: * Variant of packet_id_read that expect the timestamp first= and packet "expects" http://gerrit.openvpn.net/c/openvpn/+/507/comment/01116f80_49cacdec : PS2, Line 273: * will always use a variant of the packet id that can just = be seens as "seen" http://gerrit.openvpn.net/c/openvpn/+/507/comment/27267e93_2e924d4c : PS2, Line 274: * a flat 64 bit counter add full stop at the end http://gerrit.openvpn.net/c/openvpn/+/507/comment/a6ddc660_5b3f2b5e : PS2, Line 277: * @param buf Buffer to write the packet ID too "too" -> "to" http://gerrit.openvpn.net/c/openvpn/+/507/comment/42ac15af_a6087522 : PS2, Line 279: * @param prepend If true, prepend to buffer, otherwis= e append. prepend parameter does not exist in this variant. Why is that? Is CO_AEAD_T= AG_AT_THE_END now always true? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/507?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: I01e258e97351b5aa4b9e561f5b35ddc2318569e2 Gerrit-Change-Number: 507 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Comment-Date: Mon, 05 Feb 2024 11:24:24 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --SSwHe4ID3Kw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

Patch set 2:Code-Review -1=

Vi= ew Change

11 comments:

  • Commit Message:

    • Patch Set #2, Line 27: larger packet counters in any s= cenario since the other scenarios

      Maybe nicer "in any other scenario since t= hose are all legacy"

    • Patch Set #2, Line 38: 2^32 packet ids) forward. But th= is is an obscure edge that we can

      remove second "forward"

    • <= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/507/comment/e22305ad_aea02a= 52">Patch Set #2, Line 41: Change-Id: I01e258e97351b5aa4b9e561f5b35ddc2318569e2

      Missing sign-off

  • Patchset:

    • Patch Set #2:

      Didn't get through the whole cha= nge, yet, but since I accumulated already a sizeable number of comments, he= re they are...

  • Fi= le src/openvpn/crypto.h:

      Patch Set #2, Line 287: /**< Bit-flag indicating that we should use a 64 bit (8 byte)= packet

      Patch Set #2, Line 288: * counter instead of the 32 bit that we= normally use.

      "normally use" -> "use by default". 32bit w= ill remain the default, but hopefully not the norm.

  • File src/openvpn/packet_id.h:

    • Patch Set #2, Line 250: <= code style=3D"font-family:monospace,monospace"> * Variant of packet_id_read= that expect the timestamp first and packet

      "expects"

    • = Patch Set #2, Line 273: * will always use a variant of the packet id that can just be seens as

      "se= en"

    • Patch Set #2, Line 274: * a flat 64 bit counter

      add full stop at the end

      <= /li>
    • Patch Set #2, Line 277: * @param buf Buffer to write the packet ID too

      "too= " -> "to"

    • Patch Set #2, Line 279: * @param prepend If tr= ue, prepend to buffer, otherwise append.

      prepend parameter does not exist in this= variant. Why is that? Is CO_AEAD_TAG_AT_THE_END now always true?

    • <= /ul>

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

    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I01e258e97351b5aa4b9e561f5b3= 5ddc2318569e2
    Gerrit-Change-Number: 507
    Gerrit-PatchSet: 2
    Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
    Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
    Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
    Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
    Gerrit-Comment-Date: Mon, 05 Feb 2024 11:24:24= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment
    --SSwHe4ID3Kw=--