* NetmaskGroup related
* function `newNMG()`: returns a NetmaskGroup
* member `addMask(mask)`: adds `mask` to the NetmaskGroup. Prefix with `!` to exclude this mask from matching.
- * member `addMask(table)`: adds the keys of `table` to the NetmaskGroup. `table` should be a table whose keys
+ * member `addMasks(table)`: adds the keys of `table` to the NetmaskGroup. `table` should be a table whose keys
are `ComboAddress` objects and values are integers, as returned by `exceed*` functions
* member `match(ComboAddress)`: checks if ComboAddress is matched by this NetmaskGroup
* member `clear()`: clears the NetmaskGroup
{
nmg.addMask(mask);
});
- g_lua.registerFunction<void(NetmaskGroup::*)(const std::map<ComboAddress,int>& map)>("addMasks", [](NetmaskGroup&nmg, const std::map<ComboAddress,int>& map)
+ g_lua.registerFunction<void(NetmaskGroup::*)(const std::map<ComboAddress,int>& map)>("addMasks", [](NetmaskGroup&nmg, const std::map<ComboAddress,int>& map)
{
for (const auto& entry : map) {
nmg.addMask(Netmask(entry.first));