It is a wrapper of frame_add_to_extra_tun, no sense to keep both around.

Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com>
---
 src/openvpn/init.c |    2 +-
 src/openvpn/tun.h  |    6 ------
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index eb4c5df..0bd3f75 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -2437,7 +2437,7 @@ do_init_frame (struct context *c)
    * Adjust frame size based on the --tun-mtu-extra parameter.
    */
   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);

   /*
    * Adjust frame size based on link socket parameters.
diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h
index 7a8e769..f96bb50 100644
--- a/src/openvpn/tun.h
+++ b/src/openvpn/tun.h
@@ -255,12 +255,6 @@ bool is_tun_p2p (const struct tuntap *tt);
  * 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?
-- 
1.7.3.4


Reply via email to