aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2006-07-13 14:26:02 +0000
committerSUZUKI, Shinsuke <suz@kame.net>2006-07-13 14:26:02 +0000
commitdb29f46178d816efe4061a849903a51fca6becf3 (patch)
tree323c03c356538abcf71a72c4aa060e6c55ccfc91 /config.c
parent1acc2e20feab9eaf4266cb479bb2d652e10b22a8 (diff)
stop using ifdefs for already standardized options
Diffstat (limited to 'config.c')
-rw-r--r--config.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/config.c b/config.c
index 70185c9..49821b0 100644
--- a/config.c
+++ b/config.c
@@ -1094,7 +1094,6 @@ configure_global_option()
/* NTP servers */
TAILQ_INIT(&ntplist0);
for (cl = cf_ntp_list; cl; cl = cl->next) {
-#ifdef USE_DH6OPT_NTP
/* duplication check */
if (dhcp6_find_listval(&ntplist0, DHCP6_LISTVAL_ADDR6,
cl->ptr, 0)) {
@@ -1109,22 +1108,11 @@ configure_global_option()
dprintf(LOG_ERR, FNAME, "failed to add an NTP server");
goto bad;
}
-#else
- dprintf(LOG_ERR, FNAME,
- "the support for NTP option is disabled");
- goto bad;
-#endif
}
/* Lifetime for stateless options */
if (cf_refreshtime >= 0) {
-#ifdef USE_DH6OPT_REFRESHTIME
optrefreshtime0 = cf_refreshtime;
-#else
- dprintf(LOG_ERR, FNAME, "the support for "
- "information refresh time option is disabled");
- goto bad;
-#endif
}
return (0);
@@ -1655,22 +1643,10 @@ add_options(opcode, ifc, cfl0)
opttype = DH6OPT_DNSNAME;
break;
case DHCPOPT_NTP:
-#ifdef USE_DH6OPT_NTP
opttype = DH6OPT_NTP;
-#else
- dprintf(LOG_ERR, FNAME, "the support "
- "for NTP option is disabled");
-#endif
break;
case DHCPOPT_REFRESHTIME:
-#ifdef USE_DH6OPT_REFRESHTIME
opttype = DH6OPT_REFRESHTIME;
-#else
- dprintf(LOG_ERR, FNAME, "the support "
- "for information refresh time option "
- "is disabled");
- return (-1);
-#endif
break;
}
switch(opcode) {