summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/dumps
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-10-23 19:00:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-10-24 11:31:02 +0200
commitf773041121d6d0d112fa9cb003fd791eacd6e43d (patch)
tree7f4b01b12654d7d6a6b3a266ec4aba68d02341d5 /tests/shell/testcases/chains/dumps
parent8dae752f28851c6ee4257adfba969478539dbfdf (diff)
tests/shell: cover long interface name in "0042chain_variable_0" test
IFNAMSIZ is 16. Adjust "0042chain_variable_0" to use an interface name with the maximum allowed bytes length. Instead of adding an entirely different test, adjust an existing one to use another interface name. The aspect for testing for a long interface name is not special enough, to warrant a separate test. We can cover it by extending an existing test. Note that the length check in "parser_bison.y" is wrong. The test checks still for the wrong behavior and that "d23456789012345x" is accepted. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/chains/dumps')
-rw-r--r--tests/shell/testcases/chains/dumps/0042chain_variable_0.nft4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/testcases/chains/dumps/0042chain_variable_0.nft b/tests/shell/testcases/chains/dumps/0042chain_variable_0.nft
index 5ec230d0..84a908d3 100644
--- a/tests/shell/testcases/chains/dumps/0042chain_variable_0.nft
+++ b/tests/shell/testcases/chains/dumps/0042chain_variable_0.nft
@@ -5,12 +5,12 @@ table netdev filter1 {
}
table netdev filter2 {
chain Main_Ingress2 {
- type filter hook ingress devices = { dummy0, lo } priority -500; policy accept;
+ type filter hook ingress devices = { d23456789012345, lo } priority -500; policy accept;
}
}
table netdev filter3 {
chain Main_Ingress3 {
- type filter hook ingress devices = { dummy0, lo } priority -500; policy accept;
+ type filter hook ingress devices = { d23456789012345, lo } priority -500; policy accept;
}
chain Main_Egress3 {