All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] nft trace
@ 2015-06-17 20:07 Markus Koetter
  2015-06-17 20:07 ` [PATCH 1/5] parser: add trace command Markus Koetter
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Markus Koetter @ 2015-06-17 20:07 UTC (permalink / raw)
  To: netfilter-devel

This patch adds a new command to nft - the trace command.
The trace command reads NFLOG messages, parses TRACE: messages and prints the
rules in a human readable format.
To trace, you have to set the trace mark on a packet and run "nft trace".
Patch is split into 5 parts, 
 - adding the command, 
 - storing the chain policy during delinearize for later use
 - creating a rule cache to look up the rules
 - implementing the actual command
 - code to log a packet header 'similar' to ip/nftables LOG

Markus Koetter (5):
  parser: add trace command
  netlink: delinarize chain policy
  rule: make cache creation a function
  trace: implement commands action
  trace: add log for packets

 include/Makefile.am |   2 +
 include/log.h       |  17 ++
 include/rule.h      |  15 +
 include/trace.h     |   2 +
 src/Makefile.am     |   2 +
 src/evaluate.c      |   2 +
 src/log.c           | 779 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/netlink.c       |   4 +
 src/parser_bison.y  |  16 +-
 src/rule.c          | 121 ++++++--
 src/scanner.l       |   1 +
 src/trace.c         | 361 ++++++++++++++++++++++++
 12 files changed, 1291 insertions(+), 31 deletions(-)
 create mode 100644 include/log.h
 create mode 100644 include/trace.h
 create mode 100644 src/log.c
 create mode 100644 src/trace.c

-- 
1.9.1


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

end of thread, other threads:[~2015-06-26  8:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-17 20:07 [PATCH 0/5] nft trace Markus Koetter
2015-06-17 20:07 ` [PATCH 1/5] parser: add trace command Markus Koetter
2015-06-17 20:07 ` [PATCH 2/5] netlink: delinarize chain policy Markus Koetter
2015-06-26  8:09   ` Pablo Neira Ayuso
2015-06-17 20:07 ` [PATCH 3/5] rule: make cache creation a function Markus Koetter
2015-06-17 20:07 ` [PATCH 4/5] trace: implement commands action Markus Koetter
2015-06-25 14:11   ` Pablo Neira Ayuso
2015-06-17 20:07 ` [PATCH 5/5] trace: add log for packets Markus Koetter
2015-06-25 13:38   ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.