From: Hans Dedecker Date: Wed, 20 Mar 2019 15:33:19 +0000 (+0100) Subject: netlink: fix neighbor event handling (FS#2160) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8318e937244ea97ea3e91db15c39e4a17577934f;p=oweals%2Fodhcpd.git netlink: fix neighbor event handling (FS#2160) Commit a54cee0 introduced a regression in the handling of netlink neighbor events as it did not set the interface pointer in the netevent_handler_info struct resulting into a breakage of ndp relay mode Signed-off-by: Hans Dedecker --- diff --git a/src/netlink.c b/src/netlink.c index abd326e..c672748 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -416,6 +416,7 @@ static int handle_rtm_neigh(struct nlmsghdr *hdr, bool add) syslog(LOG_DEBUG, "Netlink %s %s on %s", true ? "newneigh" : "delneigh", buf, iface->name); + event_info.iface = iface; event_info.neigh.state = ndm->ndm_state; event_info.neigh.flags = ndm->ndm_flags;