forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vslib]Add MACsec forward and filters to HostInterfaceInfo (sonic-net…
…#719) Add MACsec filter before VLAN Tag and FDB event processing. Refer: MACsec in VLAN-aware Bridges
- Loading branch information
Showing
10 changed files
with
288 additions
and
96 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#pragma once | ||
|
||
#include "swss/sal.h" | ||
|
||
#include <stddef.h> | ||
#include <sys/socket.h> | ||
|
||
namespace saivs | ||
{ | ||
static constexpr size_t ETH_FRAME_BUFFER_SIZE = 0x4000; | ||
static constexpr size_t CONTROL_MESSAGE_BUFFER_SIZE = 0x1000; | ||
|
||
class TrafficForwarder | ||
{ | ||
public: | ||
virtual ~TrafficForwarder() = default; | ||
|
||
protected: | ||
TrafficForwarder() = default; | ||
|
||
static void addVlanTag( | ||
_Inout_ unsigned char *buffer, | ||
_Inout_ size_t &length, | ||
_Inout_ struct msghdr &msg); | ||
|
||
virtual bool sendTo( | ||
_In_ int fd, | ||
_In_ const unsigned char *buffer, | ||
_In_ size_t length) const; | ||
|
||
}; | ||
} |
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
Oops, something went wrong.