OpenVZ Forum


Home » Mailing lists » Devel » Re: [patch -mm 16/17] net namespace: add unshare
Re: [patch -mm 16/17] net namespace: add unshare [message #8743] Tue, 05 December 2006 10:46 Go to next message
Mishin Dmitry is currently offline  Mishin Dmitry
Messages: 112
Registered: February 2006
Senior Member
Cedric,

On Tuesday 05 December 2006 13:28, clg@fr.ibm.com wrote:
[skip]
>
> +static inline int unshare_net_ns(unsigned long unshare_flags,
> + struct net_namespace **new_net)
> +{
> + if (unshare_flags & NS_NET)
Where is it defined?

--
Thanks,
Dmitry.
Re: [patch -mm 16/17] net namespace: add unshare [message #8745 is a reply to message #8743] Tue, 05 December 2006 10:53 Go to previous messageGo to next message
Daniel Lezcano is currently offline  Daniel Lezcano
Messages: 417
Registered: June 2006
Senior Member
Dmitry Mishin wrote:
> Cedric,
>
> On Tuesday 05 December 2006 13:28, clg@fr.ibm.com wrote:
> [skip]
>> +static inline int unshare_net_ns(unsigned long unshare_flags,
>> + struct net_namespace **new_net)
>> +{
>> + if (unshare_flags & NS_NET)
> Where is it defined?

This function is for !CONFIG_NET_NS

unshare_net_ns is defined in net_namespace.c
Re: [patch -mm 16/17] net namespace: add unshare [message #8746 is a reply to message #8745] Tue, 05 December 2006 10:56 Go to previous messageGo to next message
Mishin Dmitry is currently offline  Mishin Dmitry
Messages: 112
Registered: February 2006
Senior Member
On Tuesday 05 December 2006 13:53, Daniel Lezcano wrote:
> Dmitry Mishin wrote:
> > Cedric,
> >
> > On Tuesday 05 December 2006 13:28, clg@fr.ibm.com wrote:
> > [skip]
> >
> >> +static inline int unshare_net_ns(unsigned long unshare_flags,
> >> + struct net_namespace **new_net)
> >> +{
> >> + if (unshare_flags & NS_NET)
> >
> > Where is it defined?
>
> This function is for !CONFIG_NET_NS
>
> unshare_net_ns is defined in net_namespace.c
Sorry for unclear question. Where is defined NS_NET? It should be CLONE_NEWNET
instead, shouldn't it?

>
--
Thanks,
Dmitry.
Re: [patch -mm 16/17] net namespace: add unshare [message #8748 is a reply to message #8746] Tue, 05 December 2006 11:01 Go to previous message
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
> Sorry for unclear question. Where is defined NS_NET? It should be CLONE_NEWNET
> instead, shouldn't it?

if we keep on using the unshare syscall, the answer is yes.

I'm proposing a new syscall specific to namespaces (patch 10) with
a new set of flags very similar to unshare.

cheers,

c.
Previous Topic: Re: Network virtualization/isolation
Next Topic: Re: [Patch 1/3] Miscellaneous container fixes
Goto Forum:
  


Current Time: Mon Sep 16 19:35:53 GMT 2024

Total time taken to generate the page: 0.04651 seconds