X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-autoipd%2Fmain.c;h=380ab942dfc20be7df8f4f73fec9e550b4bd2f92;hb=22d4df25cb5093a878dca5132b316c27ba47bd83;hp=ef529b9337c253ba48d6549f676dd539cf3b42e8;hpb=227dede00badc23e62ad6c44381c1b094b41bb02;p=catta diff --git a/avahi-autoipd/main.c b/avahi-autoipd/main.c index ef529b9..380ab94 100644 --- a/avahi-autoipd/main.c +++ b/avahi-autoipd/main.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of avahi. @@ -1281,7 +1279,7 @@ static int loop(int iface, uint32_t addr) { DEBUG(daemon_log(LOG_DEBUG, "Ignoring irrelevant ARP packet.")); } - } else if (event == EVENT_ROUTABLE_ADDR_CONFIGURED) { + } else if (event == EVENT_ROUTABLE_ADDR_CONFIGURED && !force_bind) { daemon_log(LOG_INFO, "A routable address has been configured."); @@ -1306,7 +1304,7 @@ static int loop(int iface, uint32_t addr) { elapse_time(&next_wakeup, 0, PROBE_WAIT*1000); next_wakeup_valid = 1; - } else if (event == EVENT_REFRESH_REQUEST && state == STATE_RUNNING && !force_bind) { + } else if (event == EVENT_REFRESH_REQUEST && state == STATE_RUNNING) { /* The user requested a reannouncing of the address by a SIGHUP */ daemon_log(LOG_INFO, "Reannouncing address.");