]> 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:33:49 +0000 (12:33 +0100)
commit785297bf3c8a93ad2fca2aeae574082dc97183e6
tree6075d893ece33606ff943f08f67d84ee6930a77b
parentd7d61b4c2d1f1dd47e779ca38b936f9b99042c82
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>
(cherry picked from commit d384a9587951617d12e31e0a18050bd86402d5df)
src/openvpn/options.c