ip tuntap add 对应的 C 代码:从命令到 ioctl
ip tuntap add dev tun0 mode tun 的核心是 open /dev/net/tun + TUNSETIFF。它只创建接口,不管 ip link up、ip addr add;持久化要 TUNSETPERSIST。
1 posts
ip tuntap add dev tun0 mode tun 的核心是 open /dev/net/tun + TUNSETIFF。它只创建接口,不管 ip link up、ip addr add;持久化要 TUNSETPERSIST。
Subscribe via RSS to get new posts automatically.
Technical questions, feedback and leads: use the guestbook.