Created
September 3, 2021 13:58
-
-
Save polychaeta/6a19f329851733d3df2d6287780d93a7 to your computer and use it in GitHub Desktop.
FRRouting/frr #9553
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c | |
index 90bc9e269..72c707150 100644 | |
--- a/zebra/zapi_msg.c | |
+++ b/zebra/zapi_msg.c | |
@@ -2244,9 +2244,10 @@ static void zread_router_id_add(ZAPI_HANDLER_ARGS) | |
*/ | |
memset(&zero, 0, sizeof(zero)); | |
if ((p.family == AF_INET && p.u.prefix4.s_addr == INADDR_ANY) | |
- || (p.family == AF_INET6 && memcmp(&p.u.prefix6, | |
- &zero.u.prefix6, | |
- sizeof(struct in6_addr)) == 0)) | |
+ || (p.family == AF_INET6 | |
+ && memcmp(&p.u.prefix6, &zero.u.prefix6, | |
+ sizeof(struct in6_addr)) | |
+ == 0)) | |
return; | |
zsend_router_id_update(client, afi, &p, zvrf_id(zvrf)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment