summaryrefslogtreecommitdiffstats
path: root/nuttx/include/net
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2010-07-13 03:43:06 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2010-07-13 03:43:06 +0000
commit1fce3114030e89bddec00f0b1b38b126f9a3f6c6 (patch)
tree50917f724a6a70b33050502c1b4bc395528fd460 /nuttx/include/net
parentb67dc002b6110cc141979bd70a6179d133caba37 (diff)
IGMP debug fixes
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2791 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/net')
-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 184153a846..b2448627ce 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