Annotation of embedaddon/pimdd/include/netbsd/netinet/pim.h, revision 1.1
1.1 ! misho 1: /* $Id: pim.h,v 1.1 1998/06/01 22:35:32 kurtw Exp $ */
! 2:
! 3: #ifndef _NETINET_PIM_H_
! 4: #define _NETINET_PIM_H_
! 5:
! 6: /*
! 7: * Protocol Independent Multicast (PIM) definitions.
! 8: *
! 9: * Written by Ahmed Helmy, USC/SGI, July 1996
! 10: * Modified by George Edmond Eddy (Rusty), ISI, February 1998
! 11: * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998
! 12: */
! 13:
! 14: /*
! 15: * PIM packet format.
! 16: */
! 17: #define PIM_VERSION 2
! 18: struct pim {
! 19: #if BYTE_ORDER == LITTLE_ENDIAN
! 20: u_char pim_type:4, /* type of PIM message */
! 21: pim_vers:4; /* PIM version */
! 22: #else /* BYTE_ORDER == BIG_ENDIAN */
! 23: u_char pim_vers:4, /* PIM version */
! 24: pim_type:4; /* type of PIM message */
! 25: #endif /* BYTE_ORDER */
! 26: u_char reserved; /* Reserved */
! 27: u_short pim_cksum; /* IP-style checksum */
! 28: };
! 29:
! 30: #define PIM_MINLEN 8 /* The header min. length is 8 */
! 31: #define PIM_REG_MINLEN (PIM_MINLEN+20) /* Register message + inner IPheader */
! 32:
! 33: /*
! 34: * Message types
! 35: */
! 36: #define PIM_REGISTER 0x01 /* PIM Register type is 1 */
! 37: #define PIM_NULL_REGISTER 0x40000000 /* second bit in reg_head is the Null-bit */
! 38:
! 39: #endif /* _NETINET_PIM_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>