home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / stack16 / netinet / igmp.h < prev    next >
C/C++ Source or Header  |  1999-05-11  |  1KB  |  33 lines

  1. #ifndef _IGMP_H_
  2. #define _IGMP_H_
  3. /*
  4.  * Internet Group Management Protocol (IGMP) definitions.
  5.  *
  6.  * Written by Steve Deering, Stanford, May 1988.
  7.  *
  8.  * MULTICAST 1.1
  9.  */
  10.  
  11.  
  12.  
  13. /*
  14.  * IGMP packet format.
  15.  */
  16. struct igmp {
  17.         u_char          igmp_type;      /* version & type of IGMP message  */
  18.         u_char          igmp_code;      /* unused, should be zero          */
  19.         u_short         igmp_cksum;     /* IP-style checksum               */
  20.         struct in_addr  igmp_group;     /* group address being reported    */
  21. };                                      /*  (zero for queries)             */
  22.  
  23. #define IGMP_MINLEN                  8
  24.  
  25. #define IGMP_HOST_MEMBERSHIP_QUERY   0x11  /* message types, incl. version */
  26. #define IGMP_HOST_MEMBERSHIP_REPORT  0x12
  27. #define IGMP_DVMRP                   0x13  /* for experimental multicast   */
  28.                                            /*  routing protocol            */
  29.  
  30. #define IGMP_MAX_HOST_REPORT_DELAY   10    /* max delay for response to    */
  31.                                            /*  query (in seconds)          */
  32. #endif
  33.