/* Check if a vsg entry is in new data */ static virtual_server_group_entry_t * vsge_exist(virtual_server_group_entry_t *vsg_entry, list l) { element e; virtual_server_group_entry_t *vsge; for (e = LIST_HEAD(l); e; ELEMENT_NEXT(e)) { vsge = ELEMENT_DATA(e); if (VSGE_ISEQ(vsg_entry, vsge)) return vsge; } return NULL; }
/* Check if a vsg entry is in new data */ static int vsge_exist(virtual_server_group_entry *vsg_entry, list l) { element e; virtual_server_group_entry *vsge; for (e = LIST_HEAD(l); e; ELEMENT_NEXT(e)) { vsge = ELEMENT_DATA(e); if (VSGE_ISEQ(vsg_entry, vsge)) { /* * If vsge exist this entry * is alive since only rs entries * are changing from alive state. */ SET_ALIVE(vsge); return 1; } } return 0; }