Netgear / wsdd2

WSD/LLMNR Discovery/Name Service Daemon
GNU General Public License v3.0
154 stars 33 forks source link

New interface bug #45

Closed levshutov closed 1 year ago

levshutov commented 1 year ago

WSDD2 is running on a specific interface with -i key.

is_new_addr() is called when network is changed. It changes ifindex to modifyed interface index by mistake.

if (!if_indextoname(ifindex, buf) || strcmp(buf, ifname) != 0)

should be

if (!if_indextoname(ifam->ifa_index, buf) || strcmp(buf, ifname) != 0)
levshutov commented 1 year ago

PR #46