Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| ip_up_down [2018/10/04 11:09] – [dev_ifsioc()] rpjday | ip_up_down [2018/10/04 11:09] (current) – [__dev_change_flags()] rpjday | ||
|---|---|---|---|
| Line 525: | Line 525: | ||
| | | ||
| 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); | ||
| + | } | ||
| </ | </ | ||