diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 16:42:03 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 16:44:09 +0200 |
commit | 936fbaef4794277a56185c535574df0f2771c117 (patch) | |
tree | 22e9f5b8ccaddd165187244bde90fdd61492630c /zebra/kernel_socket.c | |
parent | *: Replace IPV6_MAX_PREFIXLEN to IPV6_MAX_BITLEN (diff) | |
download | frr-936fbaef4794277a56185c535574df0f2771c117.tar.xz frr-936fbaef4794277a56185c535574df0f2771c117.zip |
*: Replace IPV4_MAX_PREFIXLEN to IPV4_MAX_BITLEN
Just drop IPV4_MAX_PREFIXLEN at all, no need keeping both.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r-- | zebra/kernel_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index d3e5f4233..252bf0478 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -1066,7 +1066,7 @@ void rtm_read(struct rt_msghdr *rtm) p.family = AF_INET; p.u.prefix4 = dest.sin.sin_addr; if (flags & RTF_HOST) - p.prefixlen = IPV4_MAX_PREFIXLEN; + p.prefixlen = IPV4_MAX_BITLEN; else p.prefixlen = ip_masklen(mask.sin.sin_addr); |