xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/linux/pim.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1 #ifndef __LINUX_PIM_H
2 #define __LINUX_PIM_H
3 
4 #include <asm/byteorder.h>
5 
6 struct pim {
7 #if defined(__LITTLE_ENDIAN_BITFIELD)
8 	__u8	pim_type:4,		/* PIM message type */
9 		pim_ver:4;		/* PIM version */
10 #elif defined(__BIG_ENDIAN_BITFIELD)
11 	__u8	pim_ver:4;		/* PIM version */
12 		pim_type:4;		/* PIM message type */
13 #endif
14 	__u8	pim_rsv;		/* Reserved */
15 	__be16	pim_cksum;		/* Checksum */
16 };
17 
18 #define PIM_MINLEN		8
19 
20 /* Message types - V1 */
21 #define PIM_V1_VERSION		__constant_htonl(0x10000000)
22 #define PIM_V1_REGISTER		1
23 
24 /* Message types - V2 */
25 #define PIM_VERSION		2
26 #define PIM_REGISTER		1
27 
28 #endif
29