diff options
author | LetzteInstanz <faust6@inbox.ru> | 2021-03-21 08:37:38 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-04-14 01:30:18 +0200 |
commit | 86ae2d69a3b07de23f0c4ddb1fa3e5ec8bc85c1b (patch) | |
tree | ae38adaa177476c1c6fcde515d997034de76c5bb /src/libsystemd/sd-network | |
parent | udev: delete useless codes (diff) | |
download | systemd-86ae2d69a3b07de23f0c4ddb1fa3e5ec8bc85c1b.tar.xz systemd-86ae2d69a3b07de23f0c4ddb1fa3e5ec8bc85c1b.zip |
network: move AddressFamily into network-util for the use by wait-online later
Diffstat (limited to 'src/libsystemd/sd-network')
-rw-r--r-- | src/libsystemd/sd-network/network-util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libsystemd/sd-network/network-util.h b/src/libsystemd/sd-network/network-util.h index dd6a7dbe88..ad8632d012 100644 --- a/src/libsystemd/sd-network/network-util.h +++ b/src/libsystemd/sd-network/network-util.h @@ -11,6 +11,16 @@ bool network_is_online(void); +typedef enum AddressFamily { + /* This is a bitmask, though it usually doesn't feel that way! */ + ADDRESS_FAMILY_NO = 0, + ADDRESS_FAMILY_IPV4 = 1 << 0, + ADDRESS_FAMILY_IPV6 = 1 << 1, + ADDRESS_FAMILY_YES = ADDRESS_FAMILY_IPV4 | ADDRESS_FAMILY_IPV6, + _ADDRESS_FAMILY_MAX, + _ADDRESS_FAMILY_INVALID = -EINVAL, +} AddressFamily; + typedef enum LinkOperationalState { LINK_OPERSTATE_MISSING, LINK_OPERSTATE_OFF, |