]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Change type of frame.mss_fix to uint16_t
authorFrank Lichtenheld <frank@lichtenheld.com>
Mon, 9 Oct 2023 10:51:51 +0000 (12:51 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 18 Oct 2023 11:20:35 +0000 (13:20 +0200)
commit613f4a7c9fda4dd6f0063caefab6c03d4a628667
tree8bcc477e11c461442b8535a487fdd297b9eb94e3
parent2574ae5e6961ed5b39531a7f98e537f72f87bcfb
Change type of frame.mss_fix to uint16_t

Since in the end this always ends up as an uint16_t
anyway, just make the conversion much earlier. Cleans
up the code and removes some -Wconversion warnings.

v2:
 - proper error handling in options.c
v4:
 - also introduce a minimum mssfix

Change-Id: Id8321dfbb8ad8d79f4bb2a9da61f8cd6b6c6ee26
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Message-Id: <20231009105151.34074-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/search?l=mid&q=20231009105151.34074-1-frank@lichtenheld.com
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/mss.c
src/openvpn/mss.h
src/openvpn/mtu.c
src/openvpn/mtu.h
src/openvpn/options.c