Commit 369e3ddb authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

optfrag: rename constant: FAMILYFRAGS

parent 06c16f14
......@@ -591,7 +591,7 @@ function M.Rule:trules()
end
ofrags = filter(
combinations(ofrags, optfrag.FAMILYFRAGS),
combinations(ofrags, optfrag.FAMILIES),
function(r) return self:trulefilter(r) end
)
......
--[[
Packet marking module for Alpine Wall
Copyright (C) 2012-2017 Kaarle Ritvanen
Copyright (C) 2012-2019 Kaarle Ritvanen
See LICENSE file for license details
]]--
......@@ -40,7 +40,7 @@ end
local function restoremark(config)
if list(config['route-track'])[1] then
return combinations(
optfrag.FAMILYFRAGS,
optfrag.FAMILIES,
{{chain='OUTPUT'}, {chain='PREROUTING'}},
{
{
......
--[[
Transparent proxy module for Alpine Wall
Copyright (C) 2012-2017 Kaarle Ritvanen
Copyright (C) 2012-2019 Kaarle Ritvanen
See LICENSE file for license details
]]--
......@@ -59,7 +59,7 @@ local function divert(config)
ofrags,
{chain='PREROUTING', match='-m socket', target='divert'}
)
return combinations(optfrag.FAMILYFRAGS, {{table='mangle'}}, ofrags)
return combinations(optfrag.FAMILIES, {{table='mangle'}}, ofrags)
end
end
......
......@@ -16,7 +16,7 @@ local function ffrags(families)
return map(families, function(f) return {family=f} end)
end
M.FAMILYFRAGS = ffrags(FAMILIES)
M.FAMILIES = ffrags(FAMILIES)
function M.combinations(of1, ...)
local arg = {...}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment