Ticket #328 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

netlink: request all matches when requesting interface and address lists

Reported by: awhitcroft Owned by: lennart
Milestone: Avahi 0.6.29 Component: avahi-core
Keywords: Cc:

Description

Avahi uses netlink to determine the list of interfaces and the list of addresses in the system. When doing so we perform a NLM_F_ROOT search. Previously this would (incorrectly) return all matches due to a bug in the kernel decoding of the NLM_F_* flags. Following the commit below this is now corrected leading the avahi daemon to hang on start:

commit 0ab03c2b1478f2438d2c80204f7fef65b1bca9cf Author: Jan Engelhardt <jengelh@…> Date: Fri Jan 7 03:15:05 2011 +0000

netlink: test for all flags of the NLM_F_DUMP composite

See attached patch which fixed up our netlink request to also request NLM_F_MATCH to formally request all matches.

Attachments

Change History

Changed 2 years ago by lennart

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

A similar patch has already been merged now.

Note: See TracTickets for help on using tickets.