Go to the documentation of this file. 1 #ifndef _UAPI__LINUX_MROUTE_H
2 #define _UAPI__LINUX_MROUTE_H
5 #include <linux/types.h>
19 #define MRT_INIT (MRT_BASE)
20 #define MRT_DONE (MRT_BASE+1)
21 #define MRT_ADD_VIF (MRT_BASE+2)
22 #define MRT_DEL_VIF (MRT_BASE+3)
23 #define MRT_ADD_MFC (MRT_BASE+4)
24 #define MRT_DEL_MFC (MRT_BASE+5)
25 #define MRT_VERSION (MRT_BASE+6)
26 #define MRT_ASSERT (MRT_BASE+7)
27 #define MRT_PIM (MRT_BASE+8)
28 #define MRT_TABLE (MRT_BASE+9)
30 #define SIOCGETVIFCNT SIOCPROTOPRIVATE
31 #define SIOCGETSGCNT (SIOCPROTOPRIVATE+1)
32 #define SIOCGETRPF (SIOCPROTOPRIVATE+2)
37 #define ALL_VIFS ((vifi_t)(-1))
43 #define VIFM_SET(n,m) ((m)|=(1<<(n)))
44 #define VIFM_CLR(n,m) ((m)&=~(1<<(n)))
45 #define VIFM_ISSET(n,m) ((m)&(1<<(n)))
46 #define VIFM_CLRALL(m) ((m)=0)
47 #define VIFM_COPY(mfrom,mto) ((mto)=(mfrom))
48 #define VIFM_SAME(m1,m2) ((m1)==(m2))
67 #define VIFF_TUNNEL 0x1
68 #define VIFF_SRCRT 0x2
69 #define VIFF_REGISTER 0x4
70 #define VIFF_USE_IFINDEX 0x8
132 #define MFC_ASSERT_THRESH (3*HZ)
138 #define IGMPMSG_NOCACHE 1
139 #define IGMPMSG_WRONGVIF 2
140 #define IGMPMSG_WHOLEPKT 3