diff options
| author | Nathan Bahr <nbahr@atcorp.com> | 2024-10-30 21:21:50 +0000 |
|---|---|---|
| committer | Nathan Bahr <nbahr@atcorp.com> | 2025-01-09 21:58:22 +0000 |
| commit | e8d81ab5ce04237ddc28ac0dc4b29e49dd2a1979 (patch) | |
| tree | 376ea42105e3924333bb7005ca6dcb8fd3cf309e /pimd/pim_cmd.c | |
| parent | 8b00575fbb358bc214a9281c948cb0d703aa7605 (diff) | |
pimd: Implement rpf lookup mode as a list
Add the support to store lookup modes as a sorted list.
List is non-unique and sorts mode with both lists < modes with one list < global mode (no lists).
This way, when finding the right mode, we will match a lookup using a prefix list before the global mode.
Add passing group address into all lookups (using nht cache and/or synchronous lookup).
Many areas don't have a group address, use PIMADDR_ANY if no valid group is needed.
Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 30baa6a2a4..a1ad261869 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -3296,7 +3296,7 @@ DEFUN (show_ip_rib, return CMD_WARNING; } - if (!pim_nht_lookup(vrf->info, &nexthop, addr, 0)) { + if (!pim_nht_lookup(vrf->info, &nexthop, addr, PIMADDR_ANY, false)) { vty_out(vty, "Failure querying RIB nexthop for unicast address %s\n", addr_str); |
