diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-17 21:25:21 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-17 21:25:21 -0400 |
| commit | 85b62aeab3d66d57e88b2cf5577df589e60133b9 (patch) | |
| tree | 63b8bbd6b3dc6a07e678a47eba241c35a407d3ed | |
| parent | 9df994075b757c809177ffd97d74c13d7952b276 (diff) | |
pimd: Prevent loopback from forming neighbor
This code prevents pim from forming a neighbor relationship
with itself by preventing pim from sending a hello
out the loopback interface if we have pim configured
on an interface.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | pimd/pim_pim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 959663433d..a3136b61b2 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -584,6 +584,9 @@ static int pim_hello_send(struct interface *ifp, pim_ifp = ifp->info; zassert(pim_ifp); + if (if_is_loopback (ifp)) + return 0; + if (hello_send(ifp, holdtime)) { ++pim_ifp->pim_ifstat_hello_sendfail; |
