hostname_eq
if (hostname_eq(next->id.mon_id.mon_name, mon_name)) {
static int hostname_eq(char *host1, char *host2);