diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2024-06-07 15:46:20 +0200 |
---|---|---|
committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-06-13 14:54:16 +0200 |
commit | 708f20e58aa928d795eaa9ceb6c6de67341fb4ac (patch) | |
tree | c5a8cdbc83a30f71da099011fd70096917d4a391 /zebra | |
parent | zebra: Fix checkpatch warning (diff) | |
download | frr-708f20e58aa928d795eaa9ceb6c6de67341fb4ac.tar.xz frr-708f20e58aa928d795eaa9ceb6c6de67341fb4ac.zip |
zebra: fix display srv6 address only for explicit-sid
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_srv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c index aac4ba86a..cbf471ae3 100644 --- a/zebra/zebra_srv6.c +++ b/zebra/zebra_srv6.c @@ -2265,13 +2265,13 @@ static int srv6_manager_get_sid_internal(struct zebra_srv6_sid **sid, if (IS_ZEBRA_DEBUG_PACKET) zlog_debug("%s: getting SRv6 SID for ctx %s, sid_value=%pI6, locator_name=%s", __func__, srv6_sid_ctx2str(buf, sizeof(buf), ctx), - sid_value, locator_name); + sid_value ? sid_value : &in6addr_any, locator_name); ret = get_srv6_sid(sid, ctx, sid_value, locator_name); if (ret < 0) { zlog_warn("%s: not got SRv6 SID for ctx %s, sid_value=%pI6, locator_name=%s", __func__, srv6_sid_ctx2str(buf, sizeof(buf), ctx), - sid_value, locator_name); + sid_value ? sid_value : &in6addr_any, locator_name); /* Notify client about SID alloc failure */ zsend_srv6_sid_notify(client, ctx, NULL, 0, 0, |