]> git.puffer.fish Git - mirror/frr.git/commitdiff
babeld: Install route to RIB if parse_update_subtlv() is false 11591/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 11 Jul 2022 17:26:06 +0000 (20:26 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 12 Jul 2022 06:16:30 +0000 (06:16 +0000)
We installed the route only if the type was SUBTLV_MANDATORY.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit d5260dc1231922c713555ab4bc77c0b4d0e8d8e6)

babeld/message.c

index c2ea2a268394631728ac0e8e80b4957b0395de0a..7d45d91bf7a50f73171fc8fea8061e1890585739 100644 (file)
@@ -636,7 +636,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
                                                    len - parsed_len, channels);
            }
 
-           if (ignore_update)
+           if (!ignore_update)
                    update_route(router_id, prefix, plen, seqno, metric,
                                 interval, neigh, nh, channels,
                                 channels_len(channels));