User Tools

Site Tools


ip_up_down

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]
rpjday [dev_ifsioc()]
ip_up_down [2018/10/04 11:09] (current)
rpjday [__dev_change_flags()]
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.txt ยท Last modified: 2018/10/04 11:09 by rpjday