summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-23 23:30:24 +0200
committerFlorian Westphal <fw@strlen.de>2018-06-07 14:38:15 +0200
commit79fd53906d4834e64fad41cfe5ba2f14ec213fe3 (patch)
tree138405650ce41802aa6c3fe152b1bbdf044e3463 /tests/shell
parentccd0125b242e923fce98d9321a69695bb74fb193 (diff)
src: netlink_delinarize: don't stop when encountering unsupported expression
The error message is still shown, but try to make sense of further expressions (if any). I tried to replace the expression by a textual representation. Two variants I tested are: 1. append as comment: ip saddr 127.0.0.2 drop comment "unknown expression 'foo'" This allows nft -f, but it adds/alters a comment. 2. substitute in-place (i.e., add a constant expression with the error message instead of 'unkown' message: unknown expression "foo" ip saddr 127.0.0.2 drop This won't allow 'nft -f' however. I'm not sure this is a problem, in any case we lose information if we can't find an expression (e.g. added by newer version). Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
0 files changed, 0 insertions, 0 deletions