123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- #ifndef _NETINET_IGMP_H
- #define _NETINET_IGMP_H 1
- #include <sys/cdefs.h>
- #include <sys/types.h>
- #ifdef __USE_BSD
- #include <netinet/in.h>
- __BEGIN_DECLS
- struct igmp {
- u_int8_t igmp_type;
- u_int8_t igmp_code;
- u_int16_t igmp_cksum;
- struct in_addr igmp_group;
- };
- #define IGMP_MINLEN 8
- #define IGMP_MEMBERSHIP_QUERY 0x11
- #define IGMP_V1_MEMBERSHIP_REPORT 0x12
- #define IGMP_V2_MEMBERSHIP_REPORT 0x16
- #define IGMP_V2_LEAVE_GROUP 0x17
- #define IGMP_DVMRP 0x13
- #define IGMP_PIM 0x14
- #define IGMP_TRACE 0x15
- #define IGMP_MTRACE_RESP 0x1e
- #define IGMP_MTRACE 0x1f
- #define IGMP_MAX_HOST_REPORT_DELAY 10
-
-
- #define IGMP_TIMER_SCALE 10
-
- #define IGMP_DELAYING_MEMBER 1
- #define IGMP_IDLE_MEMBER 2
- #define IGMP_LAZY_MEMBER 3
- #define IGMP_SLEEPING_MEMBER 4
- #define IGMP_AWAKENING_MEMBER 5
- #define IGMP_v1_ROUTER 1
- #define IGMP_v2_ROUTER 2
- #define IGMP_HOST_MEMBERSHIP_QUERY IGMP_MEMBERSHIP_QUERY
- #define IGMP_HOST_MEMBERSHIP_REPORT IGMP_V1_MEMBERSHIP_REPORT
- #define IGMP_HOST_NEW_MEMBERSHIP_REPORT IGMP_V2_MEMBERSHIP_REPORT
- #define IGMP_HOST_LEAVE_MESSAGE IGMP_V2_LEAVE_GROUP
- __END_DECLS
- #endif
- #endif
|