aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_host.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-07-13 20:57:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-07-13 20:57:12 +0200
commit42409f7f228083dad788efd4ed3cc96d26712c6f (patch)
tree45e11b7c4bdb2a7df98fc1322f4ed977ad850d07 /pingu_host.h
parent0a0ed0b5472cd19043799a9953ac06fd11ae7585 (diff)
downloadpingu-42409f7f228083dad788efd4ed3cc96d26712c6f.tar.bz2
pingu-42409f7f228083dad788efd4ed3cc96d26712c6f.tar.xz
pingu: try bind socket to interface every burst
It might be an interface that disappeared and came back, e.g ppp0. We also don't even try unless we have a successful binding.
Diffstat (limited to 'pingu_host.h')
-rw-r--r--pingu_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pingu_host.h b/pingu_host.h
index 8ea2831..ba142a6 100644
--- a/pingu_host.h
+++ b/pingu_host.h
@@ -25,7 +25,7 @@ struct pingu_host {
struct pingu_iface *iface;
};
-void pingu_host_set_status(struct pingu_host *host, int status);
+int pingu_host_set_status(struct pingu_host *host, int status);
int pingu_host_init(struct ev_loop *loop, const char *config_file);
int pingu_host_verify_status(struct ev_loop *loop, struct pingu_host *host);