Skip to content

nf_tables: add stateful objects

Pablo Neira Ayuso netfilter-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 0 repliesNew
  2. v111 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11netfilter: nf_tables: add stateful objectsinclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+624 -00 replies
2/11netfilter: nft_counter: add stateful object typeinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_counter.c+114 -270 replies
3/11netfilter: nft_quota: add stateful object typeinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_quota.c+84 -130 replies
4/11netfilter: nf_tables: add stateful object reference expressioninclude/uapi/linux/netfilter/nf_tables.h net/netfilter/Kconfig net/netfilter/Makefile +1 more+133 -00 replies
5/11netfilter: nf_tables: atomic dump and reset for stateful objectsinclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c +2 more+53 -260 replies
6/11netfilter: nf_tables: notify internal updates of stateful objectsinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+23 -120 replies
7/11netfilter: nft_quota: dump consumed quotainclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_quota.c+17 -50 replies
8/11netfilter: nft_quota: add depleted flag for objectsinclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c +1 more+33 -60 replies
9/11netfilter: nf_tables: add stateful object reference to set elementsinclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+77 -100 replies
10/11netfilter: nft_objref: support for stateful object mapsinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_objref.c+125 -10 replies
11/11netfilter: nf_tables: allow to filter stateful object dumps by typenet/netfilter/nf_tables_api.c+50 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2,nf-next 00/11] nf_tables: add stateful objects

Hi,

This is the v2 of the stateful object patchset that was posted earlier this week:

	http://marc.info/?l=netfilter-devel&m=148029128323837&w=2

Tentative userspace patchsets are available at:

http://git.netfilter.org/libnftnl/log/?h=stateful
http://git.netfilter.org/nftables/log/?h=stateful

I may still revisit userspace before upstream merge, this may result in syntax changes, so consider the userspace patchset work-in-progress.

Comments welcome,
Thanks.

Pablo Neira Ayuso (11):
netfilter: nf_tables: add stateful objects
netfilter: nft_counter: add stateful object type
netfilter: nft_quota: add stateful object type
netfilter: nf_tables: add stateful object reference expression
netfilter: nf_tables: atomic dump and reset for stateful objects
netfilter: nf_tables: notify internal updates of stateful objects
netfilter: nft_quota: dump consumed quota
netfilter: nft_quota: add depleted flag for objects
netfilter: nf_tables: add stateful object reference to set elements
netfilter: nft_objref: support for stateful object maps
netfilter: nf_tables: allow to filter stateful object dumps by type

 include/net/netfilter/nf_tables.h        |  95 +++++
 include/uapi/linux/netfilter/nf_tables.h |  64 +++
 net/netfilter/Kconfig                    |   6 +
 net/netfilter/Makefile                   |   1 +
 net/netfilter/nf_tables_api.c            | 661 ++++++++++++++++++++++++++++++-
 net/netfilter/nft_counter.c              | 163 ++++++--
 net/netfilter/nft_objref.c               | 226 +++++++++++
 net/netfilter/nft_quota.c                | 147 ++++++-
 8 files changed, 1298 insertions(+), 65 deletions(-)
 create mode 100644 net/netfilter/nft_objref.c
Signature · 1 line
2.1.4