netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/3] src: add nft log flags support
@ 2016-09-25  9:06 Liping Zhang
  2016-09-25  9:06 ` [PATCH nft 1/3] src: add log flags syntax support Liping Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Liping Zhang @ 2016-09-25  9:06 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel, Liping Zhang

From: Liping Zhang <liping.zhang@spreadtrum.com>

After NF_LOG_XXX is exposed to the userspace, we can set log flags to
log more things. The following iptables rule:
  # iptables -A OUTPUT -j LOG --log-tcp-sequence --log-tcp-options \
  --log-ip-options --log-uid --log-macdecode
is equal to the following nft rule:
  # nft add rule filter OUTPUT log tcpseq,tcpopt,ipopt,uid,macdecode

The syntax supported was done by patch #1, user manual was updated by
patch #2, test case was added by patch #3.

After this patch set is accepted, I will send another patch to do
iptables xlat.

Liping Zhang (3):
  src: add log flags syntax support
  doc: add description about log flags
  tests: py: add some testcases for log flags

 doc/nft.xml                       | 36 ++++++++++++++++++++++++++++++++++++
 include/linux/netfilter/nf_log.h  | 12 ++++++++++++
 include/statement.h               |  1 +
 src/evaluate.c                    | 12 +++++++++---
 src/netlink_delinearize.c         |  4 ++++
 src/netlink_linearize.c           |  3 +++
 src/parser_bison.y                | 26 +++++++++++++++++++++++++-
 src/scanner.l                     |  5 +++++
 src/statement.c                   | 24 ++++++++++++++++++++++++
 tests/py/any/log.t                |  4 ++++
 tests/py/any/log.t.payload        | 33 ++++++++++++++++++++-------------
 tests/py/ip/icmp.t.payload.ip     |  2 +-
 tests/py/ip6/icmpv6.t.payload.ip6 |  6 +++---
 13 files changed, 147 insertions(+), 21 deletions(-)
 create mode 100644 include/linux/netfilter/nf_log.h

-- 
2.5.5



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

end of thread, other threads:[~2016-11-15 14:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-25  9:06 [PATCH nft 0/3] src: add nft log flags support Liping Zhang
2016-09-25  9:06 ` [PATCH nft 1/3] src: add log flags syntax support Liping Zhang
2016-09-25  9:07 ` [PATCH nft 2/3] doc: add description about log flags Liping Zhang
2016-09-25  9:07 ` [PATCH nft 3/3] tests: py: add some testcases for " Liping Zhang
2016-11-14 22:21 ` [PATCH nft 0/3] src: add nft log flags support Pablo Neira Ayuso
2016-11-15 14:25   ` Liping Zhang

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