mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
netlink: add netlink multicast group define
Change-Id: I0cedbee311f83320ba396a1004e12075e835cccf Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
16c0c61e3e
commit
bd4bccbe27
1 changed files with 55 additions and 0 deletions
|
@ -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
|
||||
****************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue