diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-03-13 22:28:27 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-03-18 16:37:47 +0100 |
commit | f133180ee0c72f4a0de4a7acad8a9d8476914bd4 (patch) | |
tree | 365c36aef5c5c268b4e04bf80b18efd737f86f67 /tests/shell/testcases/maps/0008interval_map_delete_0 | |
parent | 3e50cd6b063d64c2e72b0e32bc36dd5a22f75c06 (diff) |
src: print set element with multi-word description in single one line
If the set element:
- represents a mapping
- has a timeout
- has a comment
- has counter/quota/limit
- concatenation (already printed in a single line before this patch)
ie. if the set element requires several words, then print it in one
single line.
Before this patch:
table ip x {
set y {
typeof ip saddr
counter
elements = { 192.168.10.35 counter packets 0 bytes 0, 192.168.10.101 counter packets 0 bytes 0,
192.168.10.135 counter packets 0 bytes 0 }
}
}
After this patch:
table ip x {
set y {
typeof ip saddr
counter
elements = { 192.168.10.35 counter packets 0 bytes 0,
192.168.10.101 counter packets 0 bytes 0,
192.168.10.135 counter packets 0 bytes 0 }
}
}
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/maps/0008interval_map_delete_0')
-rwxr-xr-x | tests/shell/testcases/maps/0008interval_map_delete_0 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shell/testcases/maps/0008interval_map_delete_0 b/tests/shell/testcases/maps/0008interval_map_delete_0 index 39ea3127..86e54b68 100755 --- a/tests/shell/testcases/maps/0008interval_map_delete_0 +++ b/tests/shell/testcases/maps/0008interval_map_delete_0 @@ -6,7 +6,8 @@ EXPECTED="table ip filter { map m { type ipv4_addr : mark flags interval - elements = { 127.0.0.2 : 0x00000002, 127.0.0.3 : 0x00000003 } + elements = { 127.0.0.2 : 0x00000002, + 127.0.0.3 : 0x00000003 } } chain input { |