]> git.ipfire.org Git - thirdparty/nftables.git/commit
statement: avoid huge rodata array
authorFlorian Westphal <fw@strlen.de>
Tue, 22 Oct 2013 12:35:02 +0000 (14:35 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 22 Oct 2013 13:06:08 +0000 (15:06 +0200)
commita57def11266077a3354d4edff8e6b8a0b7b499b3
tree1e03e025c7712a569b4eed5129cf3eea51c5b52f
parentb259d1aca0db1bed5af3e4fe378f8aeb4d3ce645
statement: avoid huge rodata array

commit b259d1a ('src: operational limit match') creates huge
array, increasing nft binary size from ~240k to ~5m on x86_64.

Use switch statement instead.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/statement.c