Ticket #209 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

avahi-autoipd --force-bind bug

Reported by: Cocagne Owned by: lennart
Milestone: Avahi 0.6.24 Component: avahi-autoipd
Keywords: Cc:

Description

line 1280 of autoipd's main.c: "else if (event == EVENT_ROUTABLE_ADDR_CONFIGURED)" is missing '&& !force_bind' in the conditional. The lack of this condition causes the local link IP to be released even if the --force-bind arugment is passed.

The problem was noticed when attempting to use avahi-autoipd acquire a link-local address during the early-userspace in a Linux initramfs. Immediately after the call-out script assinged the ll-address to the device, the daemon released the address via this conditional. It's suspicious that the daemon would consider this address "routable" but, even if it were, --force-bind should prevent the address from being released.

After adding the && !force_bind to the conditional the daemon appeard to behave as expected.

kernel = 2.6.24

Change History

Changed 5 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to Avahi 0.6.24

Fixed in rf8ef650e9d7b633c67509666599c15f205fa5baf.

Note: See TracTickets for help on using tickets.