mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
Minor style updates
This commit is contained in:
parent
e4c387615e
commit
952e1e4da3
@ -634,9 +634,10 @@ try_next_server(struct namemap *namemapptr)
|
|||||||
#if VERBOSE_DEBUG
|
#if VERBOSE_DEBUG
|
||||||
printf("server %d\n", namemapptr->server);
|
printf("server %d\n", namemapptr->server);
|
||||||
#endif
|
#endif
|
||||||
if(uip_nameserver_get(++namemapptr->server) != NULL) {
|
namemapptr->server++;
|
||||||
namemapptr->retries = 0;
|
if(uip_nameserver_get(namemapptr->server) != NULL) {
|
||||||
return 1;
|
namemapptr->retries = 0;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
namemapptr->server = 0;
|
namemapptr->server = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -74,8 +74,7 @@
|
|||||||
* considered to remove an entry. Maximum is 0xFFFFFFFF which
|
* considered to remove an entry. Maximum is 0xFFFFFFFF which
|
||||||
* is considered infinite.
|
* is considered infinite.
|
||||||
*/
|
*/
|
||||||
void
|
void uip_nameserver_update(uip_ipaddr_t *nameserver, uint32_t lifetime);
|
||||||
uip_nameserver_update(uip_ipaddr_t *nameserver, uint32_t lifetime);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Get a Nameserver ip address given in RA
|
* \brief Get a Nameserver ip address given in RA
|
||||||
@ -83,22 +82,19 @@ uip_nameserver_update(uip_ipaddr_t *nameserver, uint32_t lifetime);
|
|||||||
* \param num The number of the nameserver to obtain, starting at 0 and going
|
* \param num The number of the nameserver to obtain, starting at 0 and going
|
||||||
* up to the pool size.
|
* up to the pool size.
|
||||||
*/
|
*/
|
||||||
uip_ipaddr_t *
|
uip_ipaddr_t *uip_nameserver_get(uint8_t num);
|
||||||
uip_nameserver_get(uint8_t num);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Get next expiration time
|
* \brief Get next expiration time
|
||||||
*
|
*
|
||||||
* The least expiration time is returned
|
* The least expiration time is returned
|
||||||
*/
|
*/
|
||||||
uint32_t
|
uint32_t uip_nameserver_next_expiration(void);
|
||||||
uip_nameserver_next_expiration(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Get the number of recorded name servers
|
* \brief Get the number of recorded name servers
|
||||||
*/
|
*/
|
||||||
uint16_t
|
uint16_t uip_nameserver_count(void);
|
||||||
uip_nameserver_count(void);
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
#endif /* UIP_NAMESERVER_H_ */
|
#endif /* UIP_NAMESERVER_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user