]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove pointless tun_adjust_frame_parameters function
authorArne Schwabe <arne@rfc2549.org>
Thu, 1 Apr 2021 13:13:29 +0000 (15:13 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 1 Apr 2021 13:44:21 +0000 (15:44 +0200)
This functions seem to serve no purpose other than to add confusion.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210401131337.3684-7-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21957.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c
src/openvpn/tun.h

index 1a6015452a0c85c93dac0ff6f0c595e4c40fb488..f0ae0b7f1cd92c385a05e299ff76ed77aa086623 100644 (file)
@@ -3101,7 +3101,7 @@ do_init_frame(struct context *c)
      */
     if (c->options.ce.tun_mtu_extra_defined)
     {
-        tun_adjust_frame_parameters(&c->c2.frame, c->options.ce.tun_mtu_extra);
+        frame_add_to_extra_tun(&c->c2.frame, c->options.ce.tun_mtu_extra);
     }
 
     /*
index 902665cc660f2d6128d1ff9235f41589785fef10..7e8fb76478269e2ea9a4dfae79a1c73842961a42 100644 (file)
@@ -315,16 +315,6 @@ void check_subnet_conflict(const in_addr_t ip,
 
 void warn_on_use_of_common_subnets(openvpn_net_ctx_t *ctx);
 
-/*
- * Inline functions
- */
-
-static inline void
-tun_adjust_frame_parameters(struct frame *frame, int size)
-{
-    frame_add_to_extra_tun(frame, size);
-}
-
 /*
  * Should ifconfig be called before or after
  * tun dev open?