summaryrefslogtreecommitdiff
path: root/nuttx/net/igmp/igmp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/igmp/igmp_input.c')
-rw-r--r--nuttx/net/igmp/igmp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/igmp/igmp_input.c b/nuttx/net/igmp/igmp_input.c
index b3f2090bb..7668f81c5 100644
--- a/nuttx/net/igmp/igmp_input.c
+++ b/nuttx/net/igmp/igmp_input.c
@@ -61,7 +61,7 @@
* Pre-processor Definitions
****************************************************************************/
-#define IGMPBUF ((struct igmp_iphdr_s *)&dev->d_buf[UIP_LLH_LEN])
+#define IGMPBUF ((struct igmp_iphdr_s *)&dev->d_buf[NET_LLH_LEN])
/****************************************************************************
* Private Functions
@@ -124,7 +124,7 @@ void igmp_input(struct net_driver_s *dev)
/* Verify the message length */
- if (dev->d_len < UIP_LLH_LEN+UIP_IPIGMPH_LEN)
+ if (dev->d_len < NET_LLH_LEN+UIP_IPIGMPH_LEN)
{
IGMP_STATINCR(g_netstats.igmp.length_errors);
nlldbg("Length error\n");