Skip to content

Commit

Permalink
Polish code
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur committed Jan 8, 2021
1 parent 48dc8ee commit 9d117d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vslib/src/SwitchStateBaseMACsec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ sai_status_t SwitchStateBase::loadMACsecAttrFromMACsecSA(
auto sci = attrs[1].value.u64;
std::stringstream sciHexStr;
macsecAttr.m_encryptionEnable = attrs[2].value.booldata;
bool is_sak_128_bit = (attrs[3].value.s32 == SAI_MACSEC_CIPHER_SUITE_GCM_AES_128 || attrs[3].value.s32 == SAI_MACSEC_CIPHER_SUITE_GCM_AES_XPN_128) ? true : false;
bool is_sak_128_bit = (attrs[3].value.s32 == SAI_MACSEC_CIPHER_SUITE_GCM_AES_128 || attrs[3].value.s32 == SAI_MACSEC_CIPHER_SUITE_GCM_AES_XPN_128);

sciHexStr << std::setw(MACSEC_SCI_LENGTH) << std::setfill('0');

Expand Down

0 comments on commit 9d117d7

Please sign in to comment.