加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

IFF_UP和IFF_RUNNING有什么区别?

发布时间:2020-12-16 04:59:22 所属栏目:百科 来源:网络整理
导读:这两个标志经常被设置在一起.他们有什么区别? 解决方法 从 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 indi
这两个标志经常被设置在一起.他们有什么区别?

解决方法

从 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进行运行).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读