Re: [PATCH nft 2/2] tests: shell: expand get command test with open intervals

Phil Sutter <[email protected]>
Newsgroups gmane.comp.security.firewalls.netfilter.devel
Message-ID <[email protected]>
Hi Pablo,
On Thu, Jul 02, 2026 at 02:36:34PM +0200, Pablo Neira Ayuso wrote:
> Extend the existing test to cover get commands with open internals.

This test fails on a Big Endian testing machine running Fedora Rawhide
running 7.2.0-0.rc2.21.fc45. Does this perhaps test a recent kernel fix
or something?

Here's the test output for reference:

| W: [FAILED]     1/1 testcases/sets/0034get_element_0
| Command: testcases/sets/0034get_element_0 
| Error: Could not process rule: No such file or directory
| get element ip t s { 11 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t s { 15-18 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: Too many open files
| get element ip t s { 60000-65534 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ERROR: asked for '60000-65534' in set s, expecting '60000-65535' but got
| ''
| Error: Could not process rule: Too many open files
| get element ip t s { 60001-65534 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ERROR: asked for '60001-65534' in set s, expecting '60000-65535' but got
| ''
| Error: Could not process rule: Too many open files
| get element ip t s { 22-24, 60000-65534 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ERROR: asked for '22-24, 60000-65534' in set s, expecting '20-30,
| 60000-65535' but got ''
| Error: Could not process rule: Too many open files
| get element ip t s { 22-24, 60001-65534 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ERROR: asked for '22-24, 60001-65534' in set s, expecting '20-30,
| 60000-65535' but got ''
| Error: Could not process rule: Too many open files
| get element ip t s { 60001-65534, 10 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ERROR: asked for '60001-65534, 10' in set s, expecting '60000-65535, 10'
| but got ''
| Error: Could not process rule: No such file or directory
| get element ip t s { 10-40 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t s { 10-20 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t s { 10-25 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t s { 25-55 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t ips { 10.0.0.2 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t cs { 10.0.0.1 . 23 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Error: Could not process rule: No such file or directory
| get element ip t cs { 10.0.0.2 . 22 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Cheers, Phil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.