]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_pim.c
pimd: Add a flag to decide PIM has to send Hello
authorMobashshera Rasool <mrasool@vmware.com>
Fri, 1 Oct 2021 07:36:10 +0000 (00:36 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Mon, 4 Oct 2021 05:04:34 +0000 (22:04 -0700)
commit79992e8a4257c35a1d255c24aa3b2df2f8b80b96
tree17dd52a0799dac9ece8c49c465b9428ee3169c01
parent31df775552690649ab769c57ed796a9de82fa22b
pimd: Add a flag to decide PIM has to send Hello

Problem Statement:
==================
pim maintains two counters hello tx and hello rx at interface level.
At present pim needs to send the hello message prior to other pim
message as per RFC. This logic is getting derived from the tx hello
counters. So when a new neighbor is added, tx counters are set to
zero and then based on this, it is further decided to send hello in
pim_hello_require function.

Fix:
====
Separating the hello statistics and the logic to decide when to send hello
based on a new flag. pim_ifstat_hello_sent will be used to note down
the hello stats while a new flag is added to decide whether to send hello
or not if it is the first packet to a neighbor.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_hello.c
pimd/pim_iface.c
pimd/pim_iface.h
pimd/pim_neighbor.c
pimd/pim_pim.c