]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix BGP ORF Prefix-length matching
authorMartin Winter <mwinter@opensourcerouting.org>
Tue, 14 Dec 2021 13:53:53 +0000 (14:53 +0100)
committermergify-bot <noreply@mergify.com>
Tue, 14 Dec 2021 19:05:32 +0000 (19:05 +0000)
BGP ORF Prefix list incorrectly rejected list with a GE or LE to match the actual
prefix.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
(cherry picked from commit e574b842a1584a245e8dbd6bf4e418bfd78ec7b7)

lib/plist.c

index 1ee855a594ec4ed863280c3dfe1f3a3ede6bd3bc..ee690b2fea2bbe4a2c08e507d1808727c1ecdba5 100644 (file)
@@ -1332,9 +1332,9 @@ int prefix_bgp_orf_set(char *name, afi_t afi, struct orf_prefix *orfp,
        struct prefix_list_entry *pentry;
 
        /* ge and le value check */
-       if (orfp->ge && orfp->ge <= orfp->p.prefixlen)
+       if (orfp->ge && orfp->ge < orfp->p.prefixlen)
                return CMD_WARNING_CONFIG_FAILED;
-       if (orfp->le && orfp->le <= orfp->p.prefixlen)
+       if (orfp->le && orfp->le < orfp->p.prefixlen)
                return CMD_WARNING_CONFIG_FAILED;
        if (orfp->le && orfp->ge > orfp->le)
                return CMD_WARNING_CONFIG_FAILED;