]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Only create and bind the autorp socket when really needed 18538/head
authorNathan Bahr <nbahr@atcorp.com>
Fri, 28 Mar 2025 16:02:19 +0000 (16:02 +0000)
committerNathan Bahr <nbahr@atcorp.com>
Fri, 28 Mar 2025 16:50:09 +0000 (16:50 +0000)
commit133bb5f614d359ebe427f748ac809202d686f934
tree67a1a43072a3eb2fbde7cb6b96032c3cf1c95923
parent285fcb903a495f8b4067d6dcade8c2dcbf39e748
pimd: Only create and bind the autorp socket when really needed

Previously, the autorp socket would get created and bind if needed
by autorp configuration.
This update limits it further to also require pim enabled interfaces
in the vrf before the socket is created and bind.
So now the socket will automatically close if there are no pim
enabled interfaces left, or if autorp is turned off. It will
automatically turn on if autorp is turned on and there are pim
enabled interfaces in the vrf.

Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
pimd/pim_autorp.c
pimd/pim_iface.c
pimd/pim_nb_config.c