You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/16 09:47:29 UTC
[incubator-nuttx] 03/05: netlink: add netlink multicast group define
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit bd4bccbe2738e04ad4b153300c23f1a7182862d4
Author: chao.an <an...@xiaomi.com>
AuthorDate: Mon Apr 13 16:04:13 2020 +0800
netlink: add netlink multicast group define
Change-Id: I0cedbee311f83320ba396a1004e12075e835cccf
Signed-off-by: chao.an <an...@xiaomi.com>
---
include/netpacket/netlink.h | 55 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/include/netpacket/netlink.h b/include/netpacket/netlink.h
index 336414c..f0afa9f 100644
--- a/include/netpacket/netlink.h
+++ b/include/netpacket/netlink.h
@@ -361,6 +361,61 @@
#define RT_SCOPE_HOST 254 /* Route on local host */
#define RT_SCOPE_NOWHERE 255 /* Destination does not exist */
+/* RTnetlink multicast groups (userspace) */
+
+#define RTMGRP_LINK 1
+#define RTMGRP_NOTIFY 2
+#define RTMGRP_NEIGH 4
+#define RTMGRP_TC 8
+
+#define RTMGRP_IPV4_IFADDR 0x10
+#define RTMGRP_IPV4_MROUTE 0x20
+#define RTMGRP_IPV4_ROUTE 0x40
+#define RTMGRP_IPV4_RULE 0x80
+
+#define RTMGRP_IPV6_IFADDR 0x100
+#define RTMGRP_IPV6_MROUTE 0x200
+#define RTMGRP_IPV6_ROUTE 0x400
+#define RTMGRP_IPV6_IFINFO 0x800
+
+#define RTMGRP_DECnet_IFADDR 0x1000
+#define RTMGRP_DECnet_ROUTE 0x4000
+
+#define RTMGRP_IPV6_PREFIX 0x20000
+
+/* RTnetlink multicast groups */
+
+#define RTNLGRP_NONE 0
+#define RTNLGRP_LINK 1
+#define RTNLGRP_NOTIFY 2
+#define RTNLGRP_NEIGH 3
+#define RTNLGRP_TC 4
+#define RTNLGRP_IPV4_IFADDR 5
+#define RTNLGRP_IPV4_MROUTE 6
+#define RTNLGRP_IPV4_ROUTE 7
+#define RTNLGRP_IPV4_RULE 8
+#define RTNLGRP_IPV6_IFADDR 9
+#define RTNLGRP_IPV6_MROUTE 10
+#define RTNLGRP_IPV6_ROUTE 11
+#define RTNLGRP_IPV6_IFINFO 12
+#define RTNLGRP_DECnet_IFADDR 13
+#define RTNLGRP_NOP2 14
+#define RTNLGRP_DECnet_ROUTE 15
+#define RTNLGRP_DECnet_RULE 16
+#define RTNLGRP_NOP4 17
+#define RTNLGRP_IPV6_PREFIX 18
+#define RTNLGRP_IPV6_RULE 19
+#define RTNLGRP_ND_USEROPT 20
+#define RTNLGRP_PHONET_IFADDR 21
+#define RTNLGRP_PHONET_ROUTE 22
+#define RTNLGRP_DCB 23
+#define RTNLGRP_IPV4_NETCONF 24
+#define RTNLGRP_IPV6_NETCONF 25
+#define RTNLGRP_MDB 26
+#define RTNLGRP_MPLS_ROUTE 27
+#define RTNLGRP_NSID 28
+#define RTNLGRP_MAX 29
+
/****************************************************************************
* Public Type Definitions
****************************************************************************/