From 9e4c8217d3f2c7490eb6a26a49e67aeac96ca7c2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 6 Sep 2011 10:30:10 +0200 Subject: 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. --- pingu_burst.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'pingu_burst.c') 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; -- cgit v1.2.3