diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-05 15:15:40 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-05 15:15:40 -0600 |
commit | 23d9b568365824d3814793aa5c8b379184fa0101 (patch) | |
tree | 737ee7fd2f2c8dbe1e4c48e8d6b8400c2e84154f /nuttx/net/utils | |
parent | f825004170beb88dec1993ae6514e8307b9ef0fa (diff) | |
download | px4-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/utils')
-rw-r--r-- | nuttx/net/utils/Make.defs | 3 | ||||
-rw-r--r-- | nuttx/net/utils/utils.h | 20 |
2 files changed, 20 insertions, 3 deletions
diff --git a/nuttx/net/utils/Make.defs b/nuttx/net/utils/Make.defs index dd3ad35a5..c8bf78e6b 100644 --- a/nuttx/net/utils/Make.defs +++ b/nuttx/net/utils/Make.defs @@ -33,7 +33,8 @@ # ############################################################################ -NET_CSRCS += net_dsec2timeval.c net_timeval2dsec.c net_chksum.c +NET_CSRCS += net_dsec2tick.c net_dsec2timeval.c net_timeval2dsec.c +NET_CSRCS += net_chksum.c # Non-interrupt level support required? diff --git a/nuttx/net/utils/utils.h b/nuttx/net/utils/utils.h index 094a0a837..e3e640c1d 100644 --- a/nuttx/net/utils/utils.h +++ b/nuttx/net/utils/utils.h @@ -89,8 +89,8 @@ void net_lockinitialize(void); * Function: net_dsec2timeval * * Description: - * Convert a decisecond timeout value to a struct timeval. Needed by - * getsockopt() to report timeout values. + * Convert a decisecond value to a struct timeval. Needed by getsockopt() + * to report timeout values. * * Parameters: * dsec The decisecond value to convert @@ -108,6 +108,22 @@ void net_dsec2timeval(uint16_t dsec, FAR struct timeval *tv); #endif /**************************************************************************** + * Function: net_dsec2tick + * + * Description: + * Convert a decisecond value to a system clock ticks. Used by IGMP logic. + * + * Parameters: + * dsec The decisecond value to convert + * + * Returned Value: + * The decisecond value expressed as system clock ticks + * + ****************************************************************************/ + +unsigned int net_dsec2tick(int dsec); + +/**************************************************************************** * Function: net_timeval2dsec * * Description: |