idm_idpool_alloc
if (idm_idpool_alloc(&idm.idm_conn_id_pool, &cid16) == -1) {
idm_idpool_alloc(idm_idpool_t *pool, uint16_t *id);