RFC more syntax changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | scanner: replace binary characters '&' '|' and '!' by their namessrc/ | +3 | 3 replies | |
| 2/3 | evaluate: allow to use string with binary operationssrc/ | +2 | 6 replies | |
| 3/3 | scanner: rename address selector from 'eth' to 'ether'src/ src/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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