summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/typeof_integer_0.nft
Commit message (Collapse)AuthorAgeFilesLines
* tests/shell: typeof_integer/raw: prefer @nh for payload matchingFlorian Westphal2023-09-101-2/+2
| | | | | | | | | | @ih fails on kernels where payload expression doesn't support the 'inner' base offset. This test isn't about inner headers, so just use @nh which is universally available. Signed-off-by: Florian Westphal <fw@strlen.de>
* src: allow to use integer type header fields via typeof set declarationPablo Neira Ayuso2022-03-291-0/+20
Header fields such as udp length cannot be used in concatenations because it is using the generic integer_type: test.nft:3:10-19: Error: can not use variable sized data types (integer) in concat expressions typeof udp length . @th,32,32 ^^^^^^^^^^~~~~~~~~~~~~ This patch slightly extends ("src: allow to use typeof of raw expressions in set declaration") to set on NFTNL_UDATA_SET_KEY_PAYLOAD_LEN in userdata if TYPE_INTEGER is used. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>