[Openvpn-devel,1/6] Remove leftover frame_set_mtu_dynamic definitions in mtu.h

Message ID 20220621161649.2872985-1-arne@rfc2549.org
State Accepted
Headers show
Series
  • [Openvpn-devel,1/6] Remove leftover frame_set_mtu_dynamic definitions in mtu.h
Related show

Commit Message

Arne Schwabe June 21, 2022, 4:16 p.m.
The frame_set_mtu_dynamic function and it defines were removed during
the buffer rework but this definitions were overlooked.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
---
 src/openvpn/mtu.h | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Gert Doering June 21, 2022, 8:49 p.m. | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

Trivial enough.  Totally untested.  Just verified with "git grep".

Your patch has been applied to the master branch.

commit e2df31b6835eb15af6524d67f6fd93ff7a3cc4dd
Author: Arne Schwabe
Date:   Tue Jun 21 18:16:44 2022 +0200

     Remove leftover frame_set_mtu_dynamic definitions in mtu.h

     Signed-off-by: Arne Schwabe <arne@rfc2549.org>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20220621161649.2872985-1-arne@rfc2549.org>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24494.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/mtu.h b/src/openvpn/mtu.h
index 7f967e066..4b8feca7c 100644
--- a/src/openvpn/mtu.h
+++ b/src/openvpn/mtu.h
@@ -253,16 +253,6 @@  unsigned int
 calc_packet_id_size_dc(const struct options *options,
                        const struct key_type *kt);
 
-
-/*
- * frame_set_mtu_dynamic and flags
- */
-
-#define SET_MTU_TUN         (1<<0) /* use tun/tap rather than link sizing */
-#define SET_MTU_UPPER_BOUND (1<<1) /* only decrease dynamic MTU */
-
-void frame_set_mtu_dynamic(struct frame *frame, int mtu, unsigned int flags);
-
 /*
  * allocate a buffer for socket or tun layer
  */