DI_STATE_MAX
di_state[MIN(devi.devi_node_state + 1, DI_STATE_MAX)]);
di_state[MIN(da.da_node_state + 1, DI_STATE_MAX)]);