mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-12-07 02:51:06 -08:00
Add conditional compilation of controller.
This commit is contained in:
parent
6bf7b4d9ba
commit
6e6fc9a704
10 changed files with 65 additions and 60 deletions
|
|
@ -550,9 +550,6 @@ void Switch::onLocalEthernet(void* tPtr, const SharedPtr<Network>& network, cons
|
|||
outp.append(network->id());
|
||||
outp.append((uint16_t)etherType);
|
||||
outp.append(data, len);
|
||||
// 1.4.8: disable compression for unicast as it almost never helps
|
||||
// if (!network->config().disableCompression())
|
||||
// outp.compress();
|
||||
aqm_enqueue(tPtr, network, outp, true, qosBucket, network->id(), flowId);
|
||||
}
|
||||
else {
|
||||
|
|
@ -563,9 +560,6 @@ void Switch::onLocalEthernet(void* tPtr, const SharedPtr<Network>& network, cons
|
|||
from.appendTo(outp);
|
||||
outp.append((uint16_t)etherType);
|
||||
outp.append(data, len);
|
||||
// 1.4.8: disable compression for unicast as it almost never helps
|
||||
// if (!network->config().disableCompression())
|
||||
// outp.compress();
|
||||
aqm_enqueue(tPtr, network, outp, true, qosBucket, network->id(), flowId);
|
||||
}
|
||||
}
|
||||
|
|
@ -627,9 +621,6 @@ void Switch::onLocalEthernet(void* tPtr, const SharedPtr<Network>& network, cons
|
|||
from.appendTo(outp);
|
||||
outp.append((uint16_t)etherType);
|
||||
outp.append(data, len);
|
||||
// 1.4.8: disable compression for unicast as it almost never helps
|
||||
// if (!network->config().disableCompression())
|
||||
// outp.compress();
|
||||
aqm_enqueue(tPtr, network, outp, true, qosBucket, network->id(), flowId);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue