diff options
author | Kaspar Schleiser <kaspar@schleiser.de> | 2014-01-07 13:58:38 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-01-27 14:16:44 +0100 |
commit | 62ea2821e389332d13cc05eb1ac6e77a7787f2db (patch) | |
tree | 73af795a9e69583e64dafc48d58a07b2cd3741f9 /src/odhcp6c.h | |
parent | 8152153cb9c5b09862bf0c8a0d1005fa8dfdf262 (diff) | |
download | odhcp6c-62ea2821e389332d13cc05eb1ac6e77a7787f2db.tar.gz |
fix NTP server option handling
previously, only option 56 (NTP server) was supported, but named SNTP_*
throughout code and in the scripts environment. This patch fixes this and adds
optnion 31 (SNTP Servers) support. Uses NTP_IP and NTP_FQDN and SNTP_IP in
script environment.
Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
Diffstat (limited to 'src/odhcp6c.h')
-rw-r--r-- | src/odhcp6c.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/odhcp6c.h b/src/odhcp6c.h index d4458ff..e3c6c5e 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -49,6 +49,7 @@ enum dhcvp6_opt { DHCPV6_OPT_DNS_DOMAIN = 24, DHCPV6_OPT_IA_PD = 25, DHCPV6_OPT_IA_PREFIX = 26, + DHCPV6_OPT_SNTP_SERVERS = 31, DHCPV6_OPT_INFO_REFRESH = 32, DHCPV6_OPT_FQDN = 39, DHCPV6_OPT_NTP_SERVER = 56, @@ -193,7 +194,8 @@ enum odhcp6c_state { STATE_IA_PD, STATE_CUSTOM_OPTS, STATE_SNTP_IP, - STATE_SNTP_FQDN, + STATE_NTP_IP, + STATE_NTP_FQDN, STATE_SIP_IP, STATE_SIP_FQDN, STATE_RA_ROUTE, |