]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix mssfix default value in connection_list context
authorLev Stipakov <lstipakov@gmail.com>
Thu, 5 Mar 2015 20:33:56 +0000 (22:33 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 7 Mar 2015 11:20:01 +0000 (12:20 +0100)
commitd384a9587951617d12e31e0a18050bd86402d5df
tree6d4e24add5b4659348aa3725af69d811cae27a80
parentecd934b1ef83eec58eb2df5d3a98309ca56d5812
Fix mssfix default value in connection_list context

Due to this bug, mssfix hasn't been assigned to fragment value
and used default value (1450) instead. As a consequence, TCP packets
get fragmented, which causes performance penalty.

Since dual stack patch (commit 23d61c56b9fd218c39ad151b01b7e2d6690e6093)
OpenVPN uses options->connection_list, even for single remote.

This fix assigns mssfix value to fragment value for connection_entry
inside connection_list instead of connection_entry inside options struct
(which does not work for connection_list case).

Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1425587636-23338-1-git-send-email-lstipakov@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9507

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c