Project

General

Profile

Actions

Bug #1457

closed

Incorrect cost type for fib::Entry::addNextHop

Added by Alex Afanasyev over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Tables
Target version:
Start date:
04/09/2014
Due date:
% Done:

100%

Estimated time:

Description

Currently, fib::Entry::addNextHop has the following prototype

void
addNextHop(shared_ptr<Face> face, int32_t cost);

while the cost type and fib::Nexthop::setCost is uint64_t:

void
setCost(uint64_t cost);

In addition to that, test cases use uin64_t as a cost parameter and I'm not sure why compiler wasn't complaining before...

Actions

Also available in: Atom PDF