summaryrefslogtreecommitdiff
path: root/nuttx/include/net/uip
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/net/uip')
-rwxr-xr-xnuttx/include/net/uip/uip-igmp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/include/net/uip/uip-igmp.h b/nuttx/include/net/uip/uip-igmp.h
index 184153a84..b2448627c 100755
--- a/nuttx/include/net/uip/uip-igmp.h
+++ b/nuttx/include/net/uip/uip-igmp.h
@@ -78,11 +78,11 @@
/* Header sizes:
*
* UIP_IGMPH_LEN - Size of IGMP header in bytes
- * UIP_IPIGMPH_LEN - Size of IP + IGMP header
+ * UIP_IPIGMPH_LEN - Size of IP + Size of IGMP header + Size of router alert
*/
#define UIP_IGMPH_LEN 8
-#define UIP_IPIGMPH_LEN (UIP_IGMPH_LEN + UIP_IPH_LEN)
+#define UIP_IPIGMPH_LEN (UIP_IGMPH_LEN + UIP_IPH_LEN + 4)
/* Group flags */
@@ -157,6 +157,10 @@ struct uip_igmphdr_s
#endif /* CONFIG_NET_IPv6 */
+ /* Router alerted IP header option */
+
+ uint16_t ra[2];
+
/* IGMP header:
*
* 0 1 2 3