
4.4 Client Implementation 371
317–320 This should only happen in response to a Renew or Rebind message, and should be
ignored in any other cases.
Note: This check is almost redundant, since it is explicitly ensured by the caller.
Discard Old Event Data
Listing 4-59
dhcp6c_ia.c
322 /* cancel the current event for the prefix. */
323 if (ia->evdata) {
324 TAILQ_REMOVE(&ia->evdata->event->data_list, ia->evdata, link);
325 if (ia->evdata->destructor)
326 ia->evdata->destructor(ia->evdata);
327 else
328 free(ia->evdata);
329 ia->evdata = NULL;
330 }
331
332 /* we don’t need a timer for the IA (see comments in ia_timo()) */
333 if (ia->timer)
334 dhcp6_remove_timer(&ia->timer); ...