OSDN Git Service

ip6mr: add netlink notifications on mrt6msg cache reports
authorJulien Gomes <julien@arista.com>
Tue, 20 Jun 2017 20:54:18 +0000 (13:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jun 2017 15:22:53 +0000 (11:22 -0400)
commitdd12d15c9a5b422331426980ddf70522c57c3392
treeb9e278008cc8e0041202bae573de24aeb669575d
parent5a645dd86c1be64728578bcb1bdfb96e21815acb
ip6mr: add netlink notifications on mrt6msg cache reports

Add Netlink notifications on cache reports in ip6mr, in addition to the
existing mrt6msg sent to mroute6_sk.
Send RTM_NEWCACHEREPORT notifications to RTNLGRP_IPV6_MROUTE_R.

MSGTYPE, MIF_ID, SRC_ADDR and DST_ADDR Netlink attributes contain the
same data as their equivalent fields in the mrt6msg header.
PKT attribute is the packet sent to mroute6_sk, without the added
mrt6msg header.

Suggested-by: Ryan Halbrook <halbrook@arista.com>
Signed-off-by: Julien Gomes <julien@arista.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/mroute6.h
net/ipv6/ip6mr.c