Searched refs:operstate (Results 1 – 12 of 12) sorted by relevance
53 unsigned char operstate = default_operstate(dev); in rfc2863_policy() local55 if (operstate == dev->operstate) in rfc2863_policy()62 if (operstate == IF_OPER_UP) in rfc2863_policy()63 operstate = IF_OPER_TESTING; in rfc2863_policy()67 if (operstate == IF_OPER_UP) in rfc2863_policy()68 operstate = IF_OPER_DORMANT; in rfc2863_policy()75 dev->operstate = operstate; in rfc2863_policy()
305 unsigned char operstate; in operstate_show() local308 operstate = netdev->operstate; in operstate_show()310 operstate = IF_OPER_DOWN; in operstate_show()313 if (operstate >= ARRAY_SIZE(operstates)) in operstate_show()316 return sprintf(buf, "%s\n", operstates[operstate]); in operstate_show()318 static DEVICE_ATTR_RO(operstate);
827 unsigned char operstate = dev->operstate; in set_operstate() local831 if ((operstate == IF_OPER_DORMANT || in set_operstate()832 operstate == IF_OPER_TESTING || in set_operstate()833 operstate == IF_OPER_UNKNOWN) && in set_operstate()835 operstate = IF_OPER_UP; in set_operstate()839 if (operstate == IF_OPER_UP || in set_operstate()840 operstate == IF_OPER_UNKNOWN) in set_operstate()841 operstate = IF_OPER_TESTING; in set_operstate()845 if (operstate == IF_OPER_UP || in set_operstate()846 operstate == IF_OPER_UNKNOWN) in set_operstate()[all …]
9776 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()9781 if (rootdev->operstate == IF_OPER_TESTING) in netif_stacked_transfer_operstate()
34 if (dev->operstate != transition) { in __hsr_set_operstate()35 dev->operstate = transition; in __hsr_set_operstate()81 if (hsr_dev->operstate == IF_OPER_UP && old_operstate != IF_OPER_UP) { in hsr_check_announce()88 if (hsr_dev->operstate != IF_OPER_UP && old_operstate == IF_OPER_UP) in hsr_check_announce()103 old_operstate = master->dev->operstate; in hsr_check_carrier_and_operstate()
169 - send RTM_SETLINK to set operstate to IF_OPER_UP if authentication171 - see how operstate and IFF_RUNNING is echoed via netlink multicast180 waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before
383 u8 operstate = netif_running(dev) ? dev->operstate : IF_OPER_DOWN; in br_fill_ifinfo() local412 nla_put_u8(skb, IFLA_OPERSTATE, operstate) || in br_fill_ifinfo()
244 What: /sys/class/net/<iface>/operstate
1969 unsigned char operstate; member4137 return (dev->operstate == IF_OPER_UP || in netif_oper_up()4138 dev->operstate == IF_OPER_UNKNOWN /* backward compat */); in netif_oper_up()
1210 dev->operstate = IF_OPER_UP; in vrf_dev_init()
5883 netif_running(dev) ? dev->operstate : IF_OPER_DOWN)) in inet6_fill_ifinfo()
2728 + u8 operstate = netif_running(netdev) ?2729 + netdev->operstate : IF_OPER_DOWN;2742 + err = nla_put_u8(skb, IFLA_OPERSTATE, operstate);