From fbc123987ac3c50839d854db47caffa0dac4efe6 Mon Sep 17 00:00:00 2001 From: Vishwanath Biradar <68323932+BiradarV@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:55:31 +0530 Subject: [PATCH] Updating the MTU value as per configured value. --- src/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index 78616d9..e3cc322 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -722,7 +722,7 @@ AdapterCreate( // Specifiy the maximum network frame size, in bytes, that the NIC // supports excluding the header. // - genAttributes.MtuSize = TAP_FRAME_MAX_DATA_SIZE; + genAttributes.MtuSize = adapter->MtuSize; genAttributes.MaxXmitLinkSpeed = TAP_XMIT_SPEED; genAttributes.XmitLinkSpeed = TAP_XMIT_SPEED; genAttributes.MaxRcvLinkSpeed = TAP_RECV_SPEED;