[L] Change in openvpn[master]: multipeer: introduce asymmetric peer-id
"cron2 \(Code Review\) via Openvpn-devel" <[email protected]> Mon, 27 Jul 2026 13:41:51 +0000
| Newsgroups | gmane.network.openvpn.devel |
|---|---|
| Message-ID | <03d3a149be70791d281fffa97bcd7e4eb3a04dfa-EmailReviewComments-HTML@gerrit.openvpn.net> |
Attention is currently required from: flichtenheld, its_Giaan, ordex, plaisthos. cron2 has posted comments on this change by its_Giaan. ( http://gerrit.openvpn.net/c/openvpn/+/1089?usp=email ) Change subject: multipeer: introduce asymmetric peer-id ...................................................................... Patch Set 27: Code-Review-2 (2 comments) Patchset: PS27: getting there, just one small irk remaining File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/be3a2177_8ee1643b?usp=email : PS27, Line 1193: uint8_t peerid[3]; please rewrite using `multi->rx_peer_id = get_random() & 0xffffff` - shorter, easier to understand. Or we can get rid of the loop doing maybe `get_random % (MAX_PEER_ID-1)` if uniformness is less important. Or `& 0xefffff` if only half the number space is sufficient ;-) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1089?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I0a13ee90b6706acf20eabcee3bab3f2dff639bf9 Gerrit-Change-Number: 1089 Gerrit-PatchSet: 27 Gerrit-Owner: its_Giaan <[email protected]> Gerrit-Reviewer: cron2 <[email protected]> Gerrit-Reviewer: flichtenheld <[email protected]> Gerrit-Reviewer: plaisthos <[email protected]> Gerrit-CC: openvpn-devel <[email protected]> Gerrit-CC: ordex <[email protected]> Gerrit-Attention: plaisthos <[email protected]> Gerrit-Attention: its_Giaan <[email protected]> Gerrit-Attention: flichtenheld <[email protected]> Gerrit-Attention: ordex <[email protected]> Gerrit-Comment-Date: Mon, 27 Jul 2026 13:41:51 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel