2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Soft binding side-effects

This commit is contained in:
Francis Dupont
2008-02-21 10:31:25 +00:00
parent cabdb9b1c5
commit 5d89d60f14
6 changed files with 192 additions and 180 deletions

View File

@@ -4317,7 +4317,8 @@ parse_ia_na_declaration(struct parse *cfile) {
}
memcpy(&iaaddr->addr, iaddr.iabuf, sizeof(iaaddr->addr));
iaaddr->state = state;
iaaddr->valid_lifetime_end_time = end_time;
if (iaaddr->state == FTS_RELEASED)
iaaddr->hard_lifetime_end_time = end_time;
if (scope != NULL) {
binding_scope_reference(&iaaddr->scope, scope, MDL);
@@ -4611,7 +4612,8 @@ parse_ia_ta_declaration(struct parse *cfile) {
}
memcpy(&iaaddr->addr, iaddr.iabuf, sizeof(iaaddr->addr));
iaaddr->state = state;
iaaddr->valid_lifetime_end_time = end_time;
if (iaaddr->state == FTS_RELEASED)
iaaddr->hard_lifetime_end_time = end_time;
if (scope != NULL) {
binding_scope_reference(&iaaddr->scope, scope, MDL);
@@ -4906,7 +4908,8 @@ parse_ia_pd_declaration(struct parse *cfile) {
memcpy(&iapref->pref, iaddr.iabuf, sizeof(iapref->pref));
iapref->plen = plen;
iapref->state = state;
iapref->valid_lifetime_end_time = end_time;
if (iapref->state == FTS_RELEASED)
iapref->hard_lifetime_end_time = end_time;
if (scope != NULL) {
binding_scope_reference(&iapref->scope, scope, MDL);