Merge branch 'master' of git://github.com/illumos/illumos-gate
[unleashed.git] / usr / src / grub / grub-0.97 / netboot / igmp.h
bloba83129092c0b44a50008fa5adbe20b92c4bf69df
1 #ifndef _IGMP_H
2 #define _IGMP_H
4 /* Max interval between IGMP packets */
5 #define IGMP_INTERVAL (10*TICKS_PER_SEC)
6 #define IGMPv1_ROUTER_PRESENT_TIMEOUT (400*TICKS_PER_SEC)
8 #define IGMP_QUERY 0x11
9 #define IGMPv1_REPORT 0x12
10 #define IGMPv2_REPORT 0x16
11 #define IGMP_LEAVE 0x17
12 #define GROUP_ALL_HOSTS 0xe0000001 /* 224.0.0.1 Host byte order */
14 struct igmp {
15 uint8_t type;
16 uint8_t response_time;
17 uint16_t chksum;
18 in_addr group;
21 struct igmp_ip_t { /* Format of an igmp ip packet */
22 struct iphdr ip;
23 uint8_t router_alert[4]; /* Router alert option */
24 struct igmp igmp;
27 #endif /* _IGMP_H */