diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-13 21:12:33 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-13 21:12:33 +0200 |
commit | 3ecfe5167a484563ac50f03948685ee0708f5d7e (patch) | |
tree | 68033d1e4bede7f2023a282cc6dc0da42066b2e5 /pingu_host.c | |
parent | 42409f7f228083dad788efd4ed3cc96d26712c6f (diff) | |
download | pingu-3ecfe5167a484563ac50f03948685ee0708f5d7e.tar.bz2 pingu-3ecfe5167a484563ac50f03948685ee0708f5d7e.tar.xz |
pingu_iface: implement pingu_iface_usable()
To test if we can use socket.
Diffstat (limited to 'pingu_host.c')
-rw-r--r-- | pingu_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pingu_host.c b/pingu_host.c index fae9a0e..c0ec966 100644 --- a/pingu_host.c +++ b/pingu_host.c @@ -260,7 +260,7 @@ int pingu_host_init(struct ev_loop *loop, const char *config) return -1; list_for_each_entry(host, &host_list, host_list_entry) { - if (host->iface->name[0] != '\0' && !host->iface->has_binding) + if (!pingu_iface_usable(host->iface)) pingu_host_set_status(host, 0); ev_timer_init(&host->burst_timeout_watcher, pingu_burst_timeout_cb, 0, host->burst_interval); |