<div dir="ltr"><div><div><div>Hi,<br><br></div><div>I'm new in kernel programming..<br></div><div><br></div>I'm reading the chapter about namespaces in the "Linux Kernel Networking" (Rami Rosen), but I could not find a way to create a network namespace. I understand that I should use methods like create_nsproxy(), copy_net_ns() and create_new_namespaces(), but I don't know how to set their parameters.<br><br></div>For example, the method copy_net_ns(unsigned long flags, struct user_namespace *user_ns, struct net *old_net), defined in net_namespace.h.<br><br></div>I know that for flags, a may use CLONE_NEWNET, but what about the other parameters, user_ns and old_net?<br clear="all"><div><div><div><div><div><br></div><div>There is a good documentation (with examples) about this? Unfortunately the book wasn't detailed enough.<br></div><div><br></div><div>I appreciate any help.<br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Bruno A. C. Ferreira<br><br></div></div></div>
</div></div></div></div></div></div>