Skip to content
Commit 936febdf authored by Xufeng Zhang's avatar Xufeng Zhang Committed by Joe MacDonald
Browse files

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: default avatarXufeng Zhang <xufeng.zhang@windriver.com>
Signed-off-by: default avatarJoe MacDonald <joe@deserted.net>
parent b613318e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment