Skip to content

Commit

Permalink
Add source and target fn's to CandidateRouteHop
Browse files Browse the repository at this point in the history
    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.
  • Loading branch information
jbesraa committed Dec 5, 2023
1 parent 366d688 commit a1d15ac
Showing 1 changed file with 134 additions and 64 deletions.
Loading

0 comments on commit a1d15ac

Please sign in to comment.