Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovpndcocli: prepend control packet with peer-id when using TunBuilder
The TunBuilder implementation needs to know which peer to send the control packet to and for this reason the ovpndcocli component is now prepending the data with 4 bytes representing the peer-id of the destination. Since this approach is incompatible with sending a const Buffer (as it cannot be modified), send() has to allocate a temporary buffer for the purpose. While at it, make transport_send(Buffer) obsolete, as ovpndcocli is not expected to handle data packets (sent as non-const). Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
- Loading branch information