Skip to content

RFC more syntax changes

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scanner: replace binary characters '&' '|' and '!' by their namessrc/scanner.l+3 -33 replies
2/3evaluate: allow to use string with binary operationssrc/evaluate.c+2 -16 replies
3/3scanner: rename address selector from 'eth' to 'ether'src/parser.y src/scanner.l+3 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3 nft] [RFC] more syntax changes

Hi,

The following patchset contains more small syntax and evaluation changes aiming to improve the interaction user <-> tool via most common shells:

* iifname and oifname mask matching: very simple approach to allow matching interface names via meta oifname and eth == eth.

* Rename typical binary operation so we don't need to escape them in
bash: '&' by 'and', '|' by 'or' and '!' by 'not'. They are just a few character longers and the syntax still looks nice to me.

* Rename 'eth' by 'ether', to mimic tcpdump. This also skips problems with a valid and simple possible iifname/oifname mask.

Comments welcome. Thanks!

Pablo Neira Ayuso (3):
scanner: replace binary characters '&' '|' and '!' by their names
evaluate: allow to use string with binary operations
scanner: rename address selector from 'eth' to 'ether'

 src/evaluate.c |    3 ++-
 src/parser.y   |    4 ++--
 src/scanner.l  |    8 ++++----
 3 files changed, 8 insertions(+), 7 deletions(-)
Signature · 1 line
1.7.10.4