ip6mr: fix mfc notification flags
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 19 Mar 2014 16:47:51 +0000 (17:47 +0100)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 7 May 2014 06:31:02 +0000 (15:31 +0900)
commitc80b166c0c6d7ac5357b0fcc164bb1dc6e106251
treec152876367e07c3090c9a06179c5b11bc6fd03a9
parent256f945aef0ec14b8bf70f74dd37e0e2c49f9c9e
ip6mr: fix mfc notification flags

[ Upstream commit f518338b16038beeb73e155e60d0f70beb9379f4 ]

Commit 812e44dd1829 ("ip6mr: advertise new mfc entries via rtnl") reuses the
function ip6mr_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: Jiri Slaby <jslaby@suse.cz>
net/ipv6/ip6mr.c