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>
This commit is contained in:

committed by
David S. Miller

parent
5a645dd86c
commit
dd12d15c9a
@@ -133,4 +133,16 @@ struct mrt6msg {
|
||||
struct in6_addr im6_src, im6_dst;
|
||||
};
|
||||
|
||||
/* ip6mr netlink cache report attributes */
|
||||
enum {
|
||||
IP6MRA_CREPORT_UNSPEC,
|
||||
IP6MRA_CREPORT_MSGTYPE,
|
||||
IP6MRA_CREPORT_MIF_ID,
|
||||
IP6MRA_CREPORT_SRC_ADDR,
|
||||
IP6MRA_CREPORT_DST_ADDR,
|
||||
IP6MRA_CREPORT_PKT,
|
||||
__IP6MRA_CREPORT_MAX
|
||||
};
|
||||
#define IP6MRA_CREPORT_MAX (__IP6MRA_CREPORT_MAX - 1)
|
||||
|
||||
#endif /* _UAPI__LINUX_MROUTE6_H */
|
||||
|
Reference in New Issue
Block a user