-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ic: Fix denylist for IPv6 with same prefix length.
Fix the prefix filter function as the return condition when IPv6 prefixes have same length. New calc uses the denylist prefix mask to compare prefix and denylist prefix. Without this fix if denylist filter has 2003:db08::/64 and it exists a route to 2003:db88, this route is blocked because the calc for IPv6 doesn't check if they have the same prefix lenght. AND operator between prefix and denylist prefix will be 2003:db08::/68 in this example (2003:db88::/64 & 2003:db08::64) Signed-off-by: Lucas Vargas Dias <lucas.vdias@luizalabs.com> Signed-off-by: Dumitru Ceara <dceara@redhat.com> (cherry picked from commit c4f248a)
- Loading branch information
1 parent
c33b46b
commit 9254736
Showing
2 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters