X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=kernel%2Fvserver%2Flegacynet.c;h=2db833fc51b8e6eaabc9808c22f2b68df5b8add5;hb=8e8ece46a861c84343256819eaec77e608ff9217;hp=67d133ca6daae832ec328d39ff6cef129841c4b8;hpb=a6d8dea2993ef90fb69b81372daa0b63f8aa940e;p=linux-2.6.git diff --git a/kernel/vserver/legacynet.c b/kernel/vserver/legacynet.c index 67d133ca6..2db833fc5 100644 --- a/kernel/vserver/legacynet.c +++ b/kernel/vserver/legacynet.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -39,14 +40,14 @@ int vc_set_ipv4root(uint32_t nbip, void __user *data) return -EFAULT; if (!nxi || nxi->ipv4[0] == 0 || capable(CAP_NET_ADMIN)) - // We are allowed to change everything + /* We are allowed to change everything */ err = 0; else if (nxi) { int found = 0; - // We are allowed to select a subset of the currently - // installed IP numbers. No new one allowed - // We can't change the broadcast address though + /* We are allowed to select a subset of the currently + installed IP numbers. No new one are allowed + We can't change the broadcast address though */ for (i=0; inbipv4 = nbip; @@ -74,14 +75,10 @@ int vc_set_ipv4root(uint32_t nbip, void __user *data) new_nxi->mask[i] = vc_data.nx_mask_pair[i].mask; } new_nxi->v4_bcast = vc_data.broadcast; - // current->nx_info = new_nxi; - if (nxi) { + if (nxi) printk("!!! switching nx_info %p->%p\n", nxi, new_nxi); - clr_nx_info(¤t->nx_info); - } + nx_migrate_task(current, new_nxi); - // set_nx_info(¤t->nx_info, new_nxi); - // current->nid = new_nxi->nx_id; put_nx_info(new_nxi); return 0; }