Refactor controller to send both old and new format netconf.

This commit is contained in:
Adam Ierymenko
2016-05-11 08:49:15 -07:00
parent 37b89b3944
commit 7ee3743c3d
2 changed files with 311 additions and 258 deletions

View File

@ -168,8 +168,7 @@ void NetworkConfig::fromDictionary(const char *ds,unsigned int dslen)
rules[ruleCount].v.etherType = (uint16_t)et2;
++ruleCount;
}
rules[ruleCount].t = ZT_NETWORK_RULE_ACTION_ACCEPT;
++ruleCount;
rules[ruleCount++].t = ZT_NETWORK_RULE_ACTION_ACCEPT;
}
}