diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:53:21 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:53:21 +0300 |
| commit | 13ccce6e7e5b6f7801910fca53c4c45502bf6213 (patch) | |
| tree | 1137ab12737b73f976df3df678ab826a8d335c71 /lib/command_match.c | |
| parent | 936fbaef4794277a56185c535574df0f2771c117 (diff) | |
*: Convert numeric 128 into IPV6_MAX_BITLEN for prefixlen
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/command_match.c')
| -rw-r--r-- | lib/command_match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_match.c b/lib/command_match.c index e9e8466ffd..367362f7b5 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -948,7 +948,7 @@ static enum match_type match_ipv6_prefix(const char *str, bool prefix) if (*endptr != '\0') return no_match; - if (mask < 0 || mask > 128) + if (mask < 0 || mask > IPV6_MAX_BITLEN) return no_match; return exact_match; |
