]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add helper functions to calculate header/payload sizes
authorArne Schwabe <arne@rfc2549.org>
Wed, 29 Dec 2021 16:34:45 +0000 (17:34 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 30 Dec 2021 11:29:37 +0000 (12:29 +0100)
commitde018b5e93d6a85f39e5e8ecd3c986320fde8a2f
tree9ce1b8ddaf5598b23aa3b359217c07081482d1f8
parent7747e0bcdb92f0a3f0f7b27ca7d97194fb8efa97
Add helper functions to calculate header/payload sizes

These functions are intended to lay the groundwork to later replace
the distributed frame calculations and centralise the calculation in
one place.

Patch v2.2: clarify that the socks comments is assuming IPv4 and improve
            other comments

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211229163445.1893687-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23476.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c
src/openvpn/crypto.h
src/openvpn/mtu.c
src/openvpn/mtu.h