dev.c (9b5e383c11b08784eb0087617f880077982ef769) dev.c (23289a37e2b127dfc4de1313fba15bb4c9f0cd5b)
1/*
2 * NET3 Protocol independent device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 5615 unchanged lines hidden (view full) ---

5624 char fb_name[IFNAMSIZ];
5625
5626 /* Ignore unmoveable devices (i.e. loopback) */
5627 if (dev->features & NETIF_F_NETNS_LOCAL)
5628 continue;
5629
5630 /* Delete virtual devices */
5631 if (dev->rtnl_link_ops && dev->rtnl_link_ops->dellink) {
1/*
2 * NET3 Protocol independent device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 5615 unchanged lines hidden (view full) ---

5624 char fb_name[IFNAMSIZ];
5625
5626 /* Ignore unmoveable devices (i.e. loopback) */
5627 if (dev->features & NETIF_F_NETNS_LOCAL)
5628 continue;
5629
5630 /* Delete virtual devices */
5631 if (dev->rtnl_link_ops && dev->rtnl_link_ops->dellink) {
5632 dev->rtnl_link_ops->dellink(dev);
5632 dev->rtnl_link_ops->dellink(dev, NULL);
5633 goto restart;
5634 }
5635
5636 /* Push remaing network devices to init_net */
5637 snprintf(fb_name, IFNAMSIZ, "dev%d", dev->ifindex);
5638 err = dev_change_net_namespace(dev, &init_net, fb_name);
5639 if (err) {
5640 printk(KERN_EMERG "%s: failed to move %s to init_net: %d\n",

--- 98 unchanged lines hidden ---
5633 goto restart;
5634 }
5635
5636 /* Push remaing network devices to init_net */
5637 snprintf(fb_name, IFNAMSIZ, "dev%d", dev->ifindex);
5638 err = dev_change_net_namespace(dev, &init_net, fb_name);
5639 if (err) {
5640 printk(KERN_EMERG "%s: failed to move %s to init_net: %d\n",

--- 98 unchanged lines hidden ---