diff options
| author | 杨威 <[email protected]> | 2023-05-08 18:36:11 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2023-05-16 17:47:35 +0800 |
| commit | 7aee7340527eaba27c9f2c770900efe406de0c88 (patch) | |
| tree | 2ffacc5666937360be0e20598c9f6134a40327e9 /benchmark/src/sapp_benchmark_utils.cpp | |
| parent | dc51748534bb542898c241248b44db244227ebf3 (diff) | |
🧪 test(inline_mode test): 修复初始化tap设备参数错误,导致测试失败的问题
Diffstat (limited to 'benchmark/src/sapp_benchmark_utils.cpp')
| -rw-r--r-- | benchmark/src/sapp_benchmark_utils.cpp | 1 |
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; } |
