netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/6] ruleset tracing
@ 2016-04-24 21:30 Patrick McHardy
  2016-04-24 21:30 ` [PATCH nft 1/6] payload: fix stacked headers protocol context tracking Patrick McHardy
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Patrick McHardy @ 2016-04-24 21:30 UTC (permalink / raw)
  To: pablo, fw; +Cc: netfilter-devel

The following patches contain the latest version of the ruleset tracing
functionality.

Packets received from the kernel are decoded based on the nft protocol
definitions and are printed in the regular nft syntax. Uninteresting
fields are filtered to reduce the noise.

I've compacted the output so we only show a single line per rule, which
also contains the verdict and mark, if present. Examples can be found in
patch 6/6. This version fully supported stacked headers like VLAN.

The patchset is structured as follows:

* fixed for protocol context tracking of stacked headers, necessary for
  proper packet decoding
* header resync
* moving of payload dependency tracking to payload.c to make it usable for
  packet decoding
* introduction of a helper function for stacked header decoding
* tracing functionality

I consider this patchset complete. Testing and comments welcome.



Patrick McHardy (6):
  payload: fix stacked headers protocol context tracking
  nft: resync kernel header files
  payload: move payload depedency tracking to payload.c
  payload: add payload_is_stacked()
  proto: add protocol header fields filter and ordering for packet decoding
  nft monitor [ trace ]

 include/linux/netfilter/nf_tables.h |  91 +++++++++++-
 include/linux/netfilter/nfnetlink.h |   4 +
 include/payload.h                   |  24 ++++
 include/proto.h                     |   5 +
 include/rule.h                      |   1 +
 src/evaluate.c                      |  62 ++++-----
 src/netlink.c                       | 269 +++++++++++++++++++++++++++++++++++-
 src/netlink_delinearize.c           |  97 +++----------
 src/payload.c                       |  77 ++++++++++-
 src/proto.c                         |  47 ++++++-
 src/rule.c                          |  61 ++++++--
 11 files changed, 611 insertions(+), 127 deletions(-)

-- 
2.5.5


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

end of thread, other threads:[~2016-04-25 10:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-24 21:30 [PATCH nft 0/6] ruleset tracing Patrick McHardy
2016-04-24 21:30 ` [PATCH nft 1/6] payload: fix stacked headers protocol context tracking Patrick McHardy
2016-04-24 21:30 ` [PATCH nft 2/6] nft: resync kernel header files Patrick McHardy
2016-04-24 21:30 ` [PATCH nft 3/6] payload: move payload depedency tracking to payload.c Patrick McHardy
2016-04-24 21:30 ` [PATCH nft 4/6] payload: add payload_is_stacked() Patrick McHardy
2016-04-24 21:30 ` [PATCH nft 5/6] proto: add protocol header fields filter and ordering for packet decoding Patrick McHardy
2016-04-24 21:30 ` [PATCH nft 6/6] nft monitor [ trace ] Patrick McHardy
2016-04-24 22:22 ` [PATCH nft 0/6] ruleset tracing Florian Westphal
2016-04-24 22:57   ` Patrick McHardy
2016-04-25  0:23     ` Patrick McHardy
2016-04-25  9:49       ` Florian Westphal
2016-04-25 10:28         ` Patrick McHardy

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).