diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-12-06 22:59:55 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-12-07 19:18:19 +0100 |
commit | 931737a1719824d7945433177e61a6c47530ed69 (patch) | |
tree | 8b98915c6e415205d0d1cd9601a4980cc62a8c1f /tests/shell/testcases/comments/dumps | |
parent | 84da9b6e335b7aa5bdcf1bd88c62daed5bdac889 (diff) |
scanner: munch full comment lines
Munch lines full comment lines, regular expression matches lines that
start by space or tab, then # follows, finally anything including one
single line break.
Call reset_pos() to ensure error reporting location is not puzzled.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1196
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/comments/dumps')
-rw-r--r-- | tests/shell/testcases/comments/dumps/comments_0.nft | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shell/testcases/comments/dumps/comments_0.nft b/tests/shell/testcases/comments/dumps/comments_0.nft new file mode 100644 index 00000000..82ae510b --- /dev/null +++ b/tests/shell/testcases/comments/dumps/comments_0.nft @@ -0,0 +1,12 @@ +table inet x { + set y { + type ipv4_addr + elements = { 2.2.2.2, 3.3.3.3 } + } + + chain y { + icmpv6 type { destination-unreachable, packet-too-big } accept + icmp type { 1, 2 } accept + tcp dport { 21, 2121 } counter packets 0 bytes 0 accept + } +} |