/* if ip_str is NULL then the old address was invalid and is allowed to change */
if (ip_str) {
strncpy(addr_buf, ip_str, sizeof(addr_buf));
addr_buf[sizeof(addr_buf) - 1] = '\0';
log_printf(LOGSYS_LEVEL_ERROR,
"new config has different address for link %d (addr changed from %s to %s). Internal value was NOT changed.\n",
i, addr_buf, totemip_print(&totem_config->interfaces[i].member_list[j]));
changed = 1;
}
}
}
}
}
if (changed) {
log_printf(LOGSYS_LEVEL_ERROR, "To reconfigure an interface it must be deleted and recreated. A working interface needs to be available to corosync at all times");
}
}
static int put_nodelist_members_to_config(struct totem_config *totem_config, int reload, const char **error_string)
{
icmap_iter_t iter, iter2;
const char *iter_key, *iter_key2;
int res = 0;
unsigned int node_pos;
char tmp_key[ICMAP_KEYNAME_MAXLEN];
char tmp_key2[ICMAP_KEYNAME_MAXLEN];
char *node_addr_str;
int member_count;
unsigned int linknumber = 0;
int i, j;
int last_node_pos = -1;
struct totem_interface *new_interfaces = NULL;
if (reload) {
/*
* We need to compute diff only for reload. Also for initial configuration
* not all totem structures are initialized so corosync will crash during