From c9165c6ab64da11033ddcb60e6dcbd72908be0bd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Jun 2014 09:52:36 -0600 Subject: Clean up IGMP naming --- nuttx/net/igmp/igmp_join.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'nuttx/net/igmp/igmp_join.c') diff --git a/nuttx/net/igmp/igmp_join.c b/nuttx/net/igmp/igmp_join.c index 5dafb0dd6..9d239dd79 100644 --- a/nuttx/net/igmp/igmp_join.c +++ b/nuttx/net/igmp/igmp_join.c @@ -51,6 +51,7 @@ #include #include "uip/uip.h" +#include "igmp/igmp.h" #ifdef CONFIG_NET_IGMP @@ -128,27 +129,27 @@ int igmp_joingroup(struct uip_driver_s *dev, FAR const struct in_addr *grpaddr) /* Check if a this address is already in the group */ - group = uip_grpfind(dev, &grpaddr->s_addr); + group = igmp_grpfind(dev, &grpaddr->s_addr); if (!group) { /* No... allocate a new entry */ nvdbg("Join to new group: %08x\n", grpaddr->s_addr); - group = uip_grpalloc(dev, &grpaddr->s_addr); + group = igmp_grpalloc(dev, &grpaddr->s_addr); IGMP_STATINCR(uip_stat.igmp.joins); /* Send the Membership Report */ IGMP_STATINCR(uip_stat.igmp.report_sched); - uip_igmpwaitmsg(group, IGMPv2_MEMBERSHIP_REPORT); + igmp_waitmsg(group, IGMPv2_MEMBERSHIP_REPORT); /* And start the timer at 10*100 msec */ - uip_igmpstarttimer(group, 10); + igmp_starttimer(group, 10); /* Add the group (MAC) address to the ether drivers MAC filter list */ - uip_addmcastmac(dev, (FAR uip_ipaddr_t *)&grpaddr->s_addr); + igmp_addmcastmac(dev, (FAR uip_ipaddr_t *)&grpaddr->s_addr); return OK; } -- cgit v1.2.3