Lines Matching refs:host
36 check_script(struct relayd *env, struct host *host) in check_script() argument
41 if ((host->flags & (F_CHECK_SENT|F_CHECK_DONE)) == F_CHECK_SENT) in check_script()
44 if ((table = table_find(env, host->conf.tableid)) == NULL) in check_script()
47 host->last_up = host->up; in check_script()
48 host->flags &= ~(F_CHECK_SENT|F_CHECK_DONE); in check_script()
50 scr.host = host->conf.id; in check_script()
51 if ((strlcpy(scr.name, host->conf.name,sizeof(scr.name)) >= in check_script()
60 host->flags |= F_CHECK_SENT; in check_script()
66 struct host *host; in script_done() local
68 if ((host = host_find(env, scr->host)) == NULL) in script_done()
72 host->up = HOST_UNKNOWN; in script_done()
74 host->up = HOST_DOWN; in script_done()
76 host->up = HOST_UP; in script_done()
77 host->flags |= F_CHECK_DONE; in script_done()
79 hce_notify_done(host, host->up == HOST_UP ? in script_done()