You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

igmp.h 477B

1234567891011121314151617181920212223
  1. #ifndef _IGMP_H
  2. #define _IGMP_H
  3. #define IGMP_QUERY 0x11
  4. #define IGMPv1_REPORT 0x12
  5. #define IGMPv2_REPORT 0x16
  6. #define IGMP_LEAVE 0x17
  7. #define GROUP_ALL_HOSTS 0xe0000001 /* 224.0.0.1 Host byte order */
  8. struct igmp {
  9. uint8_t type;
  10. uint8_t response_time;
  11. uint16_t chksum;
  12. in_addr group;
  13. } PACKED;
  14. struct igmp_ip_t { /* Format of an igmp ip packet */
  15. struct iphdr ip;
  16. uint8_t router_alert[4]; /* Router alert option */
  17. struct igmp igmp;
  18. } PACKED;
  19. #endif /* _IGMP_H */