aboutsummaryrefslogtreecommitdiff
path: root/prefixconf.c
diff options
context:
space:
mode:
authorJINMEI, Tatuya <jinmei@isl.rdc.toshiba.co.jp>2006-08-07 04:35:32 +0000
committerJINMEI, Tatuya <jinmei@isl.rdc.toshiba.co.jp>2006-08-07 04:35:32 +0000
commit26ff90dadfa215eaeb5008bd6d50fe1db5969a13 (patch)
treeb5d5ad2f4faeff38fa1b5747e41c6189b154675a /prefixconf.c
parentd9f9f7c2dcd7bfe811180c5d81bead4559a4fb2e (diff)
minor spelling fix (no behavior change): s/DURATITION/DURATION/
(pointed out by Ted Lemon)
Diffstat (limited to 'prefixconf.c')
-rw-r--r--prefixconf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/prefixconf.c b/prefixconf.c
index 07c9f9b..3fc0358 100644
--- a/prefixconf.c
+++ b/prefixconf.c
@@ -138,8 +138,8 @@ update_prefix(ia, pinfo, pifc, dhcpifp, ctlp, callback)
* lifetime is greater than the valid lifetime.
* [RFC3315 22.6]
*/
- if (pinfo->vltime != DHCP6_DURATITION_INFINITE &&
- (pinfo->pltime == DHCP6_DURATITION_INFINITE ||
+ if (pinfo->vltime != DHCP6_DURATION_INFINITE &&
+ (pinfo->pltime == DHCP6_DURATION_INFINITE ||
pinfo->pltime > pinfo->vltime)) {
dprintf(LOG_INFO, FNAME, "invalid prefix %s/%d: "
"pltime (%lu) is larger than vltime (%lu)",
@@ -227,7 +227,7 @@ update_prefix(ia, pinfo, pifc, dhcpifp, ctlp, callback)
case 0:
remove_siteprefix(sp);
break;
- case DHCP6_DURATITION_INFINITE:
+ case DHCP6_DURATION_INFINITE:
if (sp->timer)
dhcp6_remove_timer(&sp->timer);
break;
@@ -310,7 +310,7 @@ duration(iac)
{
struct iactl_pd *iac_pd = (struct iactl_pd *)iac;
struct siteprefix *sp;
- u_int32_t base = DHCP6_DURATITION_INFINITE, pltime, passed;
+ u_int32_t base = DHCP6_DURATION_INFINITE, pltime, passed;
time_t now;
/* Determine the smallest period until pltime expires. */
@@ -322,7 +322,7 @@ duration(iac)
pltime = sp->prefix.pltime > passed ?
sp->prefix.pltime - passed : 0;
- if (base == DHCP6_DURATITION_INFINITE || pltime < base)
+ if (base == DHCP6_DURATION_INFINITE || pltime < base)
base = pltime;
}