Add a maximum presence TTL of 24 hours
authorDoug Hudson <douglas.hudson@intel.com>
Thu, 23 Apr 2015 20:22:00 +0000 (16:22 -0400)
committerErich Keane <erich.keane@intel.com>
Fri, 24 Apr 2015 16:29:07 +0000 (16:29 +0000)
commitb375f4a80ca772377d2566ecac334f27514599ac
treeeabefc765c3f601dd7b9c1619058f67502b6650b
parent5e38e9b32db167c420e98266fe7209c687f9738c
Add a maximum presence TTL of 24 hours

- Set TTL to max TTL if TTL exceeds max TTL.
- Rename static function to make name reflect what the function
  actually does.
- Change function signature so that float casts can be removed.
- Add guards against overflowing a uint32_t argument.

Change-Id: Ie391f96fa153b48771187ea6b3d5cf718f52cb52
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/819
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/include/ocstack.h
resource/csdk/stack/src/ocstack.c
resource/include/OCPlatform.h