这两个标志经常被设置在一起.他们有什么区别?
解决方法
从
Linux Device Drivers 3:
IFF_UP
This flag is read-only for the driver. The kernel turns it on when the interface is active and ready to transfer packets.…
IFF_RUNNING
This flag indicates that the interface is up and running. It is mostly
present for BSD compatibility; the kernel makes little use of it. Most
network drivers need not worry about IFF_RUNNING.
挖一点点,似乎有一个显着的区别:
IFF_RUNNING应该反映网络接口的运行状态,而不是其管理状态.为了提供一个示例,管理员可以使用以太网接口(例如ifconfig eth0 up),但是如果电缆没有插入,则它将不被认为是可操作的(即按照RFC2863进行运行).