From f2b21c9e4a40d4ef4db6615b45734dc294246ba1 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sun, 10 Mar 2024 14:05:28 +0800 Subject: [PATCH] =?UTF-8?q?[mio]=20=E5=A2=9E=E5=8A=A0=E9=98=9F=E5=88=97?= =?UTF-8?q?=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/tun/src/linux/device.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vnt/tun/src/linux/device.rs b/vnt/tun/src/linux/device.rs index 7b2af7d..f84ccf2 100644 --- a/vnt/tun/src/linux/device.rs +++ b/vnt/tun/src/linux/device.rs @@ -86,6 +86,10 @@ impl Device { } else { None }; + let set_txqueuelen = format!("ifconfig {} txqueuelen 1000", name); + if let Err(e) = exe_cmd(&set_txqueuelen){ + log::warn!("{:?}",e); + } Device { name, tun,