summaryrefslogtreecommitdiff
path: root/benchmark/src/sapp_benchmark_utils.cpp
diff options
context:
space:
mode:
author杨威 <[email protected]>2023-05-08 18:36:11 +0800
committer杨威 <[email protected]>2023-05-16 17:47:35 +0800
commit7aee7340527eaba27c9f2c770900efe406de0c88 (patch)
tree2ffacc5666937360be0e20598c9f6134a40327e9 /benchmark/src/sapp_benchmark_utils.cpp
parentdc51748534bb542898c241248b44db244227ebf3 (diff)
🧪 test(inline_mode test): 修复初始化tap设备参数错误,导致测试失败的问题
Diffstat (limited to 'benchmark/src/sapp_benchmark_utils.cpp')
-rw-r--r--benchmark/src/sapp_benchmark_utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmark/src/sapp_benchmark_utils.cpp b/benchmark/src/sapp_benchmark_utils.cpp
index a8196cb..90a0f08 100644
--- a/benchmark/src/sapp_benchmark_utils.cpp
+++ b/benchmark/src/sapp_benchmark_utils.cpp
@@ -184,6 +184,7 @@ static int tuntap_dev_create(char *dev, int flags)
strncpy(ifr.ifr_name, dev, IFNAMSIZ);
}
if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0) {
+ perror ("Error: ");
close(fd);
return err;
}