diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-13 20:57:12 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-13 20:57:12 +0200 |
commit | 42409f7f228083dad788efd4ed3cc96d26712c6f (patch) | |
tree | 45e11b7c4bdb2a7df98fc1322f4ed977ad850d07 /pingu_ping.h | |
parent | 0a0ed0b5472cd19043799a9953ac06fd11ae7585 (diff) | |
download | pingu-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_ping.h')
-rw-r--r-- | pingu_ping.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pingu_ping.h b/pingu_ping.h index d8f129a..f188748 100644 --- a/pingu_ping.h +++ b/pingu_ping.h @@ -13,7 +13,8 @@ struct pingu_ping { struct ev_timer timeout_watcher; }; -int pingu_ping_send(struct ev_loop *loop, struct pingu_host *host); +int pingu_ping_send(struct ev_loop *loop, struct pingu_host *host, + int set_status_on_failure); void pingu_ping_read_reply(struct ev_loop *loop, struct pingu_iface *iface); #endif |