Skip to content
Snippets Groups Projects
Commit a87583d1 authored by Tomasz Grabiec's avatar Tomasz Grabiec
Browse files

net: remove dead code

parent d7fa401b
No related branches found
No related tags found
No related merge requests found
...@@ -684,24 +684,3 @@ tcp_timer_active(struct tcpcb *tp, int timer_type) ...@@ -684,24 +684,3 @@ tcp_timer_active(struct tcpcb *tp, int timer_type)
} }
return callout_active(t_callout); return callout_active(t_callout);
} }
#define ticks_to_msecs(t) (1000*(t) / hz)
void
tcp_timer_to_xtimer(struct tcpcb *tp, struct tcp_timer *timer, struct xtcp_timer *xtimer)
{
bzero(xtimer, sizeof(struct xtcp_timer));
if (timer == NULL)
return;
if (callout_active(&timer->tt_delack))
xtimer->tt_delack = ticks_to_msecs(timer->tt_delack.c_time - bsd_ticks);
if (callout_active(&timer->tt_rexmt))
xtimer->tt_rexmt = ticks_to_msecs(timer->tt_rexmt.c_time - bsd_ticks);
if (callout_active(&timer->tt_persist))
xtimer->tt_persist = ticks_to_msecs(timer->tt_persist.c_time - bsd_ticks);
if (callout_active(&timer->tt_keep))
xtimer->tt_keep = ticks_to_msecs(timer->tt_keep.c_time - bsd_ticks);
if (callout_active(&timer->tt_2msl))
xtimer->tt_2msl = ticks_to_msecs(timer->tt_2msl.c_time - bsd_ticks);
xtimer->t_rcvtime = ticks_to_msecs(bsd_ticks - tp->t_rcvtime);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment