开发者

How can i create more network namespace?

开发者 https://www.devze.com 2023-02-13 17:34 出处:网络
How to use 开发者_如何学Gounshare(), clone() to create lots of network namespace in linux? Just

How to use 开发者_如何学Gounshare(), clone() to create lots of network namespace in linux?


Just

if (unshare(CLONE_NEWNET) < 0) {
        fprintf(stderr, "Failed to create a new network namespace: %s\n",
                strerror(errno));
        goto out;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消