[PATCH nft 00/12] replace compound_expr_*() by type safe function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This is a series to replace (and remove) the existing compound_expr_*()
helper functions which is common to set, list and concat expressions
by expression type safe variants that validate the expression type.

No rush to apply this, there is a reported regression on the JSON
output, in case there is a need to make a new release to address it.

Pablo Neira Ayuso (12):
  segtree: incorrect type when aggregating concatenated set ranges
  src: add expr_type_catchall() helper and use it
  src: replace compound_expr_add() by type safe function
  src: replace compound_expr_add() by type safe function
  src: replace compound_expr_add() by type safe function
  segtree: rename set_compound_expr_add() to set_expr_add_splice()
  expression: replace compound_expr_clone() by type safe function
  expression: remove compound_expr_add()
  expression: replace compound_expr_remove() by type safe function
  expression: replace compound_expr_destroy() by type safe funtion
  expression: replace compound_expr_print() by type safe function
  src: replace compound_expr_alloc() by type safe function

 include/expression.h      |  15 +++-
 src/evaluate.c            |   4 +-
 src/expression.c          | 177 ++++++++++++++++++++++++++------------
 src/intervals.c           |  20 ++---
 src/monitor.c             |   2 +-
 src/netlink.c             |   6 +-
 src/netlink_delinearize.c |   8 +-
 src/optimize.c            |  38 ++++----
 src/parser_bison.y        |  40 ++++-----
 src/parser_json.c         |  18 ++--
 src/payload.c             |   6 +-
 src/segtree.c             |  40 ++++-----
 src/trace.c               |  10 +--
 13 files changed, 229 insertions(+), 155 deletions(-)

-- 
2.30.2





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux