mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Cleanup.
This commit is contained in:
parent
8b6d23b9f6
commit
22271f2a49
1 changed files with 9 additions and 5 deletions
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
#ifdef ZT_RULES_ENGINE_DEBUGGING
|
#ifdef ZT_RULES_ENGINE_DEBUGGING
|
||||||
#define FILTER_TRACE(f,...) { Utils::snprintf(dpbuf,sizeof(dpbuf),f,##__VA_ARGS__); dlog.push_back(std::string(dpbuf)); }
|
#define FILTER_TRACE(f,...) { Utils::snprintf(dpbuf,sizeof(dpbuf),f,##__VA_ARGS__); dlog.push_back(std::string(dpbuf)); }
|
||||||
static const char *_rtn(const ZT_VirtualNetworkRuleType rt)
|
static const char *_rtn(const ZT_VirtualNetworkRuleType rt)
|
||||||
|
@ -144,11 +146,11 @@ static bool _ipv6GetPayload(const uint8_t *frameData,unsigned int frameLen,unsig
|
||||||
|
|
||||||
enum _doZtFilterResult
|
enum _doZtFilterResult
|
||||||
{
|
{
|
||||||
DOZTFILTER_NO_MATCH = 0,
|
DOZTFILTER_NO_MATCH,
|
||||||
DOZTFILTER_DROP = 1,
|
DOZTFILTER_DROP,
|
||||||
DOZTFILTER_REDIRECT = 2,
|
DOZTFILTER_REDIRECT,
|
||||||
DOZTFILTER_ACCEPT = 3,
|
DOZTFILTER_ACCEPT,
|
||||||
DOZTFILTER_SUPER_ACCEPT = 4
|
DOZTFILTER_SUPER_ACCEPT
|
||||||
};
|
};
|
||||||
static _doZtFilterResult _doZtFilter(
|
static _doZtFilterResult _doZtFilter(
|
||||||
const RuntimeEnvironment *RR,
|
const RuntimeEnvironment *RR,
|
||||||
|
@ -567,6 +569,8 @@ static _doZtFilterResult _doZtFilter(
|
||||||
return DOZTFILTER_NO_MATCH;
|
return DOZTFILTER_NO_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
const ZeroTier::MulticastGroup Network::BROADCAST(ZeroTier::MAC(0xffffffffffffULL),0);
|
const ZeroTier::MulticastGroup Network::BROADCAST(ZeroTier::MAC(0xffffffffffffULL),0);
|
||||||
|
|
||||||
Network::Network(const RuntimeEnvironment *renv,uint64_t nwid,void *uptr) :
|
Network::Network(const RuntimeEnvironment *renv,uint64_t nwid,void *uptr) :
|
||||||
|
|
Loading…
Add table
Reference in a new issue