troglobit / mdnsd

Jeremie Miller's original mdnsd
BSD 3-Clause "New" or "Revised" License
55 stars 35 forks source link

libmdnsd: Remove A/AAAA records when IP is set to 0 #63

Closed fzs closed 1 year ago

fzs commented 1 year ago

With multiple protocols available it can happen that an active interface gets all IPv6 or IPv4 addresses removed. In that case the responder should stop answering with A/AAAA records. Moreover, it should send a goodbye packet that invalidates the last known IP address. This is done in mdnsd_set_ip_address when the IP address is 0.`

The test currently only tests with IPv6 because sending over IPv6 is not yet implemented.