aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_burst.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-06 10:30:10 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-06 10:30:10 +0200
commit9e4c8217d3f2c7490eb6a26a49e67aeac96ca7c2 (patch)
tree25f27e08015dd9ac45cdfea85f578937982f7c16 /pingu_burst.c
parent91774e47e23c83aa3df901adc167ab4592f87a22 (diff)
downloadpingu-9e4c8217d3f2c7490eb6a26a49e67aeac96ca7c2.tar.bz2
pingu-9e4c8217d3f2c7490eb6a26a49e67aeac96ca7c2.tar.xz
pingu: only create/lose binding when we get/lose address
We don't need to rebind every burst. We only bind when we get an address and we only lose the binding when the address is lost.
Diffstat (limited to 'pingu_burst.c')
-rw-r--r--pingu_burst.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/pingu_burst.c b/pingu_burst.c
index a9f8e83..60d30e4 100644
--- a/pingu_burst.c
+++ b/pingu_burst.c
@@ -19,13 +19,6 @@ void ping_burst_start(struct ev_loop *loop, struct pingu_host *host)
int r;
char buf[64];
- /* we bind to device every burst in case an iface disappears and
- comes back. e.g ppp0 */
- if (pingu_iface_bind_socket(host->iface, host->status) < 0) {
- pingu_host_set_status(host, 0);
- return;
- }
-
host->burst.active = 1;
host->burst.pings_sent = 0;
host->burst.pings_replied = 0;