From 79728636c63e4630e3f2f49c7bc637df0a5c777b Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Mon, 18 Jul 2022 15:56:33 +0000 Subject: [PATCH] Update PN with XPN support Signed-off-by: Ze Gan --- vslib/MACsecManager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vslib/MACsecManager.cpp b/vslib/MACsecManager.cpp index c9b06e392..d6ff15637 100644 --- a/vslib/MACsecManager.cpp +++ b/vslib/MACsecManager.cpp @@ -312,7 +312,14 @@ bool MACsecManager::update_macsec_sa_pn( ostream << " rx sci " << attr.m_sci; } - ostream << " sa " << attr.m_an << " pn " << pn; + ostream << " sa " << attr.m_an; + + if (attr.is_xpn()) + { + ostream << " ssci " << attr.m_ssci; + } + + ostream << " pn " << pn; SWSS_LOG_NOTICE("%s", ostream.str().c_str());