Attention is currently required from: Arne Schwabe, Frank Lichtenheld, Lev Stipakov.
Steffan Karger has posted comments on this change by Lev Stipakov. ( https://gerrit.openvpn.net/c/openvpn/+/1965?usp=email ) Change subject: control_msg: Add a shared TLV codec and use it for early negotiation ...................................................................... Patch Set 7: Code-Review-1 (3 comments) Patchset: PS7: Looks good in general, but two minor nits. File src/openvpn/control_msg.h: https://gerrit.openvpn.net/c/openvpn/+/1965/comment/cebf0f0c_6ed9542c?usp=email : PS7, Line 88: bool ctrl_msg_tlv_read_header(struct buffer *buf, struct ctrl_msg_tlv_header *hdr); Do we actually need read_header externally? I could imagine a peek-like variant would be useful. A function that advances the read pointer seems meant for internal use. And even for internal use by tlv_next, a peek variant would make it easier to prevent the partial consumption (see control_msg.c). File src/openvpn/control_msg.c: https://gerrit.openvpn.net/c/openvpn/+/1965/comment/35b0f161_d5377e67?usp=email : PS7, Line 87: } When you return here, the TLV was only partially consumed, which might come as a surprise to future users. It would be cleaner to not consume anything from the buffer if you fail. If you insist on this behavior, it should be clearly documented. -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/1965?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I89c3133e009dc75dc2c10c607b3f0a24c04e8146 Gerrit-Change-Number: 1965 Gerrit-PatchSet: 7 Gerrit-Owner: Lev Stipakov <[email protected]> Gerrit-Reviewer: Arne Schwabe <[email protected]> Gerrit-Reviewer: Frank Lichtenheld <[email protected]> Gerrit-Reviewer: Răzvan Cojocaru <[email protected]> Gerrit-Reviewer: Steffan Karger <[email protected]> Gerrit-CC: openvpn-devel <[email protected]> Gerrit-Attention: Lev Stipakov <[email protected]> Gerrit-Attention: Arne Schwabe <[email protected]> Gerrit-Attention: Frank Lichtenheld <[email protected]> Gerrit-Comment-Date: Sun, 15 Nov 2026 22:06:00 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
