Go to the documentation of this file. 1 #ifndef _UAPI__LINUX_MROUTE6_H
2 #define _UAPI__LINUX_MROUTE6_H
4 #include <linux/types.h>
19 #define MRT6_INIT (MRT6_BASE)
20 #define MRT6_DONE (MRT6_BASE+1)
21 #define MRT6_ADD_MIF (MRT6_BASE+2)
22 #define MRT6_DEL_MIF (MRT6_BASE+3)
23 #define MRT6_ADD_MFC (MRT6_BASE+4)
24 #define MRT6_DEL_MFC (MRT6_BASE+5)
25 #define MRT6_VERSION (MRT6_BASE+6)
26 #define MRT6_ASSERT (MRT6_BASE+7)
27 #define MRT6_PIM (MRT6_BASE+8)
28 #define MRT6_TABLE (MRT6_BASE+9)
30 #define SIOCGETMIFCNT_IN6 SIOCPROTOPRIVATE
31 #define SIOCGETSGCNT_IN6 (SIOCPROTOPRIVATE+1)
32 #define SIOCGETRPF (SIOCPROTOPRIVATE+2)
37 #define ALL_MIFS ((mifi_t)(-1))
40 #define IF_SETSIZE 256
44 #define NIFBITS (sizeof(if_mask) * 8)
46 #if !defined(__KERNEL__)
47 #if !defined(DIV_ROUND_UP)
48 #define DIV_ROUND_UP(x,y) (((x) + ((y) - 1)) / (y))
56 #define IF_SET(n, p) ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS)))
57 #define IF_CLR(n, p) ((p)->ifs_bits[(n)/NIFBITS] &= ~(1 << ((n) % NIFBITS)))
58 #define IF_ISSET(n, p) ((p)->ifs_bits[(n)/NIFBITS] & (1 << ((n) % NIFBITS)))
59 #define IF_COPY(f, t) bcopy(f, t, sizeof(*(f)))
60 #define IF_ZERO(p) bzero(p, sizeof(*(p)))
75 #define MIFF_REGISTER 0x1
127 #define MRT6MSG_NOCACHE 1
128 #define MRT6MSG_WRONGMIF 2
129 #define MRT6MSG_WHOLEPKT 3