]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Combine extra_tun/frame parameter of frame_calculate_payload_overhead
authorArne Schwabe <arne@rfc2549.org>
Fri, 10 Feb 2023 14:27:06 +0000 (15:27 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 14 Feb 2023 12:52:53 +0000 (13:52 +0100)
commite759c0ea6fe8679edf4d5208f2f0dc8cee5e948c
tree2067a66b05b97ad45e02bafc4c35cba1c96a0584
parentb78360875cfe2f3ffc0d0aa0785ba3070b597da6
Combine extra_tun/frame parameter of frame_calculate_payload_overhead

Instead of passing a value and a bool just pass the value and 0 if
the caller does not want the value to be added. This also allows
the function to be used by a function without a frame struct.

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