Blame SOURCES/0061-doc-nft.8-Extend-monitor-description-by-trace.patch

4e0227
From 5a735f26b0c6617b2851a7399c8ad118e89deba8 Mon Sep 17 00:00:00 2001
4e0227
From: Phil Sutter <psutter@redhat.com>
4e0227
Date: Mon, 12 Jul 2021 16:34:38 +0200
4e0227
Subject: [PATCH] doc: nft.8: Extend monitor description by trace
4e0227
4e0227
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1820365
4e0227
Upstream Status: nftables commit 2acf8b2caea19
4e0227
4e0227
commit 2acf8b2caea19d8abd46d475a908f8d6afb33aa0
4e0227
Author: Phil Sutter <phil@nwl.cc>
4e0227
Date:   Wed May 19 13:12:48 2021 +0200
4e0227
4e0227
    doc: nft.8: Extend monitor description by trace
4e0227
4e0227
    Briefly describe 'nft monitor trace' command functionality.
4e0227
4e0227
    Signed-off-by: Phil Sutter <phil@nwl.cc>
4e0227
---
4e0227
 doc/nft.txt | 25 ++++++++++++++++++++++---
4e0227
 1 file changed, 22 insertions(+), 3 deletions(-)
4e0227
4e0227
diff --git a/doc/nft.txt b/doc/nft.txt
4e0227
index abb9260..9cc35ee 100644
4e0227
--- a/doc/nft.txt
4e0227
+++ b/doc/nft.txt
4e0227
@@ -734,13 +734,26 @@ These are some additional commands included in nft.
4e0227
 MONITOR
4e0227
 ~~~~~~~~
4e0227
 The monitor command allows you to listen to Netlink events produced by the
4e0227
-nf_tables subsystem, related to creation and deletion of objects. When they
4e0227
+nf_tables subsystem. These are either related to creation and deletion of
4e0227
+objects or to packets for which *meta nftrace* was enabled. When they
4e0227
 occur, nft will print to stdout the monitored events in either JSON or
4e0227
 native nft format. +
4e0227
 
4e0227
-To filter events related to a concrete object, use one of the keywords 'tables', 'chains', 'sets', 'rules', 'elements', 'ruleset'. +
4e0227
+[verse]
4e0227
+____
4e0227
+*monitor* [*new* | *destroy*] 'MONITOR_OBJECT'
4e0227
+*monitor* *trace*
4e0227
+
4e0227
+'MONITOR_OBJECT' := *tables* | *chains* | *sets* | *rules* | *elements* | *ruleset*
4e0227
+____
4e0227
+
4e0227
+To filter events related to a concrete object, use one of the keywords in
4e0227
+'MONITOR_OBJECT'.
4e0227
 
4e0227
-To filter events related to a concrete action, use keyword 'new' or 'destroy'.
4e0227
+To filter events related to a concrete action, use keyword *new* or *destroy*.
4e0227
+
4e0227
+The second form of invocation takes no further options and exclusively prints
4e0227
+events generated for packets with *nftrace* enabled.
4e0227
 
4e0227
 Hit ^C to finish the monitor operation.
4e0227
 
4e0227
@@ -764,6 +777,12 @@ Hit ^C to finish the monitor operation.
4e0227
 % nft monitor ruleset
4e0227
 ---------------------
4e0227
 
4e0227
+.Trace incoming packets from host 10.0.0.1
4e0227
+------------------------------------------
4e0227
+% nft add rule filter input ip saddr 10.0.0.1 meta nftrace set 1
4e0227
+% nft monitor trace
4e0227
+------------------------------------------
4e0227
+
4e0227
 ERROR REPORTING
4e0227
 ---------------
4e0227
 When an error is detected, nft shows the line(s) containing the error, the
4e0227
-- 
4e0227
2.31.1
4e0227