diff options
author | Susant Sahani <ssahani@vmware.com> | 2020-07-02 01:03:17 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-02 09:18:48 +0200 |
commit | 838d39af93e16e749ef90acf915a634b380abbf6 (patch) | |
tree | 8a318c57240094f58afb372fa339b5bab7e7d765 /src/network/networkd-dhcp6.h | |
parent | l10n: update Czech Translation (diff) | |
download | systemd-838d39af93e16e749ef90acf915a634b380abbf6.tar.xz systemd-838d39af93e16e749ef90acf915a634b380abbf6.zip |
network: Allow DHCPv6 client to start solicit mode
Now DHCPv6 client start only DHCPv6 INFORMATION-REQUEST mode.
Let's enable Solicit mode too.
Diffstat (limited to 'src/network/networkd-dhcp6.h')
-rw-r--r-- | src/network/networkd-dhcp6.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/network/networkd-dhcp6.h b/src/network/networkd-dhcp6.h index 913410fe77..858559a1e0 100644 --- a/src/network/networkd-dhcp6.h +++ b/src/network/networkd-dhcp6.h @@ -4,6 +4,15 @@ #include "sd-dhcp6-client.h" #include "conf-parser.h" +#include "macro.h" + +typedef enum DHCP6ClientStartMode { + DHCP6_CLIENT_START_MODE_NO, + DHCP6_CLIENT_START_MODE_INFORMATION_REQUEST, + DHCP6_CLIENT_START_MODE_SOLICIT, + _DHCP6_CLIENT_START_MODE_MAX, + _DHCP6_CLIENT_START_MODE_INVALID = -1, +} DHCP6ClientStartMode; typedef struct Link Link; typedef struct Manager Manager; @@ -17,3 +26,7 @@ int dhcp6_prefix_remove(Manager *m, struct in6_addr *addr); CONFIG_PARSER_PROTOTYPE(config_parse_dhcp6_pd_hint); CONFIG_PARSER_PROTOTYPE(config_parse_dhcp6_mud_url); CONFIG_PARSER_PROTOTYPE(config_parse_dhcp6_delegated_prefix_token); +CONFIG_PARSER_PROTOTYPE(config_parse_dhcp6_client_start_mode); + +const char* dhcp6_client_start_mode_to_string(DHCP6ClientStartMode i) _const_; +DHCP6ClientStartMode dhcp6_client_start_mode_from_string(const char *s) _pure_; |