Skip to content

Commit

Permalink
client: initial address deferred processing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed Aug 22, 2014
1 parent e2c12f7 commit d00de9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/fsm.c
Expand Up @@ -1355,6 +1355,7 @@ ni_ifworker_advance_state(ni_ifworker_t *w, ni_event_t event_type)
ni_ifworker_rearm(w);
max_state = NI_FSM_STATE_LINK_UP - 1;
break;
case NI_EVENT_ADDRESS_DEFERRED:
case NI_EVENT_ADDRESS_ACQUIRED:
min_state = NI_FSM_STATE_ADDRCONF_UP;
break;
Expand Down Expand Up @@ -4097,6 +4098,14 @@ address_acquired_callback_handler(ni_ifworker_t *w, const ni_objectmodel_callbac
return FALSE;

switch (event) {
case NI_EVENT_ADDRESS_DEFERRED:
/*
* All fine so far, it is just a wait cancel for this lease;
* the sevice deferred it, maybe also started some fallback,
* but will continue in background.
*/
return TRUE;

case NI_EVENT_ADDRESS_ACQUIRED:
{
lease = ni_netdev_get_lease_by_uuid(dev, &cb->uuid);
Expand Down

0 comments on commit d00de9a

Please sign in to comment.