]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: add netlink notifications on igmpmsg cache reports
authorJulien Gomes <julien@arista.com>
Tue, 20 Jun 2017 20:54:17 +0000 (13:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jun 2017 15:22:52 +0000 (11:22 -0400)
commit2be6917edd6e5af63ce09fcf4c6f03eb803d29dd
tree880ec6675693039f6238884963b87122b7c0ba40
parent0281bbeabaf953390ccccf5ee07df9e9aac02c09
ipmr: add netlink notifications on igmpmsg cache reports

Add Netlink notifications on cache reports in ipmr, in addition to the
existing igmpmsg sent to mroute_sk.
Send RTM_NEWCACHEREPORT notifications to RTNLGRP_IPV4_MROUTE_R.

MSGTYPE, VIF_ID, SRC_ADDR and DST_ADDR Netlink attributes contain the
same data as their equivalent fields in the igmpmsg header.
PKT attribute is the packet sent to mroute_sk, without the added igmpmsg
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/mroute.h
net/ipv4/ipmr.c