summaryrefslogtreecommitdiffhomepage
path: root/src/netlink.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2019-03-20 16:33:19 +0100
committerHans Dedecker <dedeckeh@gmail.com>2019-03-21 15:41:25 +0100
commit8318e937244ea97ea3e91db15c39e4a17577934f (patch)
tree3121f5d13b9da8f57dc3e8b17c54ebb2f0efbcd7 /src/netlink.c
parent16c5b6c9bcb71bb67a6ab15bb458bf9ab5a8fe7e (diff)
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 <dedeckeh@gmail.com>
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c1
1 files changed, 1 insertions, 0 deletions
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;