diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-12-14 20:01:31 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-12-14 20:03:38 +0100 |
commit | 3a6290bdd1003f53ad73aaaa2f6bc4b08e262352 (patch) | |
tree | 140586732e3a6a1b6d24ce775cebfb6d77b165d0 /bgpd/rfapi | |
parent | Merge pull request #7726 from chiragshah6/mdev (diff) | |
download | frr-3a6290bdd1003f53ad73aaaa2f6bc4b08e262352.tar.xz frr-3a6290bdd1003f53ad73aaaa2f6bc4b08e262352.zip |
*: Replace s_addr check agains 0 with INADDR_ANY
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r-- | bgpd/rfapi/rfapi_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/rfapi/rfapi_private.h b/bgpd/rfapi/rfapi_private.h index 68caba600..e24d62def 100644 --- a/bgpd/rfapi/rfapi_private.h +++ b/bgpd/rfapi/rfapi_private.h @@ -255,7 +255,7 @@ struct rfapi { #define RFAPI_0_PREFIX(prefix) \ ((((prefix)->family == AF_INET) \ - ? (prefix)->u.prefix4.s_addr == 0 \ + ? (prefix)->u.prefix4.s_addr == INADDR_ANY \ : (((prefix)->family == AF_INET6) \ ? (IN6_IS_ADDR_UNSPECIFIED(&(prefix)->u.prefix6)) \ : 0))) |