summaryrefslogtreecommitdiff
path: root/controller/EmbeddedNetworkController.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-31 16:50:22 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-31 16:50:22 -0700
commit74afef8eb1d96aec291c6dfeca31e69a2ad33d69 (patch)
tree7b976206799fd9260e5f51d4a33fbd694a81e28c /controller/EmbeddedNetworkController.cpp
parent54489a7f61a19b07eaa5a87d1df2ee30101f29ee (diff)
downloadinfinitytier-74afef8eb1d96aec291c6dfeca31e69a2ad33d69.tar.gz
infinitytier-74afef8eb1d96aec291c6dfeca31e69a2ad33d69.zip
Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics.
Diffstat (limited to 'controller/EmbeddedNetworkController.cpp')
-rw-r--r--controller/EmbeddedNetworkController.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp
index 29dd8ad7..ff2f34ec 100644
--- a/controller/EmbeddedNetworkController.cpp
+++ b/controller/EmbeddedNetworkController.cpp
@@ -144,7 +144,6 @@ static json _renderRule(ZT_VirtualNetworkRule &rule)
r["type"] = "ACTION_REDIRECT";
r["address"] = Address(rule.v.fwd.address).toString();
r["flags"] = (unsigned int)rule.v.fwd.flags;
- r["length"] = (unsigned int)rule.v.fwd.length;
break;
case ZT_NETWORK_RULE_ACTION_DEBUG_LOG:
r["type"] = "ACTION_DEBUG_LOG";
@@ -308,7 +307,6 @@ static bool _parseRule(json &r,ZT_VirtualNetworkRule &rule)
rule.t |= ZT_NETWORK_RULE_ACTION_REDIRECT;
rule.v.fwd.address = Utils::hexStrToU64(_jS(r["zt"],"0").c_str()) & 0xffffffffffULL;
rule.v.fwd.flags = (uint32_t)(_jI(r["flags"],0ULL) & 0xffffffffULL);
- rule.v.fwd.length = (uint16_t)(_jI(r["length"],0ULL) & 0xffffULL);
return true;
} else if (t == "ACTION_DEBUG_LOG") {
rule.t |= ZT_NETWORK_RULE_ACTION_DEBUG_LOG;