Skip to content

Commit a1d15ac

Browse files
committed
Add source and target fn's to CandidateRouteHop
We add `CandidateRouteHop::source` and `CandidateRouteHop::source` functions to point to current and next hops in route respectively. As we have now `source` and `target` available in `CandidateRouteHop` we also remove `CandidateRouteHop::id` inputs so now they are consumed from `self.target` and `self.source` functions. In the `add_entry` macro we also remove `source` and `target` arguments in favor of `candidate` of type `CandidateRouteHop` that holds the needed info.
1 parent 366d688 commit a1d15ac

File tree

1 file changed

+134
-64
lines changed

1 file changed

+134
-64
lines changed

0 commit comments

Comments
 (0)