This code is probably from a time when we could not set the MTU on
the Windows tap6 driver. Nowadays we can set the MTU on this device,
so this code is a noop now.
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20211207170211.
3275837-7-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23327.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
c->c1.tuntap, c->plugins, c->c2.es, &c->net_ctx);
}
- /*
- * Did tun/tap driver give us an MTU?
- */
- if (c->c1.tuntap->post_open_mtu)
- {
- frame_set_mtu_dynamic(&c->c2.frame,
- c->c1.tuntap->post_open_mtu,
- SET_MTU_TUN | SET_MTU_UPPER_BOUND);
- }
-
ret = true;
static_context = c;
#ifndef TARGET_ANDROID
&mtu, sizeof(mtu),
&mtu, sizeof(mtu), &len, NULL))
{
- tt->post_open_mtu = (int)mtu;
msg(D_MTU_INFO, "TAP-Windows MTU=%d", (int)mtu);
}
}
#endif
/* used for printing status info only */
unsigned int rwflags_debug;
-
- /* Some TUN/TAP drivers like to be ioctled for mtu
- * after open */
- int post_open_mtu;
};
static inline bool