]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: "default-originate" shouldn't withdraw non-default routes
authorXiao Liang <shaw.leon@gmail.com>
Fri, 15 Dec 2023 10:27:39 +0000 (18:27 +0800)
committerXiao Liang <shaw.leon@gmail.com>
Fri, 15 Dec 2023 10:27:39 +0000 (18:27 +0800)
commit4d74ba929daa6e6b2fe15f9df6e61d5e4808b64c
tree321b98fcb7450e743a41b73ba41726d9c6d413d4
parenta912f8fab7b1d4a58c2b97e93531330f30f84994
bgpd: "default-originate" shouldn't withdraw non-default routes

Prevent "default-originate" from withdrawing non-default routes like
0.0.0.0/1 by checking prefix length.

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
bgpd/bgp_route.c