quagga: Avoid duplicate connected address adding to the list
commit 27ba970b ("quagga/ripd: Fix two bugs after received SIGHUP signal") introduces an regression: ifp->connected list is cleaned up when ripd is restarting, however, for interface addresses which are not specified in ripd configuration file, they are never to be added into ifp->connected again, this will lead to some abnormal behavior for route advertising. Instead of cleaning up the ifp->connected list to avoid duplicated connected address being added into this list, we can check this condition during interface address adding process and return early when an identical address has already been added. Signed-off-by:Xufeng Zhang <xufeng.zhang@windriver.com> Signed-off-by:
Joe MacDonald <joe@deserted.net>
parent
b613318e
Please register or sign in to comment