netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH 0/5] Introduce boolean type and existence checks
@ 2017-03-10 17:13 Phil Sutter
  2017-03-10 17:13 ` [nft PATCH 1/5] Introduce boolean datatype and boolean expression Phil Sutter
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Phil Sutter @ 2017-03-10 17:13 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

The following patch series implements a boolean datatype for use in a
boolean expression as right-hand side of a relational. Based upon that,
header existence matches are implemented for IPv6 extension and TCP
option headers as well as an existence match of a FIB entry.

Phil Sutter (5):
  Introduce boolean datatype and boolean expression
  exthdr: Add support for exthdr specific flags
  exthdr: Implement existence check
  fib: Support existence check
  doc: Document boolean type and applications

 doc/nft.xml                         | 134 ++++++++++++++++++++++++++++++++++++
 include/datatype.h                  |   2 +
 include/expression.h                |   3 +
 include/exthdr.h                    |   4 +-
 include/linux/netfilter/nf_tables.h |   1 +
 include/tcpopt.h                    |   3 +-
 src/datatype.c                      |  19 +++++
 src/evaluate.c                      |  17 ++++-
 src/expression.c                    |   4 ++
 src/exthdr.c                        |  39 ++++++++---
 src/fib.c                           |   5 +-
 src/netlink_delinearize.c           |   5 +-
 src/netlink_linearize.c             |   1 +
 src/parser_bison.y                  |  54 +++++++++++++++
 src/scanner.l                       |   5 ++
 src/tcpopt.c                        |  11 ++-
 tests/py/inet/fib.t                 |   3 +
 tests/py/inet/fib.t.payload         |  10 +++
 tests/py/inet/tcpopt.t              |   3 +
 tests/py/inet/tcpopt.t.payload.inet |  14 ++++
 tests/py/ip6/exthdr.t               |  19 +++++
 tests/py/ip6/exthdr.t.payload.ip6   |  60 ++++++++++++++++
 22 files changed, 399 insertions(+), 17 deletions(-)
 create mode 100644 tests/py/ip6/exthdr.t
 create mode 100644 tests/py/ip6/exthdr.t.payload.ip6

-- 
2.11.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-03-10 21:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-10 17:13 [nft PATCH 0/5] Introduce boolean type and existence checks Phil Sutter
2017-03-10 17:13 ` [nft PATCH 1/5] Introduce boolean datatype and boolean expression Phil Sutter
2017-03-10 17:13 ` [nft PATCH 2/5] exthdr: Add support for exthdr specific flags Phil Sutter
2017-03-10 17:13 ` [nft PATCH 3/5] exthdr: Implement existence check Phil Sutter
2017-03-10 17:13 ` [nft PATCH 4/5] fib: Support " Phil Sutter
2017-03-10 18:07   ` Pablo Neira Ayuso
2017-03-10 21:41     ` Phil Sutter
2017-03-10 17:13 ` [nft PATCH 5/5] doc: Document boolean type and applications Phil Sutter
2017-03-10 18:14   ` Pablo Neira Ayuso
2017-03-10 18:02 ` [nft PATCH 0/5] Introduce boolean type and existence checks Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).