]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix BGP ORF Prefix-length matching 10214/head
authorMartin Winter <mwinter@opensourcerouting.org>
Tue, 14 Dec 2021 13:53:53 +0000 (14:53 +0100)
committerMartin Winter <mwinter@opensourcerouting.org>
Tue, 14 Dec 2021 13:53:53 +0000 (14:53 +0100)
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>
lib/plist.c

index 046ccadc0998a794730d769516b3c970d6f1a500..d6a63c1b0cbb34c528fbc290eb6f700b8f381c5b 100644 (file)
@@ -1480,9 +1480,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;