summaryrefslogtreecommitdiff
path: root/nuttx/net/igmp/igmp_input.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-05 15:15:40 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-05 15:15:40 -0600
commit23d9b568365824d3814793aa5c8b379184fa0101 (patch)
tree737ee7fd2f2c8dbe1e4c48e8d6b8400c2e84154f /nuttx/net/igmp/igmp_input.c
parentf825004170beb88dec1993ae6514e8307b9ef0fa (diff)
downloadpx4-nuttx-23d9b568365824d3814793aa5c8b379184fa0101.tar.gz
px4-nuttx-23d9b568365824d3814793aa5c8b379184fa0101.tar.bz2
px4-nuttx-23d9b568365824d3814793aa5c8b379184fa0101.zip
NET: Move most of the contents of include/nuttx/net/igmp.h moved to net/igmp/igmp.h
Diffstat (limited to 'nuttx/net/igmp/igmp_input.c')
-rw-r--r--nuttx/net/igmp/igmp_input.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/net/igmp/igmp_input.c b/nuttx/net/igmp/igmp_input.c
index 886282569..93087b07e 100644
--- a/nuttx/net/igmp/igmp_input.c
+++ b/nuttx/net/igmp/igmp_input.c
@@ -54,6 +54,7 @@
#include "devif/devif.h"
#include "igmp/igmp.h"
+#include "utils/utils.h"
#ifdef CONFIG_NET_IGMP
@@ -207,7 +208,7 @@ void igmp_input(struct net_driver_s *dev)
if (!net_ipaddr_cmp(member->grpaddr, g_allsystems))
{
- ticks = igmp_decisec2tick((int)IGMPBUF->maxresp);
+ ticks = net_dsec2tick((int)IGMPBUF->maxresp);
if (IS_IDLEMEMBER(member->flags) ||
igmp_cmptimer(member, ticks))
{
@@ -228,7 +229,7 @@ void igmp_input(struct net_driver_s *dev)
IGMP_STATINCR(g_netstats.igmp.ucast_query);
grpaddr = net_ip4addr_conv32(IGMPBUF->grpaddr);
group = igmp_grpallocfind(dev, &grpaddr);
- ticks = igmp_decisec2tick((int)IGMPBUF->maxresp);
+ ticks = net_dsec2tick((int)IGMPBUF->maxresp);
if (IS_IDLEMEMBER(group->flags) || igmp_cmptimer(group, ticks))
{
igmp_startticks(group, ticks);
@@ -246,7 +247,7 @@ void igmp_input(struct net_driver_s *dev)
nlldbg("Query to a specific group with the group address as destination\n");
- ticks = igmp_decisec2tick((int)IGMPBUF->maxresp);
+ ticks = net_dsec2tick((int)IGMPBUF->maxresp);
if (IS_IDLEMEMBER(group->flags) || igmp_cmptimer(group, ticks))
{
igmp_startticks(group, ticks);