]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Decouple MSS fix calculation from frame calculation
authorArne Schwabe <arne@rfc2549.org>
Tue, 14 Dec 2021 15:09:01 +0000 (16:09 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 30 Dec 2021 15:35:31 +0000 (16:35 +0100)
commitd4458eed0c3cf582f787893f033a19cb4629cd76
tree38d8559eaaaaae6cdf8da79848de67f453365af0
parentde018b5e93d6a85f39e5e8ecd3c986320fde8a2f
Decouple MSS fix calculation from frame calculation

This consolidates the MSS fix calculation into a single function
instead having it distributed all over the code. It also calculates
the real wire overhead without extra sizes for buffer etc.

Patch v2: improve comment

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20211214150901.4118886-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23423.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/forward.c
src/openvpn/init.c
src/openvpn/mss.c
src/openvpn/mss.h
src/openvpn/mtu.c
src/openvpn/mtu.h
src/openvpn/proto.h
src/openvpn/ssl.c