admin管理员组

文章数量:1193390

I have a simple testcase where a client and an echoServer should run on the same device to measure the latency of lwip. But the second program I start can't use the device because it is blocked by the first program:

tapif_init: /dev/net/tun ioctl TUNSETIFF: Device or resource busy

Is there an option that both programs can share the device?

(Yes, I can change the device that is used by the second device but is this necessary? But it is possible that I use more instances in future and I don't want to adjust it for all instances of the program manually. A shared device is the best option for me.)

本文标签: cRun lwip twice on the same device Device or resource busyStack Overflow