Try pipelining tap reads on Linux for a little more speed.
This commit is contained in:
parent
31d8758ad9
commit
dc806dd718
2 changed files with 22 additions and 22 deletions
|
@ -40,7 +40,7 @@ namespace ZeroTier {
|
|||
namespace {
|
||||
|
||||
// Returns true if packet appears valid; pos and proto will be set
|
||||
static bool _ipv6GetPayload(const uint8_t *frameData,unsigned int frameLen,unsigned int &pos,unsigned int &proto)
|
||||
static inline bool _ipv6GetPayload(const uint8_t *frameData,unsigned int frameLen,unsigned int &pos,unsigned int &proto)
|
||||
{
|
||||
if (frameLen < 40)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue