diff options
author | saravanank <saravanank@vmware.com> | 2019-05-02 09:48:27 +0200 |
---|---|---|
committer | saravanank <saravanank@vmware.com> | 2019-05-15 05:23:15 +0200 |
commit | 4b936634139d1c910b138c45d75b6c576f5c5cbe (patch) | |
tree | c99a01aca1358ca3deff63dce75ac11cc63cee52 /pimd/pim_nht.h | |
parent | pimd: PIM nexthop tracking changes for tracking nexthop path of BSR. (diff) | |
download | frr-4b936634139d1c910b138c45d75b6c576f5c5cbe.tar.xz frr-4b936634139d1c910b138c45d75b6c576f5c5cbe.zip |
pimd: Implement nexthop match where if given address match any of the next hop in ecmp case
For each BSM packet, rpf check is performed. We will be accepting if the
source address match any of the next hop neighbor(in ecmp case) to reach
the Bootstrap Router.
1. pim_nexthop_match - this lookup in zebra and return true if any of the
next hop nbr is matching (in ecmp case).
2. pim_nexthop_match_nht_cache - this api searches the given address in local
pnc and return true if any of the next hop
nbr is matching (in ecmp case).
Signed-off-by: Saravanan K <saravanank@vmware.com>
Diffstat (limited to 'pimd/pim_nht.h')
-rw-r--r-- | pimd/pim_nht.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pimd/pim_nht.h b/pimd/pim_nht.h index 5324aba44..e3b746b19 100644 --- a/pimd/pim_nht.h +++ b/pimd/pim_nht.h @@ -73,4 +73,9 @@ void pim_sendmsg_zebra_rnh(struct pim_instance *pim, struct zclient *zclient, int pim_ecmp_fib_lookup_if_vif_index(struct pim_instance *pim, struct prefix *src, struct prefix *grp); void pim_rp_nexthop_del(struct rp_info *rp_info); +bool pim_nexthop_match(struct pim_instance *pim, struct in_addr addr, + struct in_addr ip_src); +bool pim_nexthop_match_nht_cache(struct pim_instance *pim, struct in_addr addr, + struct in_addr ip_src); + #endif |