pim.h 518 B

12345678910111213141516171819202122232425262728
  1. #ifndef __LINUX_PIM_H
  2. #define __LINUX_PIM_H
  3. #include <asm/byteorder.h>
  4. /* Message types - V1 */
  5. #define PIM_V1_VERSION cpu_to_be32(0x10000000)
  6. #define PIM_V1_REGISTER 1
  7. /* Message types - V2 */
  8. #define PIM_VERSION 2
  9. #define PIM_REGISTER 1
  10. #define PIM_NULL_REGISTER cpu_to_be32(0x40000000)
  11. /* PIMv2 register message header layout (ietf-draft-idmr-pimvsm-v2-00.ps */
  12. struct pimreghdr
  13. {
  14. __u8 type;
  15. __u8 reserved;
  16. __be16 csum;
  17. __be32 flags;
  18. };
  19. struct sk_buff;
  20. extern int pim_rcv_v1(struct sk_buff *);
  21. #endif