Hello,
This is sort of a continuation of a thread from quagga-users and pfsense:
https://lists.quagga.net/pipermail/quagga-users/2016-October/014474.html
https://forum.pfsense.org/index.php?topic=111108.0
Could someone please take a look at
commit 0d0686f98e64017415071e590bde262f0ab5a4c9 (
https://github.com/Quagga/quagga/commit/0d0686f98e64017415071e590bde262f0ab5a4c9)
and confirm why function rib_sweep_table is commented out in zebra_rib.c?
The problem we are having (pfSense, FreeBSD) is that when zebra is
restarted it keeps routes that it originally put in the kernel routing
table (flag RTF_PROTO1) in the RIB, and those seem to take precedence over
OSPF routes from that point on. The function rib_sweep_table appears to
have removed routes flagged as ZEBRA_FLAG_SELFROUTE from the RIB when it
starts up. In zebra/kernel_socket.c it sets routes flagged as RTF_PROTO1
as ZEBRA_FLAG_SELFROUTE.
If a dev (hopefully Feng Lu if he committed it) could comment on if this is
intentional, and what the reasoning is for this, it would be greatly
appreciated.
Thanks,
Nate
This is sort of a continuation of a thread from quagga-users and pfsense:
https://lists.quagga.net/pipermail/quagga-users/2016-October/014474.html
https://forum.pfsense.org/index.php?topic=111108.0
Could someone please take a look at
commit 0d0686f98e64017415071e590bde262f0ab5a4c9 (
https://github.com/Quagga/quagga/commit/0d0686f98e64017415071e590bde262f0ab5a4c9)
and confirm why function rib_sweep_table is commented out in zebra_rib.c?
The problem we are having (pfSense, FreeBSD) is that when zebra is
restarted it keeps routes that it originally put in the kernel routing
table (flag RTF_PROTO1) in the RIB, and those seem to take precedence over
OSPF routes from that point on. The function rib_sweep_table appears to
have removed routes flagged as ZEBRA_FLAG_SELFROUTE from the RIB when it
starts up. In zebra/kernel_socket.c it sets routes flagged as RTF_PROTO1
as ZEBRA_FLAG_SELFROUTE.
If a dev (hopefully Feng Lu if he committed it) could comment on if this is
intentional, and what the reasoning is for this, it would be greatly
appreciated.
Thanks,
Nate