summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-network.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-16 02:27:01 +0100
committerGitHub <noreply@github.com>2021-11-16 02:27:01 +0100
commit7777024dab402b780472daf1ceb6afb3460b388d (patch)
treef08cd702577d8962e25fbe8f7a6d3699da16656f /src/network/networkd-network.h
parentMerge pull request #21235 from bacher09/slava/supress_ifgroup (diff)
parentnetwork: make IgnoreCarrierLoss= also take timespan (diff)
downloadsystemd-7777024dab402b780472daf1ceb6afb3460b388d.tar.xz
systemd-7777024dab402b780472daf1ceb6afb3460b388d.zip
Merge pull request #21344 from yuwata/network-ignore-carrier-loss-timespan
network: make IgnoreCarrierLoss= also take a timespan
Diffstat (limited to 'src/network/networkd-network.h')
-rw-r--r--src/network/networkd-network.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
index fb79ee8509..626b7710f0 100644
--- a/src/network/networkd-network.h
+++ b/src/network/networkd-network.h
@@ -109,7 +109,8 @@ struct Network {
/* misc settings */
bool configure_without_carrier;
- int ignore_carrier_loss;
+ bool ignore_carrier_loss_set;
+ usec_t ignore_carrier_loss_usec; /* timespan */
KeepConfiguration keep_configuration;
char **bind_carrier;
bool default_route_on_device;
@@ -383,6 +384,7 @@ CONFIG_PARSER_PROTOTYPE(config_parse_keep_configuration);
CONFIG_PARSER_PROTOTYPE(config_parse_ipv6_link_local_address_gen_mode);
CONFIG_PARSER_PROTOTYPE(config_parse_activation_policy);
CONFIG_PARSER_PROTOTYPE(config_parse_link_group);
+CONFIG_PARSER_PROTOTYPE(config_parse_ignore_carrier_loss);
const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, GPERF_LEN_TYPE length);