This function has only one usage and is so trivial that an extra
function makes little sense anymore.
frame_defined is no longer used, so remove the function.
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20220621161649.
2872985-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24492.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
*/
if (c->options.ce.tun_mtu_extra_defined)
{
- frame_add_to_extra_tun(&c->c2.frame, c->options.ce.tun_mtu_extra);
+ c->c2.frame.extra_tun += c->options.ce.tun_mtu_extra;
}
/*
#endif
-/*
- * frame member adjustment functions
- */
-
-static inline void
-frame_add_to_extra_tun(struct frame *frame, const int increment)
-{
- frame->extra_tun += increment;
-}
-
-static inline bool
-frame_defined(const struct frame *frame)
-{
- return frame->buf.payload_size > 0;
-}
-
#endif /* ifndef MTU_H */