Closed levshutov closed 1 year ago
WSDD2 is running on a specific interface with -i key.
-i
is_new_addr() is called when network is changed. It changes ifindex to modifyed interface index by mistake.
is_new_addr()
ifindex
if (!if_indextoname(ifindex, buf) || strcmp(buf, ifname) != 0)
should be
if (!if_indextoname(ifam->ifa_index, buf) || strcmp(buf, ifname) != 0)
PR #46
WSDD2 is running on a specific interface with
-i
key.is_new_addr()
is called when network is changed. It changesifindex
to modifyed interface index by mistake.should be