diff options
Diffstat (limited to 'bgpd/rfapi/rfapi_private.h')
| -rw-r--r-- | bgpd/rfapi/rfapi_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/rfapi/rfapi_private.h b/bgpd/rfapi/rfapi_private.h index e7825e8bfc..bc0e192ae2 100644 --- a/bgpd/rfapi/rfapi_private.h +++ b/bgpd/rfapi/rfapi_private.h @@ -267,9 +267,9 @@ struct rfapi { #define RFAPI_HOST_PREFIX(prefix) \ (((prefix)->family == AF_INET) \ - ? ((prefix)->prefixlen == 32) \ + ? ((prefix)->prefixlen == IPV4_MAX_BITLEN) \ : (((prefix)->family == AF_INET6) \ - ? ((prefix)->prefixlen == 128) \ + ? ((prefix)->prefixlen == IPV6_MAX_BITLEN) \ : 0)) extern int rfapi_find_rfd(struct bgp *bgp, struct rfapi_ip_addr *vn_addr, |
