summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-network.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-03 19:05:26 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-06 15:50:29 +0200
commit95355a281c06c5970b7355c38b066910c3be4958 (patch)
treedd511f32f60f65059e1148ac04e9f822ab6fa070 /src/network/networkd-network.h
parentnetworkd: add support to keep configuration (diff)
downloadsystemd-95355a281c06c5970b7355c38b066910c3be4958.tar.xz
systemd-95355a281c06c5970b7355c38b066910c3be4958.zip
network: add KeepConfiguration=dhcp-on-stop
The option prevents to drop lease address on stop. By setting this, we can safely restart networkd.
Diffstat (limited to 'src/network/networkd-network.h')
-rw-r--r--src/network/networkd-network.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
index ca1c6fcdb3..7b92a54426 100644
--- a/src/network/networkd-network.h
+++ b/src/network/networkd-network.h
@@ -79,10 +79,12 @@ typedef enum RADVPrefixDelegation {
} RADVPrefixDelegation;
typedef enum KeepConfiguration {
- KEEP_CONFIGURATION_NO = 0,
- KEEP_CONFIGURATION_DHCP = 1 << 0,
- KEEP_CONFIGURATION_STATIC = 1 << 1,
- KEEP_CONFIGURATION_YES = KEEP_CONFIGURATION_DHCP | KEEP_CONFIGURATION_STATIC,
+ KEEP_CONFIGURATION_NO = 0,
+ KEEP_CONFIGURATION_DHCP_ON_START = 1 << 0,
+ KEEP_CONFIGURATION_DHCP_ON_STOP = 1 << 1,
+ KEEP_CONFIGURATION_DHCP = KEEP_CONFIGURATION_DHCP_ON_START | KEEP_CONFIGURATION_DHCP_ON_STOP,
+ KEEP_CONFIGURATION_STATIC = 1 << 2,
+ KEEP_CONFIGURATION_YES = KEEP_CONFIGURATION_DHCP | KEEP_CONFIGURATION_STATIC,
_KEEP_CONFIGURATION_MAX,
_KEEP_CONFIGURATION_INVALID = -1,
} KeepConfiguration;