diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 18:05:11 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 23:50:39 +0300 |
| commit | 12256b84a540434485b16433f83aa23928405560 (patch) | |
| tree | e1ef59c861d62e6527ebe87f6527142f18cfef8d /lib/command_match.c | |
| parent | 45833edae0fe12c87cdb90f939c07d282959e1b9 (diff) | |
*: Convert numeric 32 into IPV4_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 367362f7b5..5703510148 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -813,7 +813,7 @@ static enum match_type match_ipv4_prefix(const char *str) str++; } - if (atoi(sp) > 32) + if (atoi(sp) > IPV4_MAX_BITLEN) return no_match; return exact_match; |
