[nft PATCH 0/4] Support 'add/insert rule index <IDX>'

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

 



As discussed before, this patch series introduces 'handle' keyword to
add/insert rule commands as a more intuitive and consistent alternative
to 'position'.

On top of that, adding/inserting rules at an absolute position is
implemented via the new 'index' keyword.

Phil Sutter (4):
  Deprecate add/insert rule 'position' argument
  rule: Copy locations in handle_merge()
  Support 'add/insert rule index <IDX>'
  tests/shell: Extend rule_management/0001addposition_0

 doc/nft.xml                                   | 34 ++++++-
 include/rule.h                                |  1 +
 src/evaluate.c                                | 45 ++++++++++
 src/parser_bison.y                            | 26 +++++-
 src/rule.c                                    | 14 ++-
 src/scanner.l                                 |  1 +
 .../rule_management/0001addinsertposition_0   | 89 +++++++++++++++++++
 .../rule_management/0001addposition_0         | 11 ---
 .../rule_management/0002addinsertlocation_1   | 23 +++++
 .../rule_management/0002insertposition_0      | 11 ---
 .../dumps/0001addposition_0.nft               |  7 --
 .../dumps/0002insertposition_0.nft            |  7 --
 12 files changed, 224 insertions(+), 45 deletions(-)
 create mode 100755 tests/shell/testcases/rule_management/0001addinsertposition_0
 delete mode 100755 tests/shell/testcases/rule_management/0001addposition_0
 create mode 100755 tests/shell/testcases/rule_management/0002addinsertlocation_1
 delete mode 100755 tests/shell/testcases/rule_management/0002insertposition_0
 delete mode 100644 tests/shell/testcases/rule_management/dumps/0001addposition_0.nft
 delete mode 100644 tests/shell/testcases/rule_management/dumps/0002insertposition_0.nft

-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux