Rewrote the netif time code so that is avoids the use of floating point numbers; some code style fixes

This commit is contained in:
adamdunkels 2010-02-02 16:32:03 +00:00
parent 88fb1c80c9
commit 88c661b0c2
2 changed files with 20 additions and 33 deletions

View file

@ -88,9 +88,9 @@
#define UIP_ND6_MAX_UNICAST_SOLICIT 3
#define UIP_ND6_REACHABLE_TIME 30000
#define UIP_ND6_RETRANS_TIMER 1000
#define UIP_ND6_DELAY_FIRST_PROBE_TIME 5
#define UIP_ND6_MIN_RANDOM_FACTOR 0.5
#define UIP_ND6_MAX_RANDOM_FACTOR 1.5
#define UIP_ND6_DELAY_FIRST_PROBE_TIME 5
#define UIP_ND6_MIN_RANDOM_FACTOR(x) (x / 2)
#define UIP_ND6_MAX_RANDOM_FACTOR(x) ((x) + (x) / 2)
/** @} */
@ -171,7 +171,7 @@ typedef enum {
* @{
*/
/** \brief An entry in the neighbor cache */
struct uip_nd6_neighbor{
struct uip_nd6_neighbor {
uip_ipaddr_t ipaddr;
uip_lladdr_t lladdr;
u8_t isrouter;