(OK) Android 7 中使用 iperf3, 错误解决:error - unable to create a new stream no such file or directory

修改文件 src/iperf_api.c,否则,执行 iperf3 时,出错:iperf3: error - unable to create a new stream no such file or directory

# cd /mnt/vm_ztg_t/paper-8-test-nougat/mim-tcp-mdr/external/iperf3
# vim src/iperf_api.c
 char buf[] = "/tmp/iperf3.XXXXXX";
修改为

 char buf[] = "/data/local/tmp/iperf3.XXXXXX";                # 因为 Android 7 存在:/data/local/tmp/



posted @ 2018-01-01 10:40  张同光  阅读(2192)  评论(0编辑  收藏  举报