qsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/networking/operstatesmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/networking/operstatesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/networking/operstatesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/networking/operstatesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/networking/operstatesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/networking/operstatesmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/networking/operstates.rsthKubhsection)}(hhh](htitle)}(hOperational Statesh]hOperational States}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h1. Introductionh]h1. Introduction}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(hLinux distinguishes between administrative and operational state of an interface. Administrative state is the result of "ip link set dev up or down" and reflects whether the administrator wants to use the device for traffic.h]hLinux distinguishes between administrative and operational state of an interface. Administrative state is the result of “ip link set dev up or down” and reflects whether the administrator wants to use the device for traffic.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXUHowever, an interface is not usable just because the admin enabled it - ethernet requires to be plugged into the switch and, depending on a site's networking policy and configuration, an 802.1X authentication to be performed before user data can be transferred. Operational state shows the ability of an interface to transmit this user data.h]hXWHowever, an interface is not usable just because the admin enabled it - ethernet requires to be plugged into the switch and, depending on a site’s networking policy and configuration, an 802.1X authentication to be performed before user data can be transferred. Operational state shows the ability of an interface to transmit this user data.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXGThanks to 802.1X, userspace must be granted the possibility to influence operational state. To accommodate this, operational state is split into two parts: Two flags that can be set by the driver only, and a RFC2863 compatible state that is derived from these flags, a policy, and changeable from userspace under certain rules.h]hXGThanks to 802.1X, userspace must be granted the possibility to influence operational state. To accommodate this, operational state is split into two parts: Two flags that can be set by the driver only, and a RFC2863 compatible state that is derived from these flags, a policy, and changeable from userspace under certain rules.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h] introductionah ]h"]1. introductionah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h2. Querying from userspaceh]h2. Querying from userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hBoth admin and operational state can be queried via the netlink operation RTM_GETLINK. It is also possible to subscribe to RTNLGRP_LINK to be notified of updates while the interface is admin up. This is important for setting from userspace.h]hBoth admin and operational state can be queried via the netlink operation RTM_GETLINK. It is also possible to subscribe to RTNLGRP_LINK to be notified of updates while the interface is admin up. This is important for setting from userspace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjhhubh)}(h%These values contain interface state:h]h%These values contain interface state:}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjhhubhdefinition_list)}(hhh](hdefinition_list_item)}(h4ifinfomsg::if_flags & IFF_UP: Interface is admin up h](hterm)}(hifinfomsg::if_flags & IFF_UP:h]hifinfomsg::if_flags & IFF_UP:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhK(hjBubh definition)}(hhh]h)}(hInterface is admin uph]hInterface is admin up}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjXubah}(h]h ]h"]h$]h&]uh1jVhjBubeh}(h]h ]h"]h$]h&]uh1j@hhhK(hj=ubjA)}(hifinfomsg::if_flags & IFF_RUNNING: Interface is in RFC2863 operational state UP or UNKNOWN. This is for backward compatibility, routing daemons, dhcp clients can use this flag to determine whether they should use the interface. h](jG)}(h"ifinfomsg::if_flags & IFF_RUNNING:h]h"ifinfomsg::if_flags & IFF_RUNNING:}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhK-hjuubjW)}(hhh]h)}(hInterface is in RFC2863 operational state UP or UNKNOWN. This is for backward compatibility, routing daemons, dhcp clients can use this flag to determine whether they should use the interface.h]hInterface is in RFC2863 operational state UP or UNKNOWN. This is for backward compatibility, routing daemons, dhcp clients can use this flag to determine whether they should use the interface.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jVhjuubeh}(h]h ]h"]h$]h&]uh1j@hhhK-hj=hhubjA)}(hKifinfomsg::if_flags & IFF_LOWER_UP: Driver has signaled netif_carrier_on() h](jG)}(h#ifinfomsg::if_flags & IFF_LOWER_UP:h]h#ifinfomsg::if_flags & IFF_LOWER_UP:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhK0hjubjW)}(hhh]h)}(h&Driver has signaled netif_carrier_on()h]h&Driver has signaled netif_carrier_on()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhK0hj=hhubjA)}(hJifinfomsg::if_flags & IFF_DORMANT: Driver has signaled netif_dormant_on() h](jG)}(h"ifinfomsg::if_flags & IFF_DORMANT:h]h"ifinfomsg::if_flags & IFF_DORMANT:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhK3hjubjW)}(hhh]h)}(h&Driver has signaled netif_dormant_on()h]h&Driver has signaled netif_dormant_on()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhK3hj=hhubeh}(h]h ]h"]h$]h&]uh1j;hjhhhhhNubh)}(hhh](h)}(hTLV IFLA_OPERSTATEh]hTLV IFLA_OPERSTATE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK6ubh)}(hBcontains RFC2863 state of the interface in numeric representation:h]hBcontains RFC2863 state of the interface in numeric representation:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjhhubj<)}(hhh](jA)}(hIF_OPER_UNKNOWN (0): Interface is in unknown state, neither driver nor userspace has set operational state. Interface must be considered for user data as setting operational state has not been implemented in every driver. h](jG)}(hIF_OPER_UNKNOWN (0):h]hIF_OPER_UNKNOWN (0):}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhK=hj*ubjW)}(hhh]h)}(hInterface is in unknown state, neither driver nor userspace has set operational state. Interface must be considered for user data as setting operational state has not been implemented in every driver.h]hInterface is in unknown state, neither driver nor userspace has set operational state. Interface must be considered for user data as setting operational state has not been implemented in every driver.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hj<ubah}(h]h ]h"]h$]h&]uh1jVhj*ubeh}(h]h ]h"]h$]h&]uh1j@hhhK=hj'ubjA)}(h{IF_OPER_NOTPRESENT (1): Unused in current kernel (notpresent interfaces normally disappear), just a numerical placeholder. h](jG)}(hIF_OPER_NOTPRESENT (1):h]hIF_OPER_NOTPRESENT (1):}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKAhjYubjW)}(hhh]h)}(hbUnused in current kernel (notpresent interfaces normally disappear), just a numerical placeholder.h]hbUnused in current kernel (notpresent interfaces normally disappear), just a numerical placeholder.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjkubah}(h]h ]h"]h$]h&]uh1jVhjYubeh}(h]h ]h"]h$]h&]uh1j@hhhKAhj'hhubjA)}(hwIF_OPER_DOWN (2): Interface is unable to transfer data on L1, f.e. ethernet is not plugged or interface is ADMIN down. h](jG)}(hIF_OPER_DOWN (2):h]hIF_OPER_DOWN (2):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKEhjubjW)}(hhh]h)}(hdInterface is unable to transfer data on L1, f.e. ethernet is not plugged or interface is ADMIN down.h]hdInterface is unable to transfer data on L1, f.e. ethernet is not plugged or interface is ADMIN down.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhKEhj'hhubjA)}(hqIF_OPER_LOWERLAYERDOWN (3): Interfaces stacked on an interface that is IF_OPER_DOWN show this state (f.e. VLAN). h](jG)}(hIF_OPER_LOWERLAYERDOWN (3):h]hIF_OPER_LOWERLAYERDOWN (3):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKIhjubjW)}(hhh]h)}(hTInterfaces stacked on an interface that is IF_OPER_DOWN show this state (f.e. VLAN).h]hTInterfaces stacked on an interface that is IF_OPER_DOWN show this state (f.e. VLAN).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhKIhj'hhubjA)}(hIF_OPER_TESTING (4): Interface is in testing mode, for example executing driver self-tests or media (cable) test. It can't be used for normal traffic until tests complete. h](jG)}(hIF_OPER_TESTING (4):h]hIF_OPER_TESTING (4):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKNhjubjW)}(hhh]h)}(hInterface is in testing mode, for example executing driver self-tests or media (cable) test. It can't be used for normal traffic until tests complete.h]hInterface is in testing mode, for example executing driver self-tests or media (cable) test. It can’t be used for normal traffic until tests complete.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhKNhj'hhubjA)}(hwIF_OPER_DORMANT (5): Interface is L1 up, but waiting for an external event, f.e. for a protocol to establish. (802.1X) h](jG)}(hIF_OPER_DORMANT (5):h]hIF_OPER_DORMANT (5):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKRhjubjW)}(hhh]h)}(haInterface is L1 up, but waiting for an external event, f.e. for a protocol to establish. (802.1X)h]haInterface is L1 up, but waiting for an external event, f.e. for a protocol to establish. (802.1X)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKQhj'ubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhKRhj'hhubjA)}(h=IF_OPER_UP (6): Interface is operational up and can be used. h](jG)}(hIF_OPER_UP (6):h]hIF_OPER_UP (6):}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKUhjDubjW)}(hhh]h)}(h,Interface is operational up and can be used.h]h,Interface is operational up and can be used.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKUhjVubah}(h]h ]h"]h$]h&]uh1jVhjDubeh}(h]h ]h"]h$]h&]uh1j@hhhKUhj'hhubeh}(h]h ]h"]h$]h&]uh1j;hjhhhhhNubh)}(h'This TLV can also be queried via sysfs.h]h'This TLV can also be queried via sysfs.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKWhjhhubeh}(h]tlv-ifla-operstateah ]h"]tlv ifla_operstateah$]h&]uh1hhjhhhhhK6ubh)}(hhh](h)}(hTLV IFLA_LINKMODEh]hTLV IFLA_LINKMODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKZubh)}(hOcontains link policy. This is needed for userspace interaction described below.h]hOcontains link policy. This is needed for userspace interaction described below.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjhhubh)}(h'This TLV can also be queried via sysfs.h]h'This TLV can also be queried via sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjhhubeh}(h]tlv-ifla-linkmodeah ]h"]tlv ifla_linkmodeah$]h&]uh1hhjhhhhhKZubeh}(h]querying-from-userspaceah ]h"]2. querying from userspaceah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h3. Kernel driver APIh]h3. Kernel driver API}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKcubh)}(hXBKernel drivers have access to two flags that map to IFF_LOWER_UP and IFF_DORMANT. These flags can be set from everywhere, even from interrupts. It is guaranteed that only the driver has write access, however, if different layers of the driver manipulate the same flag, the driver has to provide the synchronisation needed.h]hXBKernel drivers have access to two flags that map to IFF_LOWER_UP and IFF_DORMANT. These flags can be set from everywhere, even from interrupts. It is guaranteed that only the driver has write access, however, if different layers of the driver manipulate the same flag, the driver has to provide the synchronisation needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehjhhubh)}(h.__LINK_STATE_NOCARRIER, maps to !IFF_LOWER_UP:h]h.__LINK_STATE_NOCARRIER, maps to !IFF_LOWER_UP:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhjhhubh)}(hThe driver uses netif_carrier_on() to clear and netif_carrier_off() to set this flag. On netif_carrier_off(), the scheduler stops sending packets. The name 'carrier' and the inversion are historical, think of it as lower layer.h]hThe driver uses netif_carrier_on() to clear and netif_carrier_off() to set this flag. On netif_carrier_off(), the scheduler stops sending packets. The name ‘carrier’ and the inversion are historical, think of it as lower layer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKmhjhhubh)}(hNote that for certain kind of soft-devices, which are not managing any real hardware, it is possible to set this bit from userspace. One should use TLV IFLA_CARRIER to do so.h]hNote that for certain kind of soft-devices, which are not managing any real hardware, it is possible to set this bit from userspace. One should use TLV IFLA_CARRIER to do so.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjhhubh)}(h1netif_carrier_ok() can be used to query that bit.h]h1netif_carrier_ok() can be used to query that bit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjhhubh)}(h*__LINK_STATE_DORMANT, maps to IFF_DORMANT:h]h*__LINK_STATE_DORMANT, maps to IFF_DORMANT:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjhhubh)}(hXSet by the driver to express that the device cannot yet be used because some driver controlled protocol establishment has to complete. Corresponding functions are netif_dormant_on() to set the flag, netif_dormant_off() to clear it and netif_dormant() to query.h]hXSet by the driver to express that the device cannot yet be used because some driver controlled protocol establishment has to complete. Corresponding functions are netif_dormant_on() to set the flag, netif_dormant_off() to clear it and netif_dormant() to query.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjhhubh)}(hOn device allocation, both flags __LINK_STATE_NOCARRIER and __LINK_STATE_DORMANT are cleared, so the effective state is equivalent to netif_carrier_ok() and !netif_dormant().h]hOn device allocation, both flags __LINK_STATE_NOCARRIER and __LINK_STATE_DORMANT are cleared, so the effective state is equivalent to netif_carrier_ok() and !netif_dormant().}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hWhenever the driver CHANGES one of these flags, a workqueue event is scheduled to translate the flag combination to IFLA_OPERSTATE as follows:h]hWhenever the driver CHANGES one of these flags, a workqueue event is scheduled to translate the flag combination to IFLA_OPERSTATE as follows:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj<)}(hhh](jA)}(h!netif_carrier_ok(): IF_OPER_LOWERLAYERDOWN if the interface is stacked, IF_OPER_DOWN otherwise. Kernel can recognise stacked interfaces because their ifindex != iflink. h](jG)}(h!netif_carrier_ok():h]h!netif_carrier_ok():}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKhj^ubjW)}(hhh]h)}(hIF_OPER_LOWERLAYERDOWN if the interface is stacked, IF_OPER_DOWN otherwise. Kernel can recognise stacked interfaces because their ifindex != iflink.h]hIF_OPER_LOWERLAYERDOWN if the interface is stacked, IF_OPER_DOWN otherwise. Kernel can recognise stacked interfaces because their ifindex != iflink.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjpubah}(h]h ]h"]h$]h&]uh1jVhj^ubeh}(h]h ]h"]h$]h&]uh1j@hhhKhj[ubjA)}(h7netif_carrier_ok() && netif_dormant(): IF_OPER_DORMANT h](jG)}(h&netif_carrier_ok() && netif_dormant():h]h&netif_carrier_ok() && netif_dormant():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKhjubjW)}(hhh]h)}(hIF_OPER_DORMANTh]hIF_OPER_DORMANT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhKhj[hhubjA)}(hnetif_carrier_ok() && !netif_dormant(): IF_OPER_UP if userspace interaction is disabled. Otherwise IF_OPER_DORMANT with the possibility for userspace to initiate the IF_OPER_UP transition afterwards. h](jG)}(h'netif_carrier_ok() && !netif_dormant():h]h'netif_carrier_ok() && !netif_dormant():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhhhKhjubjW)}(hhh]h)}(hIF_OPER_UP if userspace interaction is disabled. Otherwise IF_OPER_DORMANT with the possibility for userspace to initiate the IF_OPER_UP transition afterwards.h]hIF_OPER_UP if userspace interaction is disabled. Otherwise IF_OPER_DORMANT with the possibility for userspace to initiate the IF_OPER_UP transition afterwards.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]uh1j@hhhKhj[hhubeh}(h]h ]h"]h$]h&]uh1j;hjhhhhhNubeh}(h]kernel-driver-apiah ]h"]3. kernel driver apiah$]h&]uh1hhhhhhhhKcubh)}(hhh](h)}(h4. Setting from userspaceh]h4. Setting from userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX:Applications have to use the netlink interface to influence the RFC2863 operational state of an interface. Setting IFLA_LINKMODE to 1 via RTM_SETLINK instructs the kernel that an interface should go to IF_OPER_DORMANT instead of IF_OPER_UP when the combination netif_carrier_ok() && !netif_dormant() is set by the driver. Afterwards, the userspace application can set IFLA_OPERSTATE to IF_OPER_DORMANT or IF_OPER_UP as long as the driver does not set netif_carrier_off() or netif_dormant_on(). Changes made by userspace are multicasted on the netlink group RTNLGRP_LINK.h]hX:Applications have to use the netlink interface to influence the RFC2863 operational state of an interface. Setting IFLA_LINKMODE to 1 via RTM_SETLINK instructs the kernel that an interface should go to IF_OPER_DORMANT instead of IF_OPER_UP when the combination netif_carrier_ok() && !netif_dormant() is set by the driver. Afterwards, the userspace application can set IFLA_OPERSTATE to IF_OPER_DORMANT or IF_OPER_UP as long as the driver does not set netif_carrier_off() or netif_dormant_on(). Changes made by userspace are multicasted on the netlink group RTNLGRP_LINK.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hESo basically a 802.1X supplicant interacts with the kernel like this:h]hESo basically a 802.1X supplicant interacts with the kernel like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh bullet_list)}(hhh](h list_item)}(hsubscribe to RTNLGRP_LINKh]h)}(hj/h]hsubscribe to RTNLGRP_LINK}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj-ubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(h&set IFLA_LINKMODE to 1 via RTM_SETLINKh]h)}(hjFh]h&set IFLA_LINKMODE to 1 via RTM_SETLINK}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjDubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(h+query RTM_GETLINK once to get initial stateh]h)}(hj]h]h+query RTM_GETLINK once to get initial state}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[ubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(hhif initial flags are not (IFF_LOWER_UP && !IFF_DORMANT), wait until netlink multicast signals this stateh]h)}(hhif initial flags are not (IFF_LOWER_UP && !IFF_DORMANT), wait until netlink multicast signals this stateh]hhif initial flags are not (IFF_LOWER_UP && !IFF_DORMANT), wait until netlink multicast signals this state}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjrubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(h2do 802.1X, eventually abort if flags go down againh]h)}(hjh]h2do 802.1X, eventually abort if flags go down again}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(hesend RTM_SETLINK to set operstate to IF_OPER_UP if authentication succeeds, IF_OPER_DORMANT otherwiseh]h)}(hesend RTM_SETLINK to set operstate to IF_OPER_UP if authentication succeeds, IF_OPER_DORMANT otherwiseh]hesend RTM_SETLINK to set operstate to IF_OPER_UP if authentication succeeds, IF_OPER_DORMANT otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(hAsee how operstate and IFF_RUNNING is echoed via netlink multicasth]h)}(hjh]hAsee how operstate and IFF_RUNNING is echoed via netlink multicast}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(hFset interface back to IF_OPER_DORMANT if 802.1X reauthentication failsh]h)}(hFset interface back to IF_OPER_DORMANT if 802.1X reauthentication failsh]hFset interface back to IF_OPER_DORMANT if 802.1X reauthentication fails}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubj,)}(h;restart if kernel changes IFF_LOWER_UP or IFF_DORMANT flag h]h)}(h:restart if kernel changes IFF_LOWER_UP or IFF_DORMANT flagh]h:restart if kernel changes IFF_LOWER_UP or IFF_DORMANT flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j+hj(hhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1j&hhhKhjhhubh)}(hZif supplicant goes down, bring back IFLA_LINKMODE to 0 and IFLA_OPERSTATE to a sane value.h]hZif supplicant goes down, bring back IFLA_LINKMODE to 0 and IFLA_OPERSTATE to a sane value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hA routing daemon or dhcp client just needs to care for IFF_RUNNING or waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before considering the interface / querying a DHCP address.h]hA routing daemon or dhcp client just needs to care for IFF_RUNNING or waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before considering the interface / querying a DHCP address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h\For technical questions and/or comments please e-mail to Stefan Rompf (stefan at loplof.de).h]h\For technical questions and/or comments please e-mail to Stefan Rompf (stefan at loplof.de).}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]setting-from-userspaceah ]h"]4. setting from userspaceah$]h&]uh1hhhhhhhhKubeh}(h]operational-statesah ]h"]operational statesah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjeerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j?j<j jjjjjjjjjj7j4u nametypes}(j?j jjjjj7uh}(j<hjhjjjjjjjjj4ju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.