X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-network.h;h=a72e6c4bf1f977e2ed89e62ad144cebfe26351ba;hb=8434fd5cf23f998a0f3a0f947a4308a8c18ba7a5;hp=44c4e97447c64aff79bc06ff6e2a044f317aabad;hpb=03cc0fd1431b82e59c11ae12a274c1f2df23169d;p=elogind.git diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h index 44c4e9744..a72e6c4bf 100644 --- a/src/systemd/sd-network.h +++ b/src/systemd/sd-network.h @@ -50,7 +50,7 @@ _SD_BEGIN_DECLARATIONS; /* Get overall operational state - * Possible states: unknown, dormant, carrier, degraded, routable + * Possible states: down, up, dormant, carrier, degraded, routable * Possible return codes: * -ENODATA: networkd is not aware of any links */ @@ -65,10 +65,15 @@ int sd_network_get_dns(char ***addr); int sd_network_get_ntp(char ***addr); /* Get state from ifindex. - * Possible states: failed, configuring, configured, unmanaged + * Possible states: + * pending: udev is still processing the link, we don't yet know if we will manage it + * failed: networkd failed to manage the link + * configuring: in the process of retrieving configuration or configuring the link + * configured: link configured successfully + * unmanaged: networkd is not handling the link + * linger: the link is gone, but has not yet been dropped by networkd * Possible return codes: * -ENODATA: networkd is not aware of the link - * -EBUSY: udev is still processing the link, networkd does not yet know if it will manage it */ int sd_network_get_link_state(int ifindex, char **state);