summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/mroute6.h
diff options
context:
space:
mode:
authorJulien Gomes2017-06-20 22:54:18 +0200
committerDavid S. Miller2017-06-21 17:22:53 +0200
commitdd12d15c9a5b422331426980ddf70522c57c3392 (patch)
treeb9e278008cc8e0041202bae573de24aeb669575d /include/uapi/linux/mroute6.h
parentipmr: add netlink notifications on igmpmsg cache reports (diff)
downloadkernel-qcow2-linux-dd12d15c9a5b422331426980ddf70522c57c3392.tar.gz
kernel-qcow2-linux-dd12d15c9a5b422331426980ddf70522c57c3392.tar.xz
kernel-qcow2-linux-dd12d15c9a5b422331426980ddf70522c57c3392.zip
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>
Diffstat (limited to 'include/uapi/linux/mroute6.h')
-rw-r--r--include/uapi/linux/mroute6.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/mroute6.h b/include/uapi/linux/mroute6.h
index ed5721148768..e4746816c855 100644
--- a/include/uapi/linux/mroute6.h
+++ b/include/uapi/linux/mroute6.h
@@ -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 */