Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
awall
Commits
b4d83b01
Commit
b4d83b01
authored
Oct 07, 2017
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: filter-limit: addr
parent
44424903
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8837 additions
and
4328 deletions
+8837
-4328
test/mandatory/filter-limit.lua
test/mandatory/filter-limit.lua
+26
-19
test/output/dump
test/output/dump
+6169
-3149
test/output/rules-save
test/output/rules-save
+1321
-580
test/output/rules6-save
test/output/rules6-save
+1321
-580
No files found.
test/mandatory/filter-limit.lua
View file @
b4d83b01
...
...
@@ -14,25 +14,32 @@ function add(limit_type, base)
for
_
,
name
in
ipairs
{
false
,
type
(
limit
)
==
'table'
and
count
==
1
and
'foo'
or
nil
}
do
for
_
,
no_update
in
ipairs
{
false
,
name
or
nil
}
do
local
upd
if
no_update
then
upd
=
false
end
for
_
,
log
in
ipairs
{
false
,
true
,
'none'
}
do
for
_
,
action
in
ipairs
{
false
,
'pass'
}
do
if
not
(
count
==
30
and
log
and
action
)
then
table.insert
(
res
,
update
(
{
[
limit_type
..
'-limit'
]
=
type
(
limit
)
==
'table'
and
update
(
{
name
=
name
or
nil
,
update
=
upd
},
limit
)
or
limit
,
log
=
log
or
nil
,
action
=
action
or
nil
},
base
or
{}
)
)
for
_
,
addr
in
ipairs
{
false
,
name
and
'dest'
or
nil
}
do
for
_
,
no_update
in
ipairs
{
false
,
name
or
nil
}
do
local
upd
if
no_update
then
upd
=
false
end
for
_
,
log
in
ipairs
{
false
,
true
,
'none'
}
do
for
_
,
action
in
ipairs
{
false
,
'pass'
}
do
if
not
(
count
==
30
and
log
and
action
)
then
table.insert
(
res
,
update
(
{
[
limit_type
..
'-limit'
]
=
type
(
limit
)
==
'table'
and
update
(
{
name
=
name
or
nil
,
addr
=
addr
or
nil
,
update
=
upd
},
limit
)
or
limit
,
log
=
log
or
nil
,
action
=
action
or
nil
},
base
or
{}
)
)
end
end
end
end
...
...
test/output/dump
View file @
b4d83b01
This diff is collapsed.
Click to expand it.
test/output/rules-save
View file @
b4d83b01
This diff is collapsed.
Click to expand it.
test/output/rules6-save
View file @
b4d83b01
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment