Commit b4d83b01 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

test: filter-limit: addr

parent 44424903
...@@ -14,6 +14,7 @@ function add(limit_type, base) ...@@ -14,6 +14,7 @@ function add(limit_type, base)
for _, name in ipairs{ for _, name in ipairs{
false, type(limit) == 'table' and count == 1 and 'foo' or nil false, type(limit) == 'table' and count == 1 and 'foo' or nil
} do } do
for _, addr in ipairs{false, name and 'dest' or nil} do
for _, no_update in ipairs{false, name or nil} do for _, no_update in ipairs{false, name or nil} do
local upd local upd
if no_update then upd = false end if no_update then upd = false end
...@@ -25,7 +26,12 @@ function add(limit_type, base) ...@@ -25,7 +26,12 @@ function add(limit_type, base)
update( update(
{ {
[limit_type..'-limit']=type(limit) == 'table' and update( [limit_type..'-limit']=type(limit) == 'table' and update(
{name=name or nil, update=upd}, limit {
name=name or nil,
addr=addr or nil,
update=upd
},
limit
) or limit, ) or limit,
log=log or nil, log=log or nil,
action=action or nil action=action or nil
...@@ -40,6 +46,7 @@ function add(limit_type, base) ...@@ -40,6 +46,7 @@ function add(limit_type, base)
end end
end end
end end
end
end end
add('conn', {out='B'}) add('conn', {out='B'})
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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