Timeouts configurable at run-time

This commit is contained in:
adamdunkels 2007-03-25 12:06:28 +00:00
parent e12086c980
commit f69268b4ab
7 changed files with 37 additions and 19 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: route-discovery.c,v 1.1 2007/03/22 17:34:16 adamdunkels Exp $
* $Id: route-discovery.c,v 1.2 2007/03/25 12:06:28 adamdunkels Exp $
*/
/**
@ -207,10 +207,12 @@ static const struct uc_callbacks rrep_callbacks = {rrep_packet_received};
static const struct nf_callbacks rreq_callbacks = {rreq_packet_received, NULL};
/*---------------------------------------------------------------------------*/
void
route_discovery_open(struct route_discovery_conn *c, u16_t channels,
route_discovery_open(struct route_discovery_conn *c,
clock_time time,
u16_t channels,
const struct route_discovery_callbacks *callbacks)
{
nf_open(&c->rreqconn, channels + 0, &rreq_callbacks);
nf_open(&c->rreqconn, time, channels + 0, &rreq_callbacks);
uc_open(&c->rrepconn, channels + 1, &rrep_callbacks);
c->cb = callbacks;
}