-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vslib]Add MACsec Forwarder #714
Conversation
Signed-off-by: Ze Gan <ganze718@gmail.com>
4d68205
to
9b12dc1
Compare
vslib/src/MACsecForwarder.cpp
Outdated
|
||
if (write(m_tapfd, buffer, static_cast<int>(size)) < 0) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary empty line
vslib/inc/MACsecForwarder.h
Outdated
int m_tapfd; | ||
int m_macsecfd; | ||
|
||
const std::string m_macsec_interface_name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try keep naming members consistent like m_macsecInterfaceName, m_runThread, m_exitEvent
please revisit other classes to see convention
Signed-off-by: Ze Gan <ganze718@gmail.com>
MACsec Forwarder is for forwarding plaintext data traffic from MACsec device to tap, Ethernet, device.
MACsec Forwarder is for forwarding plaintext data traffic from MACsec device to tap,
Ethernet
, device.The design document can be found at https://github.com/Azure/SONiC/blob/88c7ada900051f73a29aaf4a28bcaf5062ae7305/doc/macsec/MACsec_hld.md#345-virtual-macsec-sai
Signed-off-by: Ze Gan ganze718@gmail.com