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 /sharpd | |
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 'sharpd')
-rw-r--r-- | sharpd/sharp_vty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index a1215835c..940415b06 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -207,7 +207,7 @@ DEFPY (install_routes, memset(&sg.r.backup_nhop, 0, sizeof(sg.r.nhop)); memset(&sg.r.backup_nhop_group, 0, sizeof(sg.r.nhop_group)); - if (start4.s_addr != 0) { + if (start4.s_addr != INADDR_ANY) { prefix.family = AF_INET; prefix.prefixlen = 32; prefix.u.prefix4 = start4; @@ -362,7 +362,7 @@ DEFPY (remove_routes, memset(&prefix, 0, sizeof(prefix)); - if (start4.s_addr != 0) { + if (start4.s_addr != INADDR_ANY) { prefix.family = AF_INET; prefix.prefixlen = 32; prefix.u.prefix4 = start4; @@ -672,7 +672,7 @@ DEFPY (neigh_discover, memset(&prefix, 0, sizeof(prefix)); - if (dst4.s_addr != 0) { + if (dst4.s_addr != INADDR_ANY) { prefix.family = AF_INET; prefix.prefixlen = 32; prefix.u.prefix4 = dst4; |