ipmr: fix mfc notification flags
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 19 Mar 2014 16:47:50 +0000 (17:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:42:17 +0000 (06:42 -0700)
commit38c50cd4421b6d83ce58af63fdf105cf3fdc37e9
tree29c6ff5ea3a5876219f9b902f2a8e47cd4052f4c
parentc0669e49cf6fdee800568b7085af0bcaaf27b9b3
ipmr: fix mfc notification flags

[ Upstream commit 65886f439ab0fdc2dff20d1fa87afb98c6717472 ]

Commit 8cd3ac9f9b7b ("ipmr: advertise new mfc entries via rtnl") reuses the
function ipmr_fill_mroute() to notify mfc events.
But this function was used only for dump and thus was always setting the
flag NLM_F_MULTI, which is wrong in case of a single notification.

Libraries like libnl will wait forever for NLMSG_DONE.

CC: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ipmr.c