Skip to content

Commit

Permalink
Merge pull request #10218 from FRRouting/mergify/bp/stable/8.0/pr-10214
Browse files Browse the repository at this point in the history
bgpd: fix BGP ORF Prefix-length matching (backport #10214)
  • Loading branch information
ton31337 committed Dec 15, 2021
2 parents 11cf1b9 + 1746414 commit 33bb907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33bb907

Please sign in to comment.