diff options
author | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-01-30 10:44:19 +0100 |
---|---|---|
committer | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-02-03 10:18:52 +0000 |
commit | 55f2219ab98b039f256671c5e584a61ab52bfed0 (patch) | |
tree | d97fbf6a57dfdb4335bba979f27bd18f4999c492 /hicn-light/src/hicn/strategies/lowLatency.c | |
parent | be54ac541c9700eaa9085bc8b4ee21b7a5f7e30a (diff) |
[HICN-489] Add iOS support to hicn stack
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com>
Change-Id: I8fa8c4eaa3218eb4be46f713b15ab789c6930aa0
Diffstat (limited to 'hicn-light/src/hicn/strategies/lowLatency.c')
-rw-r--r-- | hicn-light/src/hicn/strategies/lowLatency.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/strategies/lowLatency.c b/hicn-light/src/hicn/strategies/lowLatency.c index d525f3c5c..47de73538 100644 --- a/hicn-light/src/hicn/strategies/lowLatency.c +++ b/hicn-light/src/hicn/strategies/lowLatency.c @@ -171,7 +171,7 @@ static void strategyLowLatency_SendProbesCB(int fd, PARCEventType which_event, PARCUnsigned *parc_seq = parcUnsigned_Create(seq); Ticks now = forwarder_GetTicks(ll->forwarder); - PARCUnsigned *parc_time = parcUnsigned_Create(now); + PARCUnsigned *parc_time = parcUnsigned_Create((unsigned int)now); parcHashMap_Put(ll->pending_probes_ticks, parc_seq, parc_time); parcHashMap_Put(ll->pending_probes_faces, parc_seq, cid); strategyNexthopStateLL_SentProbe(state); @@ -656,7 +656,7 @@ static void _strategyLowLatency_ReceiveObject(StrategyImpl *strategy, if(RTT <= 0) RTT = 1; strategyNexthopStateLL_AddRttSample( - (StrategyNexthopStateLL *) state, RTT); + (StrategyNexthopStateLL *) state, (unsigned int)RTT); parcHashMap_Remove(ll->pending_probes_ticks, parc_seq); } else { // this may happen if we remove a face/route while downloading a file |