Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ip_up_down [2018/10/04 11:09] – [dev_ifsioc()] rpjdayip_up_down [2018/10/04 11:09] (current) – [__dev_change_flags()] rpjday
Line 525: Line 525:
       (dev->flags & (IFF_UP | IFF_VOLATILE | IFF_PROMISC |       (dev->flags & (IFF_UP | IFF_VOLATILE | IFF_PROMISC |
      IFF_ALLMULTI));      IFF_ALLMULTI));
 +
 +... snip ...
 +
 + ret = 0;
 + if ((old_flags ^ flags) & IFF_UP) {
 + if (old_flags & IFF_UP)
 + __dev_close(dev);
 + else
 + ret = __dev_open(dev);
 + }
 </code> </code>
  • ip_up_down.1538651360.txt.gz
  • Last modified: 2018/10/04 11:09
  • by rpjday