aboutsummaryrefslogtreecommitdiff
path: root/addrconf.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 /addrconf.c
parentd9f9f7c2dcd7bfe811180c5d81bead4559a4fb2e (diff)
minor spelling fix (no behavior change): s/DURATITION/DURATION/
(pointed out by Ted Lemon)
Diffstat (limited to 'addrconf.c')
-rw-r--r--addrconf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/addrconf.c b/addrconf.c
index f1b9d1e..c8e0fc9 100644
--- a/addrconf.c
+++ b/addrconf.c
@@ -119,8 +119,8 @@ update_address(ia, addr, dhcpifp, ctlp, callback)
* lifetime is greater than the valid lifetime.
* [RFC3315 22.6]
*/
- if (addr->vltime != DHCP6_DURATITION_INFINITE &&
- (addr->pltime == DHCP6_DURATITION_INFINITE ||
+ if (addr->vltime != DHCP6_DURATION_INFINITE &&
+ (addr->pltime == DHCP6_DURATION_INFINITE ||
addr->pltime > addr->vltime)) {
dprintf(LOG_INFO, FNAME, "invalid address %s: "
"pltime (%lu) is larger than vltime (%lu)",
@@ -184,7 +184,7 @@ update_address(ia, addr, dhcpifp, ctlp, callback)
case 0:
remove_addr(sa);
break;
- case DHCP6_DURATITION_INFINITE:
+ case DHCP6_DURATION_INFINITE:
if (sa->timer)
dhcp6_remove_timer(&sa->timer);
break;
@@ -257,7 +257,7 @@ duration_addr(iac)
{
struct iactl_na *iac_na = (struct iactl_na *)iac;
struct statefuladdr *sa;
- 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. */
@@ -269,7 +269,7 @@ duration_addr(iac)
pltime = sa->addr.pltime > passed ?
sa->addr.pltime - passed : 0;
- if (base == DHCP6_DURATITION_INFINITE || pltime < base)
+ if (base == DHCP6_DURATION_INFINITE || pltime < base)
base = pltime;
}