summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-network.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-03-06 06:29:49 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-03-13 06:29:03 +0100
commit4ac77d63e999d59697c758f8304e55f19c160ecb (patch)
treedbc9bd373d237f69abcc2dad29a23fba62063e05 /src/network/networkd-network.h
parenthashmap: add hashmap_free_free_keyp and friend (diff)
downloadsystemd-4ac77d63e999d59697c758f8304e55f19c160ecb.tar.xz
systemd-4ac77d63e999d59697c758f8304e55f19c160ecb.zip
network: make RequiredForOnline= also take operational state
This will be used by systemd-networkd-wait-online.
Diffstat (limited to '')
-rw-r--r--src/network/networkd-network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
index 2f7b6133fd..2561bba1bc 100644
--- a/src/network/networkd-network.h
+++ b/src/network/networkd-network.h
@@ -241,6 +241,7 @@ struct Network {
bool iaid_set;
bool required_for_online; /* Is this network required to be considered online? */
+ LinkOperationalState required_operstate_for_online;
LLDPMode lldp_mode; /* LLDP reception */
LLDPEmit lldp_emit; /* LLDP transmission */
@@ -324,6 +325,7 @@ CONFIG_PARSER_PROTOTYPE(config_parse_section_route_table);
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_user_class);
CONFIG_PARSER_PROTOTYPE(config_parse_ntp);
CONFIG_PARSER_PROTOTYPE(config_parse_iaid);
+CONFIG_PARSER_PROTOTYPE(config_parse_required_for_online);
/* Legacy IPv4LL support */
CONFIG_PARSER_PROTOTYPE(config_parse_ipv4ll);