net: contiki: etimer should call proper handler
When the timer is set, the caller needs to specify the function that is called when timer expires. Change-Id: Iae69986c6f32b789d708247b187d143e45d73828 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
9b18a6d0bb
commit
62b67666d8
9 changed files with 51 additions and 24 deletions
|
@ -687,7 +687,7 @@ uip_reass(void)
|
|||
PRINTF("Starting reassembly\n");
|
||||
memcpy(FBUF, UIP_IP_BUF(buf), uip_ext_len(buf) + UIP_IPH_LEN);
|
||||
/* temporary in case we do not receive the fragment with offset 0 first */
|
||||
etimer_set(&uip_reass_timer, UIP_REASS_MAXAGE*CLOCK_SECOND);
|
||||
etimer_set(&uip_reass_timer, UIP_REASS_MAXAGE*CLOCK_SECOND, &tcpip_process);
|
||||
uip_reass_on = 1;
|
||||
uip_reassflags = 0;
|
||||
uip_id = UIP_FRAG_BUF->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue