]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: Fix nexthop determination when sending towards RP
authorMartin Buck <martin.buck@ruag.com>
Mon, 4 Jun 2018 13:52:14 +0000 (15:52 +0200)
committerMartin Buck <martin.buck@ruag.com>
Tue, 5 Jun 2018 07:58:33 +0000 (09:58 +0200)
commit66f5152f9898ba232373d0103b31d9b93c82c151
tree417f8260b173542ed3cf4e62bdbff02adfdbcf95
parentebb46153b06a48fa5402b850ad8041a469f1a26d
pimd: Fix nexthop determination when sending towards RP

When sending a PIM join upwards on the RP-based tree, it may get dropped on
the last hop before the RP if the RP is reachable via a connected route
(i.e. there's no associated nexthop). pimd needs to put the nexthop IP
address into the PIM join payload and fails to do that if that route has a
nexthop of 0.0.0.0. So whenever we look up a route to determine the nexthop
or we receive a nexthop tracking update from Zebra, use the destination
address as the nexthop address for connected routes.

Fixes #2326.

Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
pimd/pim_nht.c
pimd/pim_zlookup.c